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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* Login Page Styles */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 100%;
    backdrop-filter: blur(10px);
}

.login-card h1 {
    margin-bottom: 20px;
    color: #5a67d8;
    font-size: 2rem;
}

.login-form {
    margin: 30px 0;
}

.input-group {
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #5a67d8;
    box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.1);
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #5a67d8, #667eea);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(90, 103, 216, 0.4);
}

.quick-login {
    margin-top: 20px;
}

.quick-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.quick-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sema-btn {
    background: linear-gradient(135deg, #ed64a6, #f093fb);
    color: white;
}

.fatih-btn {
    background: linear-gradient(135deg, #4299e1, #667eea);
    color: white;
}

.quick-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.error-message {
    background: #fed7d7;
    color: #c53030;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Main App Styles */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

header h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.user-info {
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.current-week-info-header {
    margin-top: 15px;
    text-align: center;
    color: white;
}

.current-week-info-header h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.current-week-info-header .current-week-plan {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.current-week-info-header .reader-plan {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.current-week-plan-compact {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.reader-plan-compact {
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.current-week-plan-inline {
    text-align: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 12px;
    display: inline-block;
}

.week-system-info {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.panel-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.panel-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.sema-panel .panel-header h2 {
    color: #ed64a6;
}

.fatih-panel .panel-header h2 {
    color: #4299e1;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 0.9rem;
}

.progress {
    background: rgba(0, 0, 0, 0.05);
    padding: 5px 10px;
    border-radius: 15px;
}

.weekly-calendar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    max-height: 600px;
    overflow-y: auto;
    padding: 15px;
}

.week-item {
    background: #f8f9fa;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 6px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.week-item.active {
    border-color: #5a67d8;
    background: linear-gradient(135deg, #ebf4ff, #e6fffa);
}

.week-item.completed {
    background: linear-gradient(135deg, #c6f6d5, #9ae6b4);
    border-color: #48bb78;
}

.week-item.current {
    border-color: #ed8936;
    box-shadow: 0 0 15px rgba(237, 137, 54, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.week-item.inactive {
    opacity: 0.5;
    background: #f1f5f9;
}

.week-number {
    font-weight: bold;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.section {
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 8px;
}

.mark-read-btn {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    border: none;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 5px rgba(72, 187, 120, 0.5); }
    to { box-shadow: 0 0 15px rgba(72, 187, 120, 0.8); }
}

.mark-read-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(72, 187, 120, 0.4);
}

.unmark-btn {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
    border: none;
    padding: 4px 6px;
    border-radius: 5px;
    font-size: 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 3px;
}

.unmark-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(245, 101, 101, 0.4);
}

.waiting-text {
    font-size: 0.6rem;
    color: #666;
    font-style: italic;
    padding: 6px;
    text-align: center;
}


.current-week-info {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.current-week-info h3 {
    color: #5a67d8;
    margin-bottom: 15px;
}

.current-week-plan {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reader-plan {
    background: rgba(90, 103, 216, 0.1);
    padding: 12px 16px;
    border-radius: 10px;
    text-align: left;
}

.section-highlight {
    background: linear-gradient(135deg, #ed8936, #f6ad55);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: bold;
    margin: 0 5px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .weekly-calendar {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 12px;
    }
    
    .week-item {
        padding: 8px 4px;
    }
    
    .mark-read-btn {
        padding: 5px 6px;
        font-size: 0.65rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .user-info {
        flex-direction: row;
        gap: 8px;
        font-size: 0.9rem;
    }
    
    .stats {
        justify-content: center;
        gap: 8px;
    }
    
    .current-week-plan {
        gap: 8px;
    }
    
    .reader-plan {
        padding: 10px 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .panel {
        padding: 15px;
    }
    
    .weekly-calendar {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 10px;
    }
    
    .week-item {
        padding: 6px 2px;
    }
    
    .week-number {
        font-size: 0.8rem;
    }
    
    .section {
        font-size: 0.7rem;
    }
}
