:root {
    --primary-gradient: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-color: #333;
    --border-radius: 12px;
}

body {
    background: var(--bg-gradient);
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-color);
}

/* Flex Container for Login centering */
body:has(.login-container) {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glassmorphism Card */
.modern-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
}

/* Center Logo with Filter */
.app-logo {
    display: block;
    max-height: 60px;
    margin: 0 auto 1.5rem;
    filter: brightness(0.2) contrast(1.2);
    /* Darken white logo */
}

.logo-dark-filter {
    filter: brightness(0.1) grayscale(100%);
    /* Make it black/dark grey */
}


/* Search Box Fixes */
.search-box {
    position: relative;
    width: 250px;
}

.search-box input {
    border-radius: 20px;
    padding-left: 2.5rem !important;
    /* Make space for icon */
    border: 1px solid #ddd;
    box-shadow: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    width: 100%;
    border-color: #0072ff;
    box-shadow: 0 0 0 3px rgba(0, 114, 255, 0.1);
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
}

/* Form Controls */
.form-control {
    border-radius: 8px;
    border: 1px solid #e1e1e1;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #0072ff;
    box-shadow: 0 0 0 4px rgba(0, 114, 255, 0.1);
}

/* Buttons */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 114, 255, 0.4);
    background: var(--primary-gradient);
}

/* Table Styling */
.table-modern {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.table-modern thead {
    background: #f8f9fa;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 1px;
    color: #666;
}

.table-modern th,
.table-modern td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

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

.table-modern tr:hover {
    background-color: #f8fbff;
}

/* Badges */
.badge {
    padding: 0.5em 0.8em;
    border-radius: 6px;
    font-weight: 500;
}

/* Pager Customization */
.pagination {
    margin-top: 2rem;
    margin-bottom: 2rem;
    gap: 5px;
    /* Spacing between buttons */
}

.page-item .page-link {
    border: none;
    margin: 0;
    border-radius: 6px;
    color: #555;
    background: white;
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.page-item.active .page-link {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 114, 255, 0.3);
    transform: translateY(-1px);
}

.page-item .page-link:hover {
    background: #e9ecef;
    color: #0072ff;
    transform: translateY(-1px);
}