/* ====== TEMA AKADEMIS ====== */
:root {
    --primary-color: #1a237e;
    --secondary-color: #283593;
    --accent-color: #ffd700;
    --success-color: #2e7d32;
    --info-color: #0277bd;
    --warning-color: #f57c00;
    --danger-color: #c62828;
    --light-color: #f8f9fa;
    --dark-color: #212121;
    --text-primary: #263238;
    --text-secondary: #546e7a;
    --border-radius: 8px;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 6px 20px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* ====== HEADER AKADEMIS ====== */
.academic-header {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: white;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.academic-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ffab00);
}

.university-banner {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.academic-logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-color);
}

.logo-icon i {
    font-size: 2rem;
    color: var(--accent-color);
}

.logo-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(to right, #ffffff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text .subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 5px 0 0 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

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

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.theme-btn.academic,
.admin-btn.academic {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.theme-btn.academic:hover,
.admin-btn.academic:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* ====== NAVIGASI AKADEMIS ====== */
.academic-nav {
    background: white;
    box-shadow: var(--shadow-light);
    border-bottom: 1px solid #e0e0e0;
}

.nav-content {
    padding: 0;
}

.nav-link.academic {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    position: relative;
}

.nav-icon {
    width: 40px;
    height: 40px;
    background: var(--light-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.nav-text {
    display: flex;
    flex-direction: column;
}

.nav-title {
    font-weight: 600;
    font-size: 1rem;
}

.nav-desc {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 2px;
}

.nav-link.academic.active,
.nav-link.academic:hover {
    color: var(--primary-color);
    background: #f8f9ff;
    border-bottom-color: var(--primary-color);
}

.nav-link.academic.active .nav-icon,
.nav-link.academic:hover .nav-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* ====== WELCOME BANNER ====== */
.welcome-banner {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    padding: 40px 0;
    border-bottom: 1px solid #e0e0e0;
}

.welcome-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.welcome-content h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 2.2rem;
}

.welcome-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.welcome-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.welcome-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.welcome-stat i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.welcome-stat span {
    font-weight: 600;
    color: var(--text-primary);
}

/* ====== QUICK STATS ====== */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.stat-card.academic {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-light);
    border: 1px solid #e0e0e0;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card.academic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
}

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

.stat-card.academic.total {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.stat-card.academic.total .stat-number {
    color: white;
}

.stat-card.academic.total .stat-trend {
    color: rgba(255, 255, 255, 0.9);
}

.stat-icon.academic {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: var(--primary-color);
}

.stat-info h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-weight: 500;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.stat-trend {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-trend i {
    color: var(--success-color);
}

/* ====== SECTION HEADER AKADEMIS ====== */
.section-header.academic {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8eaf6;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.section-header.academic h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 0;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ====== FILTERS AKADEMIS ====== */
.academic-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn.academic {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn.academic:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.academic.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* ====== SEARCH BOX AKADEMIS ====== */
.search-box.academic {
    position: relative;
    min-width: 300px;
}

.search-box.academic i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-box.academic input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    background: white;
    transition: var(--transition);
}

.search-box.academic input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

/* ====== CAROUSEL AKADEMIS ====== */
.carousel-container.academic {
    margin: 30px 0;
}

.carousel.academic {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    border: 1px solid #e0e0e0;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 350px;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    background: white;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn.academic {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light);
}

.carousel-btn.academic:hover {
    background: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-dots.academic {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-dots.academic .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e0e0e0;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dots.academic .dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* ====== CONTENT GRID AKADEMIS ====== */
.content-grid.academic {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.content-card.academic {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid #e0e0e0;
    position: relative;
}

.content-card.academic:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.content-card.academic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.card-header.academic {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3.5rem;
    position: relative;
    overflow: hidden;
}

.card-header.academic::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.2), transparent);
}

.card-content.academic {
    padding: 25px;
}

.card-content.academic h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-content.academic p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta.academic {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.card-actions.academic {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-view.academic,
.btn-delete.academic {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-view.academic {
    background: var(--primary-color);
    color: white;
    border: none;
}

.btn-view.academic:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-delete.academic {
    background: #ffebee;
    color: var(--danger-color);
    border: 1px solid #ffcdd2;
}

.btn-delete.academic:hover {
    background: #ffcdd2;
    transform: translateY(-2px);
}

/* ====== BUTTON AKADEMIS ====== */
.btn.btn-academic {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.2);
}

.btn.btn-academic:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 35, 126, 0.3);
}

.btn.btn-academic:active {
    transform: translateY(-1px);
}

/* ====== EMPTY STATE AKADEMIS ====== */
.empty-state.academic {
    background: white;
    border-radius: var(--border-radius);
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow-light);
    border: 2px dashed #e0e0e0;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.empty-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.empty-state.academic h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.empty-state.academic p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ====== MODAL AKADEMIS ====== */
.modal-content.academic {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-heavy);
    border: 1px solid #e0e0e0;
}

.modal-header.academic {
    padding-bottom: 20px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e8eaf6;
}

.modal-header.academic h2 {
    font-family: 'Playfair Display', serif;
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 8px;
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.academic-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.academic-content h3 {
    color: var(--primary-color);
    margin: 25px 0 15px;
    font-size: 1.4rem;
}

.academic-content p {
    margin-bottom: 15px;
}

.academic-content ul, .academic-content ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.academic-content li {
    margin-bottom: 8px;
}

/* ====== FOOTER AKADEMIS ====== */
.academic-footer {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-section h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo i {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.footer-logo h3 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 5px 0 0 0;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info i {
    color: var(--accent-color);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

/* ====== DARK THEME ====== */
.dark-theme {
    background: #121212;
    color: #e0e0e0;
}

.dark-theme .academic-nav {
    background: #1e1e1e;
    border-color: #333;
}

.dark-theme .nav-link.academic {
    color: #b0b0b0;
}

.dark-theme .nav-link.academic.active,
.dark-theme .nav-link.academic:hover {
    background: #2d2d2d;
    color: white;
}

.dark-theme .welcome-banner {
    background: linear-gradient(135deg, #1e1e1e, #2d2d2d);
    border-color: #333;
}

.dark-theme .stat-card.academic,
.dark-theme .content-card.academic,
.dark-theme .empty-state.academic,
.dark-theme .search-box.academic input {
    background: #1e1e1e;
    border-color: #333;
    color: #e0e0e0;
}

.dark-theme .stat-card.academic .stat-number,
.dark-theme .content-card.academic h4,
.dark-theme .empty-state.academic h3 {
    color: #ffffff;
}

.dark-theme .stat-card.academic .stat-info h3,
.dark-theme .content-card.academic p,
.dark-theme .empty-state.academic p,
.dark-theme .filter-btn.academic {
    color: #b0b0b0;
}

.dark-theme .filter-btn.academic {
    background: #2d2d2d;
    border-color: #444;
}

.dark-theme .filter-btn.academic.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.dark-theme .modal-content.academic {
    background: #1e1e1e;
    border-color: #333;
    color: #e0e0e0;
}

.dark-theme .academic-footer {
    background: linear-gradient(135deg, #0d1238, #151d52);
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 1200px) {
    .quick-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .content-grid.academic {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .header-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .academic-info {
        justify-content: center;
    }
    
    .section-header.academic {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .header-right {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box.academic {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .academic-logo {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .logo-text h1 {
        font-size: 1.6rem;
    }
    
    .nav-menu {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 10px 0;
    }
    
    .nav-link.academic {
        padding: 15px;
        min-width: 160px;
    }
    
    .welcome-stats {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .welcome-stat {
        width: 100%;
        max-width: 300px;
    }
    
    .content-grid.academic {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .quick-stats {
        grid-template-columns: 1fr;
    }
    
    .academic-filters {
        flex-direction: column;
    }
    
    .filter-btn.academic {
        justify-content: center;
    }
    
    .carousel-btn.academic {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}