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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.screen {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    min-height: 400px;
}

.hidden {
    display: none !important;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 40px;
    font-size: 2em;
}

h2 {
    color: #333;
    margin-bottom: 20px;
}

h3 {
    color: #555;
    margin-bottom: 20px;
}

/* User Selection */
.user-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.user-btn {
    padding: 20px;
    font-size: 1.2em;
    border: none;
    border-radius: 10px;
    background: #667eea;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.user-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.parent-btn {
    background: #48bb78;
}

.parent-btn:hover {
    background: #38a169;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.back-btn {
    padding: 8px 16px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.back-btn:hover {
    background: #667eea;
    color: white;
}

/* Activities */
.activities {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.activity-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.activity-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.activity-card h4 {
    color: #333;
    margin: 0;
    font-size: 1.2em;
}

.activity-card .time {
    font-size: 1.5em;
    font-weight: bold;
    color: #667eea;
    margin: 0;
}

.button-group {
    display: flex;
    gap: 8px;
}

.activity-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: #667eea;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.activity-btn:hover:not(:disabled) {
    background: #5568d3;
}

.activity-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

.pause-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: #f6ad55;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.pause-btn:hover {
    background: #ed8936;
}

.activity-card .status {
    font-size: 0.9em;
    color: #718096;
}

.activity-card.active {
    border-color: #f6ad55;
    background: #fffaf0;
}

.activity-card.completed {
    border-color: #48bb78;
    background: #f0fff4;
}

.activity-card.completed .status {
    color: #48bb78;
}

.activity-card.disabled {
    opacity: 0.5;
    pointer-events: none;
    background: #f7fafc;
}

/* Earned Minutes */
.earned-minutes {
    text-align: center;
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
    margin-top: 20px;
}

.earned-minutes p {
    font-size: 1.3em;
    color: #333;
    font-weight: 600;
}

.earned-minutes span {
    color: #667eea;
    font-size: 1.5em;
}

/* Congratulations */
.congratulations {
    text-align: center;
    padding: 40px 20px;
}

.congratulations h3 {
    font-size: 2em;
    color: #48bb78;
    margin-bottom: 20px;
}

.congratulations p {
    font-size: 1.2em;
    color: #555;
    margin: 10px 0;
}

.waiting-text {
    color: #f6ad55;
    font-weight: 600;
    margin-top: 20px;
}

/* Approved View */
.approved {
    text-align: center;
    padding: 40px 20px;
}

.approved h3 {
    font-size: 2em;
    color: #48bb78;
    margin-bottom: 20px;
}

.screen-time {
    font-size: 1.5em;
    color: #333;
    font-weight: 600;
}

.screen-time span {
    color: #667eea;
    font-size: 1.8em;
}

/* Parent Approval */
.approval-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.approval-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}

.approval-card h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.approval-status {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.status-text {
    color: #718096;
    font-size: 1em;
}

.approve-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: #48bb78;
    color: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s;
}

.approve-btn:hover {
    background: #38a169;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
}

.approve-btn.approved {
    background: #cbd5e0;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 600px) {
    .screen {
        padding: 20px;
    }

    .activity-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    h1 {
        font-size: 1.5em;
    }
}
