* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans', sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #2c3e50;
}

header p {
    color: #7f8c8d;
    font-size: 1.1em;
}

main {
    display: flex;
    justify-content: center;
}

.simulation-panel {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
}

.controls {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.login-btn, .reset-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn {
    background: #3498db;
    color: white;
}

.login-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.reset-btn {
    background: #e74c3c;
    color: white;
}

.reset-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-card h3 {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9em;
    color: #7f8c8d;
}

.bonus-info {
    margin-bottom: 24px;
}

.bonus-info h3 {
    margin-bottom: 16px;
    color: #2c3e50;
}

.bonus-tracker {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.bonus-item {
    background: #ecf0f1;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    transition: all 0.3s ease;
}

.bonus-item.achieved {
    background: #2ecc71;
    color: white;
    transform: scale(1.05);
}

.bonus-day {
    font-size: 0.9em;
    font-weight: 600;
}

.bonus-amount {
    font-size: 1.1em;
    font-weight: bold;
    color: #f39c12;
}

.bonus-item.achieved .bonus-amount {
    color: white;
}

.log {
    margin-top: 24px;
}

.log h3 {
    margin-bottom: 16px;
    color: #2c3e50;
}

.log-content {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.log-empty {
    color: #7f8c8d;
    text-align: center;
    font-style: italic;
}

.log-entry {
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-date {
    font-weight: 600;
    color: #2c3e50;
}

.log-credit {
    color: #f39c12;
    font-weight: bold;
}

.chart-panel {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.chart-panel h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

#creditChart {
    width: 100%;
    max-width: 500px;
    height: 300px;
}

.preview-panel {
    margin-bottom: 24px;
}

.preview-panel h3 {
    margin-bottom: 16px;
    color: #2c3e50;
}

.preview-table {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    max-height: 300px;
    overflow-y: auto;
}

.preview-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 2px solid #ecf0f1;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.preview-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
}

.preview-row:last-child {
    border-bottom: none;
}

.preview-day {
    color: #2c3e50;
    font-weight: 500;
}

.preview-daily {
    color: #f39c12;
    font-weight: bold;
}

.preview-total {
    color: #27ae60;
    font-weight: bold;
}

@media (max-width: 768px) {
    .simulation-panel {
        max-width: 100%;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .streak-limit-control {
        margin-left: 0;
        justify-content: center;
    }
}