@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary: #0088ff;
    --primary-light: #33aaff;
    --primary-dark: #0044bb;
    --secondary: #7c3aed;
    --secondary-light: #a78bfa;
    --secondary-dark: #5b21b6;
    --bg-light: #F4F7F6;
    --bg-white: #FFFFFF;
    --text-dark: #333333;
    --text-muted: #555555;
    --text-light: #888888;
    --border-color: #E2E8F0;
    --success: #10B981;
    --success-light: #D1FAE5;
    --warning: #FBBF24;
    --warning-light: #FEF3C7;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 51, 102, 0.12);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-dark);
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font-family: inherit;
}

/* Base Layout Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Brand Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--bg-white);
}

.btn-secondary:hover {
    background-color: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.btn-danger {
    background-color: var(--danger);
    color: var(--bg-white);
}

.btn-danger:hover {
    background-color: #DC2626;
}

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

.btn-icon {
    padding: 8px;
    border-radius: 50%;
}

/* Header & Navigation */
.site-header {
    background-color: var(--bg-white);
    color: var(--text-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-section img {
    height: 54px;
    object-fit: contain;
}

.logo-section h1 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--primary);
}

.logo-section h1 span {
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

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

/* Dropdown Menu styling */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-white);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    padding: 10px 0;
    z-index: 1000;
    top: 100%;
    left: 0;
    border: 1px solid var(--border-color);
    transform: translateY(10px);
    transition: var(--transition);
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-content a:hover {
    background-color: var(--bg-light);
    color: var(--primary);
    padding-left: 25px;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
    transform: translateY(0);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
}

/* Footer */
.site-footer {
    background-color: #0d1e33;
    color: rgba(255,255,255,0.75);
    padding: 60px 0 30px;
    margin-top: 80px;
    font-size: 0.9rem;
    border-top: 5px solid var(--secondary);
}

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

.footer-widget h3 {
    color: var(--bg-white);
    font-size: 1.15rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-widget p {
    margin-bottom: 12px;
    line-height: 1.7;
}

.footer-widget ul {
    list-style: none;
}

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

.footer-widget ul li a:hover {
    color: var(--secondary-light);
    padding-left: 6px;
}

.footer-widget ul li a {
    transition: var(--transition);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.06);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--secondary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.85rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 25px;
    color: var(--bg-white);
}

.hero-content h2 span {
    color: var(--secondary);
}

.hero-content p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 35px;
    max-width: 600px;
    line-height: 1.7;
}

.hero-image img {
    width: 100%;
    max-height: 380px;
    object-fit: contain;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* Shortcuts Menu Section */
.shortcuts-section {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.shortcut-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary);
    transition: var(--transition);
    text-align: center;
}

.shortcut-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.shortcut-card:nth-child(2) {
    border-top-color: var(--secondary);
}

.shortcut-card:nth-child(3) {
    border-top-color: var(--success);
}

.shortcut-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(0, 86, 179, 0.08);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.shortcut-card:nth-child(2) .shortcut-icon {
    background-color: rgba(255, 153, 0, 0.08);
    color: var(--secondary);
}

.shortcut-card:nth-child(3) .shortcut-icon {
    background-color: rgba(16, 185, 129, 0.08);
    color: var(--success);
}

.shortcut-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.shortcut-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Home Section Layouts */
.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 2px;
}

.content-section {
    padding: 80px 0;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Organisation grid */
.org-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 30px;
}

.org-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 30px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
    width: 100%;
    max-width: 320px;
}

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

.org-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    margin: 0 auto 18px;
    border: 3px solid var(--border-color);
}

.org-card h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.org-card .role {
    font-size: 0.85rem;
    color: var(--secondary-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.org-card .nip {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* Lecturer filters & Grid cards */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    background-color: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

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

.lecturer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.lecturer-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    text-align: center;
    padding: 24px;
    transition: var(--transition);
}

.lecturer-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.lecturer-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid var(--primary-light);
}

.lecturer-card h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--primary-dark);
}

.lecturer-card .field {
    font-size: 0.82rem;
    background-color: var(--bg-light);
    color: var(--primary);
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-weight: 600;
}

/* Download Area Grid */
.download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.download-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.download-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.download-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.download-info i {
    font-size: 1.8rem;
    color: var(--danger);
}

.download-info h5 {
    font-size: 0.95rem;
    font-weight: 700;
}

.download-info p {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Responsive Table Wrapper styling */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    margin-top: 20px;
}

.responsive-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.responsive-table th {
    background-color: #F8FAFC;
    color: var(--primary-dark);
    font-weight: 700;
    padding: 16px 20px;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.responsive-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    vertical-align: middle;
}

.responsive-table tr:last-child td {
    border-bottom: none;
}

.responsive-table tr:hover {
    background-color: #F8FAFC;
}

/* Post Cards styling */
.post-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.post-card-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    background-color: var(--primary-dark);
    position: relative;
}

.post-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--secondary);
    color: var(--bg-white);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.post-card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-card-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 12px;
    display: flex;
    gap: 15px;
}

.post-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-dark);
    line-height: 1.4;
}

.post-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
}

.post-card-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.post-card-link:hover {
    color: var(--primary-light);
    gap: 8px;
}

/* Authentication Page */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.auth-card {
    background-color: var(--bg-white);
    width: 100%;
    max-width: 440px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border-top: 6px solid var(--secondary);
    padding: 40px 30px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header img {
    height: 60px;
    margin-bottom: 15px;
}

.auth-header h2 {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 800;
}

.auth-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.9rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius);
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-check input {
    cursor: pointer;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: var(--success-light);
    color: #065F46;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background-color: var(--danger-light);
    color: #991B1B;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .shortcuts-grid {
        grid-template-columns: 1fr;
        margin-top: -20px;
    }
    .org-grid {
        grid-template-columns: 1fr;
    }
    .grid-2-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        margin: 0 auto 30px;
    }
    
    .grid-3-col {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Admin Panel Back-office Custom Styling
   ========================================================================== */

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background-color: var(--primary-dark);
    color: rgba(255,255,255,0.75);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 50;
    transition: var(--transition);
}

.admin-sidebar-header {
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--bg-white);
}

.admin-sidebar-logo span {
    color: var(--secondary-light);
}

.admin-sidebar-menu {
    flex-grow: 1;
    padding: 20px 0;
    list-style: none;
    overflow-y: auto;
}

.admin-menu-item {
    margin-bottom: 4px;
}

.admin-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    transition: var(--transition);
}

.admin-menu-link:hover, .admin-menu-item.active .admin-menu-link {
    background-color: rgba(255,255,255,0.05);
    color: var(--bg-white);
    border-left: 4px solid var(--secondary-light);
}

.admin-menu-link svg, .admin-menu-link i {
    width: 18px;
    height: 18px;
    opacity: 0.75;
}

.admin-menu-link:hover svg, .admin-menu-item.active svg,
.admin-menu-link:hover i, .admin-menu-item.active i {
    opacity: 1;
}

.admin-submenu {
    list-style: none;
    padding-left: 50px;
    margin-bottom: 10px;
}

.admin-submenu-link {
    display: block;
    padding: 8px 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.admin-submenu-link:hover, .admin-submenu-item.active .admin-submenu-link {
    color: var(--secondary-light);
}

.admin-sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Admin Main Content */
.admin-main {
    flex-grow: 1;
    margin-left: 260px;
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-navbar {
    height: 80px;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    right: 0;
    left: 260px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    transition: var(--transition);
}

.admin-navbar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.admin-navbar-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-user-info {
    text-align: right;
}

.admin-user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.admin-user-role {
    font-size: 0.75rem;
    color: var(--text-light);
}

.admin-content-wrapper {
    padding: 30px;
    flex-grow: 1;
}

/* Admin Tables (List Views) */
.table-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-top: 20px;
}

.table-toolbar {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.table-filters {
    display: flex;
    align-items: center;
    gap: 15px;
}

.table-search {
    width: 250px;
}

.bulk-actions-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.admin-table th {
    background-color: #F8FAFC;
    color: var(--text-muted);
    font-weight: 600;
    padding: 14px 20px;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.admin-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    vertical-align: middle;
}

.admin-table tr:hover {
    background-color: #F8FAFC;
}

/* Badge status colors */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
}

.badge-success {
    background-color: var(--success-light);
    color: #065F46;
}

.badge-warning {
    background-color: var(--warning-light);
    color: #92400E;
}

.badge-secondary {
    background-color: #F3F4F6;
    color: #374151;
}

/* Actions list */
.table-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-link {
    color: var(--text-light);
    transition: var(--transition);
}

.action-link:hover {
    color: var(--primary);
}

.action-link.delete:hover {
    color: var(--danger);
}

/* Clean Workspace Editor Layout */
.editor-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

.editor-main-area {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 30px;
    min-height: 450px;
}

.editor-sidebar-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.editor-sidebar-widget {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 20px;
}

.editor-widget-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-dark);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* Quill Editor Styles */
.ql-container {
    font-family: var(--font-body) !important;
    font-size: 0.95rem !important;
    min-height: 300px;
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.ql-toolbar {
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    background-color: #F8FAFC;
}

/* Drag and Drop Image Box */
.image-upload-box {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.image-upload-box:hover, .image-upload-box.dragover {
    border-color: var(--primary);
    background-color: rgba(0, 136, 255, 0.02);
}

.image-upload-icon {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.image-upload-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.image-upload-preview {
    max-width: 100%;
    max-height: 150px;
    object-fit: cover;
    margin-top: 10px;
    border-radius: 4px;
}

/* Live Preview Mode Splitscreen Modal/Panel */
.preview-modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 50%;
    height: 100vh;
    background-color: var(--bg-white);
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    z-index: 200;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.preview-modal.active {
    right: 0;
}

.preview-header {
    height: 80px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background-color: var(--primary-dark);
    color: var(--bg-white);
}

.preview-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 40px 30px;
}

.preview-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.4);
    z-index: 190;
    display: none;
}

.preview-backdrop.active {
    display: block;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-message {
    background-color: var(--primary-dark);
    color: var(--bg-white);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid var(--secondary);
}

.toast-message.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-message.success {
    border-left-color: var(--success);
}

.toast-message.danger {
    border-left-color: var(--danger);
}

/* Responsive sidebar toggle overrides for admin panel */
@media (max-width: 1024px) {
    .admin-sidebar {
        left: -260px;
    }
    
    .admin-sidebar.active {
        left: 0;
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .admin-navbar {
        left: 0;
    }
    
    .preview-modal {
        width: 100%;
    }
}

/* ==========================================================================
   Admin Dashboard Metrics and Charts/Statistics Styling
   ========================================================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.stat-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info h4 {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-top: 25px;
}

.chart-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.chart-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bar-chart-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bar-label {
    width: 140px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bar-wrapper {
    flex-grow: 1;
    height: 12px;
    background-color: #F1F5F9;
    border-radius: 6px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-row:hover .bar-fill {
    opacity: 0.85;
}

.bar-value {
    width: 75px;
    text-align: right;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

.gender-donut-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    min-height: 150px;
}

.donut-graphic {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) 0% 58%, var(--secondary) 58% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.donut-graphic::before {
    content: '';
    position: absolute;
    width: 90px;
    height: 90px;
    background-color: var(--bg-white);
    border-radius: 50%;
}

.donut-center-text {
    position: relative;
    text-align: center;
}

.donut-center-text .main {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.1;
}

.donut-center-text .sub {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.donut-legends {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    .gender-donut-container {
        gap: 20px;
    }
}

/* --- STRUCTURAL THEMES (ADMIN ONLY) --- */

/* 1. Minimalist Theme */
body.theme-minimalist {
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --border-color: transparent;
    --shadow-sm: none;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --border-radius-lg: 4px;
    --border-radius: 4px;
}
body.theme-minimalist .admin-sidebar {
    border-right: 1px solid #F3F4F6;
    background-color: #FFFFFF;
}
body.theme-minimalist .admin-navbar {
    border-bottom: 1px solid #F3F4F6;
    background-color: #FFFFFF;
    box-shadow: none;
}
body.theme-minimalist .editor-sidebar-widget, 
body.theme-minimalist .stat-card, 
body.theme-minimalist .chart-card {
    border: 1px solid #F3F4F6;
    box-shadow: none;
    background-color: #FFFFFF;
}
body.theme-minimalist .admin-menu-link.active {
    background-color: #F3F4F6;
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

/* 2. Modern Corporate Theme */
body.theme-modern {
    --bg-light: #F1F5F9;
    --bg-white: rgba(255, 255, 255, 0.95);
    --border-color: rgba(226, 232, 240, 0.8);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius-lg: 24px;
    --border-radius: 12px;
}
body.theme-modern .admin-sidebar {
    margin: 15px 0 15px 15px;
    height: calc(100vh - 30px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    left: 0;
}
body.theme-modern .admin-navbar {
    margin: 15px 15px 20px 15px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    left: 275px;
}
body.theme-modern .admin-main {
    margin-left: 275px;
    padding-top: 115px;
}
body.theme-modern .admin-content-wrapper {
    padding: 0 20px 20px 20px;
}

@media (max-width: 1024px) {
    body.theme-modern .admin-sidebar {
        margin: 15px;
        left: -290px;
        height: calc(100vh - 30px);
    }
    body.theme-modern .admin-sidebar.active {
        left: 0;
    }
    body.theme-modern .admin-navbar {
        left: 0;
    }
    body.theme-modern .admin-main {
        margin-left: 0;
        padding-top: 115px;
    }
}
body.theme-modern .editor-sidebar-widget, 
body.theme-modern .stat-card, 
body.theme-modern .chart-card {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 2px solid rgba(255, 255, 255, 0.8);
}
body.theme-modern .admin-menu-link {
    margin: 0 15px;
    border-radius: 10px;
}
body.theme-modern .admin-menu-link.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 136, 255, 0.3);
}

/* --- STRUCTURAL THEMES (PUBLIC) --- */
/* Minimalist Public */
body.theme-minimalist .site-header,
body.theme-minimalist .shortcut-card,
body.theme-minimalist .org-card,
body.theme-minimalist .lecturer-card,
body.theme-minimalist .post-card,
body.theme-minimalist .download-card {
    border: 1px solid #F3F4F6;
    box-shadow: none;
}
body.theme-minimalist .shortcut-card {
    border-top: 1px solid #F3F4F6;
}
body.theme-minimalist .hero-section {
    background: #FFFFFF;
    color: var(--text-dark);
    border-bottom: 1px solid #F3F4F6;
}
body.theme-minimalist .hero-content h2,
body.theme-minimalist .hero-content p {
    color: var(--text-dark);
}
body.theme-minimalist .hero-section::before {
    display: none;
}
body.theme-minimalist .site-footer {
    background-color: #F9FAFB;
    color: var(--text-dark);
    border-top: 1px solid #F3F4F6;
}
body.theme-minimalist .footer-widget h3 { color: var(--text-dark); }
body.theme-minimalist .footer-widget h3::after { display: none; }
body.theme-minimalist .social-icon { background-color: #F3F4F6; color: var(--text-dark); }
body.theme-minimalist .social-icon:hover { background-color: var(--primary); color: #fff; }
body.theme-minimalist .footer-bottom { border-top: 1px solid #F3F4F6; color: var(--text-muted); }

/* Modern Corporate Public */
body.theme-modern .shortcut-card,
body.theme-modern .org-card,
body.theme-modern .lecturer-card,
body.theme-modern .post-card,
body.theme-modern .download-card {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: none;
}
body.theme-modern .site-header {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background-color: rgba(255, 255, 255, 0.85);
}
body.theme-modern .hero-section {
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    margin-bottom: 20px;
}

/* --- LAYOUT SETTINGS --- */
body.layout-boxed {
    background-color: #e5e7eb;
}
body.layout-boxed .admin-layout,
body.layout-boxed .site-header,
body.layout-boxed main,
body.layout-boxed .site-footer {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--bg-light);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
}
body.layout-boxed .site-header {
    background-color: var(--bg-white);
}
body.layout-boxed .admin-layout {
    height: 100vh;
}
