/* Advanced Premium Vanilla CSS Design System */
:root {
    /* Color Palette - Vibrant yet professional */
    --primary-color: #000080;
    --primary-hover: #000066;
    --secondary-color: #ef4444;
    --accent-color: #f59e0b;
    
    /* Backgrounds */
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-dark: #0f172a;
    --bg-dark-card: rgba(30, 41, 59, 0.8);
    
    /* Text Colors */
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    
    /* Glassmorphism */
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --glass-blur: blur(12px);

    /* Spacing & Borders */
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Dark Mode Tokens - can be toggled by a body class */
body.dark-mode {
    --bg-main: var(--bg-dark);
    --bg-card: var(--bg-dark-card);
    --text-main: var(--text-light);
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
}

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

a:hover {
    color: var(--primary-hover);
}

/* Typography Elements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-main);
}

/* Layout Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

/* Glassmorphism Card Component */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Header Sections */
.top-header {
    background: #111;
    color: #fff;
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.top-header a {
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.top-header a:hover {
    color: var(--secondary-color);
}

.btn-lang {
    background: #000080;
    color: white;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-apply {
    background: #000080;
    color: white;
    padding: 0.3rem 1.2rem;
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-apply:hover {
    background: var(--secondary-color);
}

.mid-header {
    background: #fff;
    padding: 1.5rem 0;
}

.main-navbar {
    background: #000080;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-navbar .nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-navbar .nav-link {
    color: #fff;
    padding: 1rem 0.85rem;
    display: block;
    font-weight: 700;
    border-right: 1px solid;
    text-transform: uppercase;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}

.main-navbar .nav-link:hover, 
.main-navbar .nav-link.active {
    background: #ef4444;
}

.main-navbar .nav-links li:last-child .nav-link {
    border-right: none;
}

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

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

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 240px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    list-style: none;
    padding: 0.5rem 0;
    border-top: 3px solid var(--secondary-color);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    padding: 0.75rem 1.5rem;
    display: block;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dropdown-menu li a:hover {
    background: rgba(0, 0, 128, 0.05);
    color: #000080;
    padding-left: 1.75rem;
}

.dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Animated gradient background */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79,70,229,0.1) 0%, rgba(14,165,233,0.05) 50%, rgba(248,250,252,0) 100%);
    z-index: -1;
    animation: rotate 20s linear infinite;
}

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

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Badges */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.badge-new {
    background: rgba(244, 63, 94, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(244, 63, 94, 0.2);
}

/* News Ticker */
.news-ticker-container {
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    padding: 0.5rem 0;
}

.ticker-label {
    background: #000080;
    color: white;
    padding: 0.2rem 1rem;
    font-weight: 700;
    margin-right: 1.5rem;
    position: relative;
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    border-left: 10px solid #000080;
}

.ticker-item {
    margin-right: 3rem;
    color: #333;
    font-weight: 600;
}

.ticker-item i {
    color: #ef4444;
}

.ticker-item a:hover {
    color: #ef4444;
    text-decoration: underline !important;
}

/* Hero Slider */
.hero-slider {
    height: 500px;
    position: relative;
    overflow: hidden;
}

.slider-container, .slide {
    height: 100%;
    width: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    color: white;
}

.slide-content h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
}

@media (max-width: 768px) {
    .slide-content h2 {
        font-size: 2rem;
    }
}
/* Premium Table Component */
.premium-table-container {
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.premium-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.75rem;
}

.premium-table th {
    padding: 1.25rem 1rem;
    font-weight: 700;
    color: #64748b;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    border-bottom: 2px solid #f1f5f9;
}

.premium-table tbody tr {
    background: #f8fafc;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-table tbody tr:hover {
    background: white;
    box-shadow: 0 10px 20px rgba(0, 0, 128, 0.05);
    transform: translateY(-2px) scale(1.005);
}

.premium-table td {
    padding: 1.25rem 1rem;
    color: #1e293b;
    font-size: 0.95rem;
    vertical-align: middle;
}

.premium-table tbody tr td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    padding-left: 1.5rem;
}

.premium-table tbody tr td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    padding-right: 1.5rem;
}

/* Status Badges within Tables */
.table-status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.status-approved { background: rgba(34, 197, 94, 0.1); color: #16a34a; }
.status-pending { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.status-rejected { background: rgba(239, 68, 68, 0.1); color: #dc2626; }

@media (max-width: 768px) {
    .premium-table-container {
        padding: 0.75rem;
        border-radius: 15px;
    }
    .premium-table td, .premium-table th {
        padding: 1rem 0.5rem;
    }
}

/* Pagination Styles */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    gap: 0.5rem;
    margin: 2rem 0;
    justify-content: center;
    align-items: center;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: var(--transition);
}

.page-item.active .page-link {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-item.disabled .page-link {
    color: #cbd5e0;
    pointer-events: none;
    background: #f8fafc;
}

.page-link:hover {
    background: #f1f5f9;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.page-item:first-child .page-link,
.page-item:last-child .page-link {
    border-radius: 10px;
}

/* SVG Icon resizing within pagination */
.pagination svg {
    width: 1.25rem;
    height: 1.25rem;
}
