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

/* ===== PREMIUM ADMIN CSS ===== */
:root {
    /* Main Theme Colors (Public Colors) */
    --primary: #7BC1E8;
    --primary-dark: #5A9BC0;
    --primary-light: rgba(123, 193, 232, 0.15);

    /* Templar Theme Accent */
    --accent: #E32619;
    --accent-hover: #B81D12;

    /* Secondary Theme Colors */
    --secondary: #FFF38A;
    --secondary-dark: #E6D868;

    /* Semantic Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;

    /* Neutral / Backgrounds */
    --bg-body: #F1F5F9;
    --bg-card: #FFFFFF;

    /* Sidebar (Dark Mode) */
    --sidebar-bg: #0F172A;
    --sidebar-hover: #1E293B;
    --sidebar-text: #94A3B8;
    --sidebar-text-active: #F8FAFC;
    --sidebar-border: #1E293B;

    /* Text Colors */
    --text-main: #1E293B;
    --text-muted: #64748B;

    /* Borders & Shadows */
    --border-color: #E2E8F0;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);

    /* Dimensions */
    --sidebar-width: 280px;
    --header-height: 70px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-body);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

/* Wrapper */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: var(--transition);
    z-index: 1000;
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

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

.sidebar::-webkit-scrollbar-thumb {
    background: var(--sidebar-hover);
    border-radius: 10px;
}

.sidebar-header {
    padding: 30px 20px 20px;
    text-align: center;
    border-bottom: 1px solid var(--sidebar-border);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-header img {
    transition: transform 0.3s ease;
}

.sidebar-header:hover img {
    transform: scale(1.05);
}

.sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 15px;
    color: #fff;
    letter-spacing: 0.5px;
}

/* User Profile */
.user-profile {
    padding: 20px;
    margin: 20px 15px;
    background: var(--sidebar-hover);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.user-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
    border: 2px solid #fff;
}

.user-profile h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 600;
}

.user-profile .badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge-admin {
    background: rgba(239, 68, 68, 0.2);
    color: #FCA5A5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-editor {
    background: rgba(16, 185, 129, 0.2);
    color: #6EE7B7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-leitor {
    background: rgba(148, 163, 184, 0.2);
    color: #CBD5E1;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Menu */
.sidebar-menu {
    padding: 10px 0 30px;
    flex: 1;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: var(--transition);
    gap: 15px;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.sidebar-menu a i {
    width: 22px;
    font-size: 1.1rem;
    text-align: center;
    transition: var(--transition);
}

.sidebar-menu a:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-active);
    padding-left: 30px;
}

.sidebar-menu a:hover i {
    color: var(--primary);
    transform: scale(1.1);
}

.sidebar-menu a.active {
    background: linear-gradient(90deg, rgba(2, 132, 199, 0.15) 0%, transparent 100%);
    color: var(--sidebar-text-active);
    border-left: 4px solid var(--primary);
    font-weight: 600;
}

.sidebar-menu a.active i {
    color: var(--primary);
}

.menu-divider {
    height: 1px;
    background: var(--sidebar-border);
    margin: 15px 20px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 30px 40px;
    background: var(--bg-body);
    min-height: 100vh;
    transition: var(--transition);
}

.content-area {
    max-width: 1400px;
    margin: 0 auto;
}

/* Top Bar / Header Inside Main */
.top-bar {
    background: var(--bg-card);
    padding: 20px 30px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.page-title i {
    color: var(--primary);
    background: var(--primary-light);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.1rem;
}

/* ===== DASHBOARD CARDS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 5px 0;
    line-height: 1;
}

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

.stat-icon {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Color variations for icons */
.stat-card:nth-child(1) .stat-icon {
    color: var(--primary);
    background: var(--primary-light);
}

.stat-card:nth-child(2) .stat-icon {
    color: var(--success);
    background: #D1FAE5;
}

.stat-card:nth-child(3) .stat-icon {
    color: var(--accent);
    background: #FFE4E6;
}

.stat-card:nth-child(4) .stat-icon {
    color: var(--warning);
    background: #FEF3C7;
}

/* Quick Actions Card Variation */
.stat-card.action-card {
    cursor: pointer;
    border-top: none;
}

.stat-card.action-card .stat-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 5px;
    color: var(--text-main);
}

.stat-card.action-card:hover {
    background: var(--primary-light);
}

/* ===== WELCOME BANNER ===== */
.welcome-banner {
    background: linear-gradient(135deg, var(--bg-card) 0%, #F8FAFC 100%);
    border-radius: var(--radius-md);
    padding: 35px 30px;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.welcome-banner::after {
    content: '\f518';
    /* Templar-like shield or cross icon if available, otherwise abstract */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: -20px;
    top: -40px;
    font-size: 12rem;
    color: var(--primary);
    opacity: 0.03;
    transform: rotate(-15deg);
}

.welcome-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: inset 0 0 0 2px #fff, 0 4px 10px rgba(2, 132, 199, 0.15);
}

.welcome-text h2 {
    margin: 0 0 8px;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
}

.welcome-text p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.welcome-text p strong {
    color: var(--accent);
}

/* ===== TABLES ===== */
.table-container {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

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

.table-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-responsive {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-admin {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-admin th {
    background: #F8FAFC;
    color: var(--text-muted);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

.table-admin td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.95rem;
    vertical-align: middle;
}

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

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

/* Table Actions (Buttons in table) */
.action-group {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    background: #F1F5F9;
    color: var(--text-muted);
}

.btn-icon:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-icon.delete:hover {
    background: var(--danger);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.5;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 6px rgba(2, 132, 199, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(2, 132, 199, 0.3);
    color: #fff;
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 6px rgba(230, 57, 70, 0.2);
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(230, 57, 70, 0.3);
    color: #fff;
}

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

.btn-outline:hover {
    border-color: var(--text-main);
    background: #F8FAFC;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* ===== FORMS ===== */
.form-container {
    background: var(--bg-card);
    padding: 35px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    max-width: 800px;
}

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

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ===== ALERTS ===== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid;
    font-weight: 500;
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-success {
    background: #ECFDF5;
    color: #065F46;
    border-color: #A7F3D0;
}

.alert-danger {
    background: #FEF2F2;
    color: #991B1B;
    border-color: #FECACA;
}

.alert-warning {
    background: #FFFBEB;
    color: #92400E;
    border-color: #FDE68A;
}

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 450px;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalSlideUp {
    to {
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-main);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    margin-bottom: 25px;
    color: var(--text-muted);
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ===== RESPONSIVE & MOBILE MENU ===== */
.mobile-header {
    display: none;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    margin: -30px -40px 30px -40px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 900;
}

.mobile-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

.mobile-toggle-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    padding: 5px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    z-index: 990;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
        width: 280px;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }

    .mobile-header {
        display: flex;
        margin: -20px -20px 20px -20px;
    }

    .top-bar {
        display: none;
        /* Hide top bar on mobile since we have mobile-header */
    }

    .welcome-banner {
        flex-direction: column;
        text-align: center;
    }

    .welcome-icon {
        margin: 0 auto;
    }
}

/* LOGIN PAGE SPECIFIC FIXES (if any use this CSS) */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-body);
}

.login-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

/* UTILITIES & COMMON COMPONENTS FOR SUBPAGES */
.mt-4 {
    margin-top: 1.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.me-2 {
    margin-right: 0.5rem;
}

.ms-2 {
    margin-left: 0.5rem;
}

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

.text-danger {
    color: var(--danger);
}

.text-success {
    color: var(--success);
}

.text-muted {
    color: var(--text-muted);
}

/* Flexbox Helpers */
.d-flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

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

.align-items-start {
    align-items: flex-start;
}

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

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

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.gap-4 {
    gap: 1.5rem;
}

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

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Subpage Specific Cards & Containers */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
}

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

.card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h3 i {
    color: var(--primary);
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    opacity: 0.3;
    margin-bottom: 20px;
}

.empty-state h4 {
    color: var(--text-main);
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Page Level Layouts */
.page-container {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.page-col-main {
    flex: 1.5;
    min-width: 320px;
}

.page-col-side {
    flex: 1;
    min-width: 300px;
}

/* Responsive Overrides */
@media (max-width: 768px) {

    .page-col-main,
    .page-col-side {
        flex: 100%;
        min-width: 100%;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 15px;
    }

    .card {
        padding: 15px;
        margin-bottom: 15px;
    }

    .form-container,
    .table-container {
        padding: 15px !important;
    }

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

    .table-responsive {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table th,
    .table td,
    .table-admin th,
    .table-admin td {
        white-space: nowrap;
    }

    /* Status Cards */
    .status-cards {
        display: flex;
        gap: 10px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    .status-card {
        flex: 1;
        min-width: 105px;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: 15px 10px;
        text-align: center;
        text-decoration: none;
        color: var(--text-muted);
        transition: var(--transition);
        box-shadow: var(--shadow-sm);
    }

    .status-card:hover,
    .status-card.active {
        border-color: var(--primary);
        background: var(--primary-light);
        color: var(--primary-dark);
        transform: translateY(-2px);
    }

    .status-card i {
        font-size: 1.5rem;
        display: block;
        margin-bottom: 8px;
    }

    .status-card .count {
        font-size: 1.5rem;
        font-weight: 700;
        display: block;
        color: var(--text-main);
        line-height: 1;
        margin-bottom: 5px;
    }

    .status-card.active .count {
        color: var(--primary-dark);
    }

    .status-card .label {
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 600;
    }

    .status-card.pendente.active {
        border-color: var(--warning);
        background: #FEF3C7;
        color: #92400E;
    }

    .status-card.pendente.active .count {
        color: #92400E;
    }

    .status-card.analise.active {
        border-color: var(--info);
        background: #DBEAFE;
        color: #1E40AF;
    }

    .status-card.analise.active .count {
        color: #1E40AF;
    }

    .status-card.aprovado.active {
        border-color: var(--success);
        background: #D1FAE5;
        color: #065F46;
    }

    .status-card.aprovado.active .count {
        color: #065F46;
    }

    .status-card.rejeitado.active {
        border-color: var(--danger);
        background: #FEE2E2;
        color: #991B1B;
    }

    .status-card.rejeitado.active .count {
        color: #991B1B;
    }

    /* Badges */
    .badge {
        display: inline-flex;
        align-items: center;
        padding: 4px 10px;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 600;
        line-height: 1;
    }

    .badge-success {
        background: #D1FAE5;
        color: #065F46;
        border: 1px solid #A7F3D0;
    }

    .badge-warning {
        background: #FEF3C7;
        color: #92400E;
        border: 1px solid #FDE68A;
    }

    .badge-info {
        background: #DBEAFE;
        color: #1E40AF;
        border: 1px solid #BFDBFE;
    }

    .badge-danger {
        background: #FEE2E2;
        color: #991B1B;
        border: 1px solid #FECACA;
    }

    /* Pagination */
    .pagination {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 25px;
        flex-wrap: wrap;
    }

    .pagination a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 14px;
        background: var(--bg-card);
        color: var(--text-main);
        text-decoration: none;
        border-radius: var(--radius-sm);
        border: 1px solid var(--border-color);
        transition: var(--transition);
        font-weight: 500;
    }

    .pagination a:hover,
    .pagination a.active {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
    }

    /* Forms */
    .form-control {
        width: 100%;
        padding: 12px 15px;
        background: var(--bg-body);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
        color: var(--text-main);
        font-size: 0.95rem;
        transition: var(--transition);
    }

    .form-control:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px var(--primary-light);
    }

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: var(--text-main);
        font-weight: 500;
    }

    /* Info Rows & Contact Buttons */
    .info-row {
        display: flex;
        justify-content: space-between;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
        align-items: center;
    }

    .info-label {
        color: var(--text-muted);
        font-size: 0.85rem;
    }

    .info-value {
        color: var(--text-main);
        font-weight: 500;
        text-align: right;
    }

    .btn-contact {
        flex: 1;
        min-width: 100px;
        padding: 12px 16px;
        border-radius: var(--radius-sm);
        text-decoration: none;
        font-weight: 600;
        font-size: 0.85rem;
        text-align: center;
        transition: var(--transition);
    }

    .btn-contact:hover {
        transform: translateY(-2px);
    }

    .btn-whatsapp {
        background: rgba(37, 211, 102, 0.15);
        color: #25D366;
        border: 1px solid #25D366;
    }

    .btn-whatsapp:hover {
        background: #25D366;
        color: #fff;
    }

    .btn-email {
        background: rgba(76, 201, 240, 0.15);
        color: #4cc9f0;
        border: 1px solid #4cc9f0;
    }

    .btn-email:hover {
        background: #4cc9f0;
        color: #fff;
    }

    .btn-telefone {
        background: rgba(201, 161, 77, 0.15);
        color: #c9a14d;
        border: 1px solid #c9a14d;
    }

    .btn-telefone:hover {
        background: #c9a14d;
        color: #1a1a1a;
    }

    /* Upload Area */
    .upload-area {
        border: 2px dashed var(--border-color);
        border-radius: var(--radius-md);
        padding: 40px;
        text-align: center;
        cursor: pointer;
        transition: var(--transition);
        background: var(--bg-body);
    }

    @media (max-width: 768px) {
        .upload-area {
            padding: 20px;
        }

        .upload-area i {
            font-size: 32px !important;
        }
    }

    .upload-area:hover {
        border-color: var(--primary);
        background: rgba(201, 161, 77, 0.05);
    }