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

body {
    font-family: 'Noto Sans', sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.date-display {
    font-size: 1.5rem;
    font-weight: 600;
    color: #667eea;
}

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

.panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.panel:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.panel h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
}

.stat-item {
    margin-bottom: 20px;
}

.stat-item label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #a0a0a0;
}

.stat-bar {
    position: relative;
    width: 100%;
    height: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 15px;
}

.stat-fill.motivation {
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.stat-fill.energy {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

.stat-fill.skill {
    background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
}

.stat-value {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
}

.developer-mood {
    text-align: center;
    font-size: 1.5rem;
    margin-top: 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.project-phase {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 20px;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.5s ease;
    border-radius: 20px;
}

.progress-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    color: #fff;
}

.project-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.project-stat {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-stat .label {
    font-size: 0.8rem;
    color: #a0a0a0;
    margin-bottom: 4px;
}

.project-stat .value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.service-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.big-stat {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: #a0a0a0;
    margin-bottom: 8px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.stat-number.revenue {
    color: #43e97b;
}

.service-metrics {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
}

.metric-label {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.action-btn {
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 1rem;
}

.action-btn:hover:not(:disabled) {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    transform: translateX(4px);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-btn .action-name {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.action-btn .action-cost {
    display: block;
    font-size: 0.85rem;
    color: #a0a0a0;
}

.log-panel {
    grid-column: span 2;
}

.event-log {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.log-entry {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease;
}

.log-entry.positive {
    border-left: 3px solid #43e97b;
}

.log-entry.negative {
    border-left: 3px solid #f5576c;
}

.log-entry.info {
    border-left: 3px solid #667eea;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.graph-panel {
    grid-column: span 3;
}

#motivationChart {
    width: 100%;
    height: 200px;
}

.controls {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 1024px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .log-panel, .graph-panel {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .game-grid {
        grid-template-columns: 1fr;
    }
    
    .log-panel, .graph-panel {
        grid-column: span 1;
    }
}

