* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    padding: 0;
}

.app-container {
    width: 100%;
    max-width: 400px;
    background-color: #fff;
    min-height: 100vh;
    padding-bottom: 70px;
}

/* Header */
.header {
    background-color: #ffeb3b;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 100;
}

.title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
}

.by-date-btn {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.by-date-btn:hover {
    background-color: #45a049;
}

/* Date Picker Container */
.date-picker-container {
    display: none;
    background: #fff3e0;
    border: 1px solid #ff9800;
    border-radius: 12px;
    padding: 15px;
    margin: 10px;
    text-align: center;
}

.date-picker-container.show {
    display: block;
}

.date-label {
    color: #f44336;
    font-size: 0.9rem;
    font-weight: bold;
    margin-right: 10px;
}

input[type="date"] {
    background: white;
    border: 1px solid #ff9800;
    border-radius: 20px;
    padding: 8px 15px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
}

.search-btn {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    cursor: pointer;
    margin-left: 10px;
    transition: background 0.2s;
}

.search-btn:hover {
    background-color: #45a049;
}

/* History Container */
.results-section {
    padding: 10px;
}

/* Date Group - Green Button Style */
.date-group {
    margin-bottom: 12px;
    text-align: center;
}

.date-header {
    background-color: #4caf50;
    color: white;
    padding: 10px 16px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 12px;
    margin-left: 8px;
    margin-right: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: inline-block;
    letter-spacing: 0px;
}

/* Time Card - Red Container */
.time-card {
    background-color: #f44336;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 2px;
    margin-left: 8px;
    margin-right: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.time-label {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    text-align: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.btc-box, .eth-box {
    flex: 1;
    text-align: center;
}

.no-box {
    min-width: 60px;
    text-align: center;
}

.data-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: white;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.btc-value, .eth-value {
    font-size: 1rem;
    font-weight: bold;
    color: white;
}

.no-value {
    font-size: 2rem;
    font-weight: bold;
    color: #ffeb3b;
}

.no-data {
    text-align: center;
    color: #999;
    padding: 60px 20px;
    font-size: 1.5rem;
}

.loading {
    text-align: center;
    color: #f44336;
    padding: 60px 20px;
    font-weight: bold;
}

@media (max-width: 500px) {
    .title { font-size: 1.1rem; }
    .date-header { font-size: 0.75rem; padding: 8px 14px; }
    .time-label { font-size: 1rem; }
    .btc-value, .eth-value { font-size: 0.85rem; }
    .no-value { font-size: 1.5rem; }
    .data-row { gap: 8px; }
    .by-date-btn { padding: 6px 12px; font-size: 0.7rem; }
    .search-btn { padding: 6px 15px; font-size: 0.8rem; }
}