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

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

.app-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.app-header {
    text-align: center;
    color: white;
    margin-bottom: 8px;
}

.app-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.week-selector {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 4px;
    gap: 4px;
    margin-top: 12px;
}

.week-button {
    padding: 10px 24px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    letter-spacing: 0.5px;
}

.week-button:hover {
    color: rgba(255, 255, 255, 0.9);
}

.week-button.active {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-container {
    perspective: 1000px;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

.card-header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.5px;
}

.tabs {
    display: flex;
    gap: 4px;
    padding: 16px 16px 0;
    background: transparent;
}

.tab-button {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #6e6e73;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.tab-button:hover {
    background: rgba(0, 0, 0, 0.03);
    color: #1d1d1f;
}

.tab-button.active {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 3px;
    background: #667eea;
    border-radius: 2px 2px 0 0;
}

.card-content {
    padding: 32px;
    min-height: 300px;
    position: relative;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

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

.content-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #1d1d1f;
}

.content-text strong {
    color: #667eea;
    font-weight: 600;
}

.content-text em {
    font-style: italic;
    color: #494949;
}

.day-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.nav-button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-button:hover {
    background: white;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.nav-button:active {
    transform: scale(0.95);
}

.nav-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-button:disabled:hover {
    transform: scale(1);
}

.day-indicators {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.day-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.day-indicator.active {
    background: white;
    color: #667eea;
    border-color: white;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
    transform: scale(1.15);
}

/* Responsive Design */
@media (max-width: 600px) {
    .app-header h1 {
        font-size: 2rem;
    }

    .week-button {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .card-title {
        font-size: 1.4rem;
    }

    .card-header,
    .card-content {
        padding: 24px;
    }

    .content-text {
        font-size: 1rem;
    }

    .day-navigation {
        padding: 16px 12px;
        gap: 12px;
    }

    .day-indicators {
        gap: 6px;
    }

    .day-indicator {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .nav-button {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

    .tabs {
        padding: 12px 12px 0;
    }

    .tab-button {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Smooth scrolling for content changes */
.card-content {
    overflow: hidden;
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Password Modal */
.password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.password-modal.hidden {
    display: none;
}

.password-modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.password-modal-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.password-modal-content p {
    color: #6e6e73;
    margin-bottom: 24px;
    font-size: 1rem;
}

.password-modal-content input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.password-modal-content input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.password-modal-content button {
    width: 100%;
    padding: 14px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.password-modal-content button:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.password-modal-content button:active {
    transform: translateY(0);
}

.password-error {
    color: #ff3b30;
    font-size: 0.9rem;
    margin-top: 12px;
    min-height: 20px;
    font-weight: 500;
}

@media (max-width: 600px) {
    .password-modal-content {
        padding: 32px 24px;
    }

    .password-modal-content h2 {
        font-size: 1.5rem;
    }
}
