/* 
   PhD Policy Hub - Modern Professional Academic Platform
   Contemporary Design System with Premium Gradients
   Responsive Design for All Devices
*/

:root {
    /* Primary Gradient Colors - Deep Purple to Teal */
    --primary-dark: #5b21b6;
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --primary-lighter: #ddd6fe;
    
    /* Secondary Gradient - Teal to Cyan */
    --secondary: #14b8a6;
    --secondary-light: #2dd4bf;
    
    /* Accent Colors */
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #06b6d4;
    
    /* Text Colors */
    --text-dark: #1f2937;
    --text: #374151;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    
    /* Background Colors */
    --bg-white: #ffffff;
    --bg: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-dark: #0f172a;
    
    /* Border & Divider */
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(124, 58, 237, 0.15);
    --shadow-lg: 0 10px 30px rgba(124, 58, 237, 0.2);
    --shadow-xl: 0 20px 40px rgba(124, 58, 237, 0.25);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-out;
    --spacing: 1rem;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-secondary) 100%);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-25px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(25px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

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

.fade-in { animation: fadeIn 0.6s ease-out forwards; }
.slide-in-left { animation: slideInLeft 0.6s ease-out forwards; }
.slide-in-right { animation: slideInRight 0.6s ease-out forwards; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; font-weight: 900; }
h2 { font-size: 2.25rem; font-weight: 800; }
h3 { font-size: 1.75rem; font-weight: 700; }
h4 { font-size: 1.3rem; font-weight: 600; }
h5 { font-size: 1.1rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

p {
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.8;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

a:hover {
    color: var(--secondary);
    text-decoration: none;
}

/* ============================================================
   NAVBAR
   ============================================================ */

.navbar {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-secondary) 100%);
    border-bottom: 2px solid var(--primary-lighter);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    cursor: pointer;
}

.navbar-toggle span {
    width: 24px;
    height: 2.5px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text);
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: var(--transition-fast);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(20, 184, 166, 0.1) 100%);
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 1.25rem;
    right: 1.25rem;
    height: 2px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover::after {
    opacity: 1;
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary-lighter) 0%, rgba(20, 184, 166, 0.1) 100%);
    color: var(--primary-dark);
    font-weight: 700;
}

.nav-link.active::after {
    opacity: 1;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    border: 2px solid var(--primary-lighter);
    border-radius: 12px;
    list-style: none;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    margin-top: 0.75rem;
    overflow: hidden;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    border-bottom: 1px solid var(--border-light);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.85rem 1.25rem;
    color: var(--text);
    transition: var(--transition-fast);
    font-weight: 500;
}

.dropdown-menu a:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(20, 184, 166, 0.1) 100%);
    color: var(--primary);
    font-weight: 600;
}

/* Navbar Buttons */
.navbar .btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
}

.navbar .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
}

.navbar .btn-primary:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* ============================================================
   SIDEBAR NAVIGATION
   ============================================================ */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-secondary) 100%);
    border-right: 2px solid var(--primary-lighter);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--primary-lighter);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-logo-icon {
    font-size: 1.75rem;
    display: inline-block;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.sidebar-close {
    display: none;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.sidebar-close span {
    width: 24px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition-fast);
    display: block;
}

.sidebar-close span:first-child {
    transform: rotate(45deg) translate(8px, 8px);
}

.sidebar-close span:last-child {
    transform: rotate(-45deg) translate(7px, -7px);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 0;
}

.sidebar-section {
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.sidebar-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-lighter);
    margin-bottom: 0.75rem;
    padding: 0 0.5rem;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-link {
    display: block;
    padding: 0.85rem 1rem;
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition-fast);
    font-weight: 500;
    position: relative;
    border-left: 3px solid transparent;
    margin-left: -3px;
}

.sidebar-link:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(20, 184, 166, 0.1) 100%);
    color: var(--primary);
    border-left-color: var(--primary);
    transform: translateX(4px);
}

.sidebar-link.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(20, 184, 166, 0.1) 100%);
    color: var(--primary-dark);
    border-left-color: var(--primary);
    font-weight: 600;
}

.sidebar-link.logout:hover {
    color: var(--error);
    border-left-color: var(--error);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 2px solid var(--border-light);
    margin-top: auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-lighter);
    margin: 0.15rem 0 0;
    text-transform: capitalize;
}

.sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    box-shadow: var(--shadow-lg);
    z-index: 1500;
    transition: var(--transition);
}

.sidebar-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.sidebar-toggle span {
    width: 20px;
    height: 2.5px;
    background: white;
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* App Layout with Sidebar */
.app-layout {
    margin-left: 280px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-content {
    flex: 1;
    width: 100%;
    padding-top: 2rem;
}

/* Sidebar Active State Styling */
body.sidebar-open .sidebar {
    transform: translateX(0);
}

body.sidebar-open .sidebar-toggle {
    display: none;
}

/* ============================================================
   CONTAINER & LAYOUT
   ============================================================ */

.main-content {
    padding-top: 2rem;
}

.public-main {
    padding-top: 4rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

section {
    margin-bottom: 4rem;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 2px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.05) 100%);
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
    background: none;
    -webkit-text-fill-color: white;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.hero .btn {
    margin: 0 1rem;
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 16px 16px 0 0;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0) 0%, rgba(20, 184, 166, 0.02) 100%);
    pointer-events: none;
    border-radius: 16px;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: var(--primary-light);
}

.card-header {
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 1rem;
    margin: -2rem -2rem 1rem -2rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(20, 184, 166, 0.05) 100%);
}

.card-header h2,
.card-header h3 {
    margin: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-body {
    padding: 0;
}

.card-footer {
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* ============================================================
   DASHBOARD COMPONENTS
   ============================================================ */

.dashboard-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
}

.dashboard-header h1 {
    color: white;
    background: none;
    -webkit-text-fill-color: white;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-xl);
}

.stat-card .number {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    display: block;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.stat-card .label {
    font-size: 0.95rem;
    opacity: 0.95;
    display: block;
    font-weight: 600;
}

/* ============================================================
   BADGES
   ============================================================ */

.badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.badge-primary {
    background: linear-gradient(135deg, var(--primary-lighter) 0%, rgba(20, 184, 166, 0.2) 100%);
    color: var(--primary-dark);
    border-color: var(--primary-light);
}

.badge-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
    color: var(--success);
    border-color: var(--success);
}

.badge-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
    color: #d97706;
    border-color: var(--warning);
}

.badge-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
    color: var(--error);
    border-color: var(--error);
}

.badge-info {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(6, 182, 212, 0.1) 100%);
    color: var(--info);
    border-color: var(--info);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: 0;
}

.btn:hover::before {
    left: 100%;
}

.btn > * {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-success:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--error) 0%, #dc2626 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-danger:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    transform: translateY(-2px);
    border-color: transparent;
}

.btn-lg {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Button Group */
.btn-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-group .btn {
    flex: 1;
    min-width: 120px;
}

/* ============================================================
   FORMS
   ============================================================ */

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 0.9rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--bg-white);
    transition: var(--transition);
    color: var(--text);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
textarea::placeholder {
    color: var(--text-lighter);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15), 0 4px 12px rgba(124, 58, 237, 0.15);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.02) 0%, rgba(20, 184, 166, 0.02) 100%);
}

textarea {
    resize: vertical;
    min-height: 140px;
}

/* Checkbox & Radio */
input[type="checkbox"],
input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: var(--primary);
}

/* ============================================================
   TABLES
   ============================================================ */

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

thead {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
    color: white;
}

th {
    padding: 1.25rem;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

td {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
}

tbody tr:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(20, 184, 166, 0.05) 100%);
    box-shadow: inset 0 0 15px rgba(124, 58, 237, 0.1);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================================
   ALERTS
   ============================================================ */

.alert {
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 5px solid;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    background: var(--bg-white);
    animation: slideInLeft 0.4s ease-out;
}

.alert-success {
    border-left-color: var(--success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.alert-success strong {
    color: var(--success);
}

.alert-danger {
    border-left-color: var(--error);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
}

.alert-danger strong {
    color: var(--error);
}

.alert-warning {
    border-left-color: var(--warning);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.alert-warning strong {
    color: #d97706;
}

.alert-info {
    border-left-color: var(--info);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
}

.alert-info strong {
    color: var(--info);
}

/* ============================================================
   LOADING & STATES
   ============================================================ */

.loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    border: 4px solid rgba(124, 58, 237, 0.1);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 10px;
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.75rem;
}

.skeleton-card {
    height: 220px;
    border-radius: 12px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: 6rem;
    border-top: 3px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.footer-section {
    animation: slideInLeft 0.6s ease-out backwards;
}

.footer-section:nth-child(2) {
    animation-delay: 0.1s;
}

.footer-section:nth-child(3) {
    animation-delay: 0.2s;
}

.footer-section:nth-child(4) {
    animation-delay: 0.3s;
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: white;
    background: none;
    -webkit-text-fill-color: white;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    background: none;
    -webkit-text-fill-color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 0;
    font-size: 0.95rem;
}

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

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: white;
    text-decoration: none;
    padding-left: 0.25rem;
    transform: translateX(4px);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

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

/* ============================================================
   ABOUT PAGE STYLING
   ============================================================ */

.about-section {
    margin: 5rem 0;
    animation: fadeIn 0.8s ease-out;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.lead {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text);
}

/* Section Content with Image */
.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.section-text {
    animation: slideInLeft 0.8s ease-out;
}

.section-graphic {
    animation: slideInRight 0.8s ease-out;
}

.graphic-box {
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    color: white;
}

.graphic-box h4 {
    color: white;
    background: none;
    -webkit-text-fill-color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.graphic-box p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.gradient-1 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: var(--shadow-lg);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 16px 16px 0 0;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    background: none;
    -webkit-text-fill-color: var(--primary-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Content Cards */
.content-card {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.content-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    border-color: var(--primary-light);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.content-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    background: none;
    -webkit-text-fill-color: var(--primary-dark);
}

.content-card p {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.card-highlight {
    display: inline-block;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(20, 184, 166, 0.1) 100%);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    border: 2px solid var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CTA Grid */
.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.cta-card {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.cta-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: var(--primary-light);
}

.cta-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.cta-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    background: none;
    -webkit-text-fill-color: var(--primary-dark);
}

.cta-card p {
    color: var(--text);
    line-height: 1.7;
}

.cta-detail {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.cta-card .btn {
    margin-top: 1rem;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.benefit-item {
    background: linear-gradient(135deg, var(--primary-lighter) 0%, rgba(20, 184, 166, 0.15) 100%);
    border: 2px solid var(--primary-light);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.benefit-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    font-size: 1.5rem;
    font-weight: 900;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.benefit-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
    background: none;
    -webkit-text-fill-color: var(--primary-dark);
}

.benefit-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg) 100%);
    padding: 4rem 2rem;
    border-radius: 20px;
    border: 2px solid var(--primary-lighter);
}

.contact-box {
    text-align: center;
    max-width: 600px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--primary-lighter);
}

.contact-box p {
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* ============================================================
   LIBRARY PAGE STYLING
   ============================================================ */

.search-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg) 100%);
    border: 2px solid var(--primary-lighter);
    border-radius: 16px;
    padding: 3rem;
    margin: 3rem 0;
    box-shadow: var(--shadow-md);
    animation: slideInLeft 0.8s ease-out;
}

.search-header {
    margin-bottom: 2rem;
    text-align: center;
}

.search-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.search-header p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Search Form */
.search-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-input-group {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--bg-white);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

.search-input::placeholder {
    color: var(--text-lighter);
}

.search-input-group .btn {
    padding: 1rem 2rem;
    white-space: nowrap;
}

/* Filters Group */
.filters-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-item label {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    background: none;
    -webkit-text-fill-color: var(--text-dark);
}

.filter-select {
    padding: 0.85rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background-color: var(--bg-white);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Results Info */
.results-info {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(20, 184, 166, 0.1) 100%);
    border: 2px solid var(--primary-lighter);
    border-radius: 10px;
    padding: 1.25rem 2rem;
    margin: 2rem 0;
    font-size: 1rem;
    color: var(--text);
}

.results-info p {
    margin: 0;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    animation: fadeIn 0.8s ease-out;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
    background: none;
    -webkit-text-fill-color: var(--primary-dark);
}

.no-results p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Results Grid */
.results-grid {
    display: grid;
    gap: 2rem;
    margin: 3rem 0;
    animation: fadeIn 0.8s ease-out;
}

.result-card {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.result-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.result-date {
    color: var(--text-light);
    font-size: 0.85rem;
}

.result-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.result-title a {
    color: var(--primary-dark);
    background: none;
    -webkit-text-fill-color: var(--primary-dark);
    transition: var(--transition);
    text-decoration: none;
}

.result-title a:hover {
    color: var(--secondary);
    -webkit-text-fill-color: var(--secondary);
}

.result-excerpt {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.result-footer {
    display: flex;
    justify-content: flex-end;
}

.result-footer .btn {
    font-size: 0.85rem;
}

/* Pagination Section */
.pagination-section {
    text-align: center;
    margin: 4rem 0;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.page-link:hover {
    background: linear-gradient(135deg, var(--primary-lighter) 0%, rgba(20, 184, 166, 0.1) 100%);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.page-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: 2px solid transparent;
    border-radius: 8px;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
}

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

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-justify { text-align: justify; }

.text-muted { 
    color: var(--text-light);
    font-size: 0.95rem;
}

.text-small { font-size: 0.875rem; }
.text-large { font-size: 1.1rem; }

/* Spacing */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.px-1 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }

/* Display */
.d-flex { display: flex; }
.d-block { display: block; }
.d-grid { display: grid; }
.d-none { display: none; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-end { display: flex; align-items: center; justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Visibility */
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-25 { opacity: 0.25; }

/* Borders */
.border { border: 1px solid var(--border); }
.border-top { border-top: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }
.border-left { border-left: 1px solid var(--border); }
.border-right { border-right: 1px solid var(--border); }
.rounded { border-radius: 10px; }
.rounded-lg { border-radius: 16px; }
.rounded-full { border-radius: 9999px; }

/* Shadows */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Text Colors */
.text-primary { 
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.text-accent { color: var(--accent); font-weight: 700; }
.text-success { color: var(--success); font-weight: 700; }
.text-danger { color: var(--error); font-weight: 700; }
.text-warning { color: var(--warning); font-weight: 700; }
.text-info { color: var(--info); font-weight: 700; }
.text-white { color: white; }
.text-dark { color: var(--text-dark); }

/* Background Colors */
.bg-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.bg-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
}

.bg-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
}

.bg-danger {
    background: linear-gradient(135deg, var(--error) 0%, #dc2626 100%);
    color: white;
}

.bg-light { background-color: var(--bg); }
.bg-white { background-color: var(--bg-white); }
.bg-dark { background-color: var(--bg-dark); color: white; }

/* ============================================================
   ADMIN SECTION STYLES
   ============================================================ */

.admin-sections {
    margin: 3rem 0;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.admin-card {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.admin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.admin-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: var(--primary-light);
}

.admin-card .card-header {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(20, 184, 166, 0.1) 100%);
    border-bottom: 2px solid var(--border);
    padding: 1.5rem;
    margin: 0;
}

.admin-card .card-header h3 {
    margin: 0;
    color: var(--primary-dark);
    background: none;
    -webkit-text-fill-color: var(--primary-dark);
    font-size: 1.25rem;
}

.admin-card .card-body {
    padding: 1.5rem;
}

.admin-card .card-body p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.admin-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition-fast);
    font-weight: 500;
    border-left: 3px solid transparent;
    margin-left: -3px;
}

.admin-link:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(20, 184, 166, 0.1) 100%);
    color: var(--primary);
    border-left-color: var(--primary);
    transform: translateX(4px);
}

.admin-link:active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(20, 184, 166, 0.1) 100%);
    color: var(--primary-dark);
    border-left-color: var(--primary);
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(20, 184, 166, 0.05) 100%);
    border-radius: 10px;
    border-left: 4px solid var(--primary-light);
    transition: var(--transition-fast);
}

.activity-item:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(20, 184, 166, 0.1) 100%);
    border-left-color: var(--primary);
}

.activity-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    margin: 0;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.activity-title strong {
    color: var(--primary-dark);
    font-weight: 700;
}

/* Table Responsive */
.table-responsive {
    overflow-x: auto;
}

.table-container {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 768px) {
    /* Sidebar Mobile Styles */
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        max-width: 280px;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 2000;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    body.sidebar-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1500;
    }

    .sidebar-close {
        display: flex;
    }

    .sidebar-toggle {
        display: flex;
    }

    .app-layout {
        margin-left: 0;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-white);
        border-bottom: 2px solid var(--primary-lighter);
        padding: 1rem;
        z-index: 999;
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-toggle.active + .navbar-menu {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .search-section {
        padding: 2rem 1.5rem;
    }

    .search-input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input-group .btn {
        width: 100%;
    }

    .search-input {
        width: 100%;
    }

    .filters-group {
        grid-template-columns: 1fr;
    }

    .filter-item .btn {
        width: 100%;
    }

    .result-card {
        padding: 1.5rem;
    }

    .result-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .result-title {
        font-size: 1.2rem;
    }

    .result-footer {
        justify-content: flex-start;
    }

    .pagination {
        gap: 0.5rem;
    }

    .page-link,
    .page-current {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    .section-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-section {
        margin: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .benefit-item {
        padding: 1.5rem;
    }

    .benefit-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        width: 100%;
        border-bottom: 2px solid var(--primary-lighter);
    }

    .navbar-menu.active {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav-link {
        display: block;
        padding: 1rem;
        border-radius: 0;
    }

    .nav-link::after {
        display: none;
    }

    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        margin: 0;
        border-radius: 0;
    }

    .nav-dropdown:hover .dropdown-menu {
        display: none;
    }

    .nav-dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding-left: 2.5rem;
    }

    .hero {
        padding: 4rem 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero .btn {
        margin: 0.5rem;
        display: block;
        width: 100%;
    }

    .row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
        min-height: 150px;
    }

    .stat-card .number {
        font-size: 2rem;
    }

    .stat-card .label {
        font-size: 0.9rem;
    }

    table {
        font-size: 0.85rem;
    }

    th, td {
        padding: 0.85rem;
    }

    section h2 {
        font-size: 1.75rem;
    }

    .card {
        padding: 1.5rem;
    }

    .card-header {
        padding: 1.25rem;
        margin: -1.5rem -1.5rem 1rem -1.5rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1rem; }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 1rem 2rem;
    }

    .row {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        padding: 1.5rem;
    }

    table {
        font-size: 0.75rem;
    }

    th, td {
        padding: 0.6rem;
    }

    .card {
        padding: 1rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    section h2::after {
        width: 50px;
    }

    .container {
        padding: 0 0.75rem;
    }

    .navbar-container {
        padding: 1rem 0.75rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .logo-icon {
        font-size: 1.5rem;
    }
}
