/* ============================================
   RoboCert - Modern SaaS Dashboard Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --primary: #7ba540;
    --primary-dark: #5f8230;
    --primary-light: #9bc265;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --sidebar-width: 260px;
    --topbar-height: 64px;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --transition: 0.2s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background-color: var(--gray-100);
    color: var(--gray-800);
    overflow-x: hidden;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

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

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

@keyframes progressGlow {
    0%, 100% {
        box-shadow: 0 0 4px rgba(123, 165, 64, 0.3);
    }
    50% {
        box-shadow: 0 0 8px rgba(123, 165, 64, 0.5);
    }
}

@keyframes progressStripe {
    0% { background-position: 1rem 0; }
    100% { background-position: 0 0; }
}

/* --- Sidebar --- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, #2d4a18 0%, #436a25 100%);
    color: #fff;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Sidebar Header / Logo */
.sidebar-header {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo {
    display: block;
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
}

.sidebar-brand {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-brand:hover {
    color: #fff;
    text-decoration: none;
}

.sidebar-brand-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 0 20px rgba(155, 194, 101, 0.3);
    flex-shrink: 0;
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
}

.sidebar-brand-name {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.sidebar-brand-subtitle {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Sidebar Section Labels */
.sidebar-section-label {
    padding: 1.25rem 1.25rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.35);
}

/* Sidebar Navigation */
.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.sidebar-item {
    margin: 2px 0.75rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 450;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sidebar-link i {
    font-size: 1.2rem;
    width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}

/* Active sidebar link */
.sidebar-item.active .sidebar-link {
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 500;
    border-left-color: var(--primary-light);
}

/* Sidebar Footer / User */
.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}

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

.sidebar-user-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

.sidebar-logout-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.sidebar-logout-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* --- Main Content --- */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background-color: var(--gray-100);
    transition: margin-left 0.3s ease;
}

.content-wrapper {
    animation: fadeIn 0.4s ease;
}

/* --- Top Bar --- */
.topbar {
    height: var(--topbar-height);
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.topbar-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gray-600);
    font-size: 1.35rem;
    padding: 0.25rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.topbar-toggle:hover {
    color: var(--gray-800);
    background: var(--gray-100);
}

.topbar-breadcrumb {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.topbar-breadcrumb a {
    color: var(--gray-500);
    text-decoration: none;
}

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

.topbar-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--gray-100);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}

.topbar-icon-btn:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.topbar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

/* --- Page Titles --- */
.page-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 0;
}

/* --- Cards --- */
.card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: none;
    background: #fff;
    transition: box-shadow var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card.no-hover:hover {
    box-shadow: none;
}

.card-header {
    background: none;
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-800);
}

.card-body {
    padding: 1.25rem;
}

/* Stat cards */
.stat-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    background: #fff;
    padding: 1.25rem;
    transition: box-shadow var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

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

.stat-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.stat-card-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* --- Tables --- */
.table-container {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    background: #fff;
    overflow: hidden;
}

.table {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.table thead th {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.table tbody tr {
    border-bottom: 1px solid var(--gray-100);
    transition: background-color var(--transition);
}

.table tbody tr:nth-child(even) {
    background-color: var(--gray-50);
}

.table tbody tr:hover {
    background-color: rgba(123, 165, 64, 0.04);
}

.table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    color: var(--gray-700);
    border: none;
}

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

/* --- Badges --- */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.35em 0.75em;
    border-radius: 50rem;
    letter-spacing: 0.01em;
}

.badge-emitida,
.badge-valida {
    background-color: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.badge-erro,
.badge-vencida {
    background-color: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.badge-pendente {
    background-color: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.badge-processando {
    background-color: rgba(59, 130, 246, 0.12);
    color: #2563eb;
    animation: pulse 2s ease-in-out infinite;
}

.badge-enviada_email,
.badge-enviada-email {
    background-color: rgba(6, 182, 212, 0.12);
    color: #0891b2;
}

.badge-sem_handler,
.badge-sem-handler,
.badge-presencial,
.badge-captcha {
    background-color: rgba(100, 116, 139, 0.12);
    color: #475569;
}

.badge-cancelado {
    background-color: rgba(100, 116, 139, 0.1);
    color: #64748b;
}

.badge-aguardando_pagamento,
.badge-aguardando-pagamento {
    background-color: rgba(168, 85, 247, 0.12);
    color: #7c3aed;
}

.badge-aguardando_protocolo,
.badge-aguardando-protocolo {
    background-color: rgba(123, 165, 64, 0.12);
    color: #5f8230;
}

/* Legacy status badges */
.badge-status-valida {
    background-color: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.badge-status-vencida {
    background-color: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.badge-status-pendente {
    background-color: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.badge-status-erro {
    background-color: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

/* --- Progress Bars --- */
.progress {
    height: 8px;
    border-radius: 50rem;
    background-color: var(--gray-200);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 50rem;
    transition: width 0.8s ease-in-out;
}

.progress-bar.bg-success {
    background: linear-gradient(90deg, #059669, var(--success)) !important;
}

.progress-bar.bg-warning {
    background: linear-gradient(90deg, #d97706, var(--warning)) !important;
}

.progress-bar.bg-danger {
    background: linear-gradient(90deg, #dc2626, var(--danger)) !important;
}

.progress-bar.progress-bar-animated {
    animation: progressGlow 2s ease-in-out infinite;
}

.progress-bar-striped {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
    animation: progressStripe 1s linear infinite;
}

/* --- Buttons --- */
.btn {
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    transition: all var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 1px 3px rgba(123, 165, 64, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #4a661f);
    box-shadow: 0 2px 6px rgba(123, 165, 64, 0.4);
    color: #fff;
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: #fff;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: #fff;
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning), #d97706);
    color: #fff;
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fff;
}

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

.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
}

.btn-outline-secondary {
    border: 1px solid var(--gray-300);
    color: var(--gray-600);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--gray-100);
    color: var(--gray-800);
    border-color: var(--gray-400);
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.65rem 1.5rem;
    font-size: 1rem;
}

/* --- Forms --- */
.form-control,
.form-select {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: 0.6rem 0.85rem;
    font-size: 0.875rem;
    color: var(--gray-800);
    transition: all var(--transition);
    background-color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(123, 165, 64, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: var(--gray-400);
}

.form-label {
    font-size: 0.825rem;
    font-weight: 550;
    color: var(--gray-700);
    margin-bottom: 0.35rem;
}

.input-group-text {
    border: 1px solid var(--gray-300);
    background: var(--gray-50);
    color: var(--gray-500);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

/* File upload area */
.file-upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--gray-50);
}

.file-upload-area:hover {
    border-color: var(--primary);
    background: rgba(123, 165, 64, 0.03);
}

.file-upload-area.dragover {
    border-color: var(--primary);
    background: rgba(123, 165, 64, 0.06);
}

/* --- Alerts --- */
.alert {
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    padding: 0.85rem 1rem;
}

.alert-error,
.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #047857;
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: #92400e;
}

.alert-info {
    background-color: rgba(6, 182, 212, 0.1);
    color: #0e7490;
}

/* --- Toast Messages --- */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 400px;
}

.toast-message {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 0.85rem 1rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    animation: toastIn 0.35s ease;
    border-left: 4px solid var(--info);
    font-size: 0.875rem;
}

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

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

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

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

.toast-message.toast-hiding {
    animation: toastOut 0.3s ease forwards;
}

.toast-message i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.toast-message .toast-text {
    flex: 1;
    color: var(--gray-700);
}

.toast-message .toast-close {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.15rem;
    font-size: 1rem;
    line-height: 1;
    transition: color var(--transition);
}

.toast-message .toast-close:hover {
    color: var(--gray-600);
}

/* --- Empty States --- */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 0.35rem;
}

.empty-state-text {
    font-size: 0.875rem;
    color: var(--gray-400);
    max-width: 360px;
    margin: 0 auto;
}

/* --- DataTables Overrides --- */
.dataTables_wrapper {
    font-size: 0.875rem;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
    transition: all var(--transition);
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(123, 165, 64, 0.15);
    outline: none;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: var(--radius-md) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

/* --- Dropdown --- */
.dropdown-menu {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.35rem;
    font-size: 0.875rem;
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.75rem;
    color: var(--gray-700);
    transition: all var(--transition);
}

.dropdown-item:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

/* --- Modal --- */
.modal-content {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--gray-200);
    padding: 1.25rem;
}

.modal-footer {
    border-top: 1px solid var(--gray-200);
    padding: 1rem 1.25rem;
}

/* --- Sidebar Overlay (mobile) --- */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1035;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    display: block;
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
        animation: slideIn 0.3s ease;
    }

    .main-content {
        margin-left: 0;
    }

    .topbar-toggle {
        display: flex;
    }
}

@media (max-width: 575.98px) {
    .toast-container {
        right: 0.5rem;
        left: 0.5rem;
        max-width: none;
    }

    .page-title {
        font-size: 1.35rem;
    }
}

/* --- Navbar overrides (disable Bootstrap defaults) --- */
.navbar {
    box-shadow: none;
}

/* --- Pagination --- */
.page-link {
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    transition: all var(--transition);
}

.page-link:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--primary);
}

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

/* --- Misc Utilities --- */
.text-primary { color: var(--primary) !important; }
.bg-primary-subtle { background-color: rgba(123, 165, 64, 0.1) !important; }
.bg-success-subtle { background-color: rgba(16, 185, 129, 0.1) !important; }
.bg-warning-subtle { background-color: rgba(245, 158, 11, 0.1) !important; }
.bg-danger-subtle { background-color: rgba(239, 68, 68, 0.1) !important; }
.bg-info-subtle { background-color: rgba(6, 182, 212, 0.1) !important; }

.text-success-emphasis { color: #059669 !important; }
.text-warning-emphasis { color: #d97706 !important; }
.text-danger-emphasis { color: #dc2626 !important; }
.text-info-emphasis { color: #0891b2 !important; }
.text-primary-emphasis { color: var(--primary-dark) !important; }

.border-subtle { border-color: var(--gray-200) !important; }

/* --- Login Page --- */
.login-page {
    min-height: 100vh;
    display: flex;
    background: var(--gray-100);
}

.login-left {
    flex: 1;
    background: linear-gradient(135deg, #2d4a18 0%, #436a25 50%, #5f8230 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.login-left::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(123, 165, 64, 0.15);
    top: -100px;
    right: -150px;
}

.login-left::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(155, 194, 101, 0.1);
    bottom: -80px;
    left: -100px;
}

.login-left-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.login-left-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    box-shadow: 0 0 40px rgba(155, 194, 101, 0.3);
}

.login-left-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.login-left-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 280px;
    line-height: 1.5;
}

.login-left-dots {
    position: absolute;
    z-index: 0;
    opacity: 0.08;
    font-size: 0;
}

.login-left-dots::before {
    content: '';
    display: block;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, #fff 1px, transparent 1px);
    background-size: 20px 20px;
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.5s ease;
}

.login-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.login-form-subtitle {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 2rem;
}

@media (max-width: 767.98px) {
    .login-left {
        display: none;
    }

    .login-right {
        flex: 1;
    }
}
