/* Study Plan Specific Styles */
.study-plan-hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.8) 100%), 
                url('https://images.unsplash.com/photo-1434030216411-0b793f4b4173?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') center/cover;
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    margin-bottom: 80px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content > p {
    font-size: 1.4rem;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 600;
}

.feature i {
    font-size: 1.3rem;
    color: var(--accent);
}

/* Progress Section */
.progress-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 60px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.progress-header h2 {
    color: var(--primary);
    font-size: 2rem;
}

.progress-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.progress-tracker {
    margin-top: 30px;
}

.progress-bar {
    background: var(--light);
    border-radius: 20px;
    height: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    background: var(--gradient-primary);
    height: 100%;
    border-radius: 20px;
    transition: width 1s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Phases Section */
.phases-section {
    margin-bottom: 80px;
}

.phases-grid {
    display: grid;
    gap: 40px;
}

.phase-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--secondary);
}

.phase-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.phase-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.phase-info h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.phase-info p {
    color: var(--text-light);
    max-width: 500px;
}

.phase-status {
    display: flex;
    align-items: center;
    gap: 20px;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-in-progress {
    background: var(--warning);
    color: white;
}

.status-completed {
    background: var(--success);
    color: white;
}

.status-locked {
    background: var(--text-light);
    color: white;
}

.progress-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(var(--secondary) var(--progress, 0%), var(--light) 0%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.progress-circle::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
}

.progress-circle span {
    position: relative;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--primary);
}

/* Subjects Grid */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.subject-card {
    background: var(--light);
    border-radius: 12px;
    padding: 25px;
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.subject-card.completed {
    border-left-color: var(--success);
    background: linear-gradient(135deg, #f8fff8 0%, var(--light) 100%);
}

.subject-card.in-progress {
    border-left-color: var(--warning);
    background: linear-gradient(135deg, #fffbf0 0%, var(--light) 100%);
}

.subject-card.locked {
    border-left-color: var(--text-light);
    background: linear-gradient(135deg, #f8f9fa 0%, var(--light) 100%);
    opacity: 0.7;
}

.subject-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.subject-header h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin: 0;
}

.completion-indicator {
    font-size: 1.3rem;
}

.completed .completion-indicator {
    color: var(--success);
}

.in-progress .completion-indicator {
    color: var(--warning);
}

.locked .completion-indicator {
    color: var(--text-light);
}

.subject-card p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.subject-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.subject-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.progress-bar.mini {
    height: 6px;
    margin-bottom: 15px;
}

.subject-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Subjects Preview */
.subjects-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.preview-item {
    background: var(--light);
    padding: 20px 15px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.preview-item:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
}

.preview-item i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: block;
}

.preview-item span {
    font-size: 0.9rem;
    font-weight: 600;
}

.phase-actions {
    text-align: center;
}

/* Achievements Section */
.achievements-section {
    margin-bottom: 80px;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.badge-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 3px solid transparent;
}

.badge-card.earned {
    border-color: var(--success);
}

.badge-card.locked {
    opacity: 0.6;
    filter: grayscale(1);
}

.badge-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.badge-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.badge-card.locked .badge-icon {
    background: var(--text-light);
}

.badge-card h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.badge-card p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.badge-date {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
}

/* Resources Section */
.resources-section {
    margin-bottom: 80px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.resource-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.resource-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.resource-card h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.resource-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 992px) {
    .phase-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .phase-status {
        align-self: flex-end;
    }
    
    .subjects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .study-plan-hero {
        padding: 80px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-features {
        gap: 30px;
    }
    
    .feature {
        font-size: 1rem;
    }
    
    .progress-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .progress-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .phase-card {
        padding: 30px 25px;
    }
    
    .subjects-preview {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .progress-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .subjects-preview {
        grid-template-columns: 1fr;
    }
    
    .subject-actions {
        flex-direction: column;
    }
    
    .badges-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== TOP BAR ===== */
.top-bar {
    background: #1a237e;
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: white;
    font-size: 1rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #bbdefb;
}

.contact-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== NAVIGATION BAR (NEW STYLE - SAME AS PDF LIBRARY) ===== */
.navbar {
    background: white;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    margin: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1a237e;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    font-size: 2rem;
    font-weight: normal;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1a237e, #3949ab);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    padding: 0;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: #1a237e;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #1a237e, #3949ab);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    min-width: 250px;
}

.search-bar:focus-within {
    border-color: #1a237e;
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.search-bar input {
    padding: 10px 15px;
    border: none;
    background: transparent;
    flex: 1;
    outline: none;
    font-size: 0.95rem;
    min-width: 0;
}

.search-bar input::placeholder {
    color: #64748b;
}

.search-bar button {
    padding: 10px 15px;
    background: #1a237e;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar button:hover {
    background: #283593;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #1a237e;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: #f1f5f9;
    transform: rotate(90deg);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 2000;
    padding: 100px 20px 40px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    display: block;
    transform: translateX(0);
}

.mobile-menu .nav-links {
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

.mobile-menu .nav-links a {
    font-size: 1.2rem;
    padding: 10px 20px;
    border-radius: 8px;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
}

.mobile-menu .nav-links a:hover,
.mobile-menu .nav-links a.active {
    background: #eef2ff;
    color: #1a237e;
}

.mobile-menu .nav-links a::after {
    display: none;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    backdrop-filter: blur(3px);
}

.mobile-overlay.active {
    display: block;
}

/* Responsive Design for Navigation Only */
@media (max-width: 992px) {
    .search-bar {
        min-width: 200px;
    }
    
    .nav-links {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .search-bar {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-container {
        padding: 12px 20px;
    }
    
    .logo h1 {
        font-size: 1.6rem;
    }
    
    .logo-icon {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 10px 15px;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .logo-icon {
        font-size: 1.6rem;
    }
    
    .mobile-menu {
        padding: 80px 20px 40px;
    }
    
    .mobile-menu .nav-links a {
        font-size: 1.1rem;
        padding: 12px 15px;
    }
    
    .top-bar-content {
        justify-content: center;
    }
    
    .contact-info {
        display: none;
    }
}