/* 
   Grace Admin Dashboard - Premium Design System
   Aesthetic: Sleek Dark Mode (Slate & Indigo Accent) with Glassmorphism
*/

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

:root {
    --bg-primary: #0b0f19;
    --bg-secondary: #111827;
    --bg-card: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #a855f7;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #64748b;
    
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    --sidebar-width: 240px;
    --header-height: 56px;
    --border-radius: 12px;
    --transition-speed: 0.2s;
    --font-sans: 'Outfit', sans-serif;
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

button, input {
    font-family: var(--font-sans);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--text-dark);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

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

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

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 0 25px rgba(99, 102, 241, 0.7); }
}

/* Auth / Login Page Layout */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-image: linear-gradient(rgba(11, 15, 25, 0.8), rgba(11, 15, 25, 0.85)), url('../uploads/login_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.auth-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 440px;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    font-size: 28px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 14px;
}

/* Form Styling */
.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
    transition: var(--transition-speed);
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-container svg {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    width: 18px;
    height: 18px;
    pointer-events: none;
    transition: var(--transition-speed);
}

.form-input {
    width: 100%;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 10px 12px 10px 38px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: all var(--transition-speed) ease;
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: rgba(17, 24, 39, 0.8);
}

.form-input:focus + svg {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    width: 100%;
    padding: 10px 16px;
    border-radius: var(--border-radius);
    border: none;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(99, 102, 241, 0.6);
}

.btn:active {
    transform: translateY(0);
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alerts and Messages */
.alert {
    padding: 12px 16px;
    border-radius: var(--border-radius);
    font-size: 14px;
    margin-bottom: 20px;
    display: none;
    animation: fadeIn var(--transition-speed);
}

.alert-danger {
    background: rgba(239, 68, 110, 0.15);
    border: 1px solid rgba(239, 68, 110, 0.3);
    color: #fca5a5;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #a7f3d0;
}

/* --- MAIN DASHBOARD LAYOUT --- */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: left var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-brand {
    font-size: 20px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: none;
}

.sidebar-profile {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.profile-info {
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    margin-bottom: 2px;
}

.profile-email {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    display: block;
    max-width: 100%;
}

.profile-role {
    font-size: 11px;
    color: var(--text-muted);
}

.sidebar-menu {
    list-style: none;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.menu-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 14px;
    transition: all var(--transition-speed) ease;
}

.menu-item a svg {
    width: 18px;
    height: 18px;
    transition: var(--transition-speed);
}

.menu-item a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}

.menu-item.active a {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
}

.menu-item.active a svg {
    color: #fff;
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid var(--border-color);
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--border-radius);
    color: #fca5a5;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
    font-size: 14px;
}

.btn-logout:hover {
    background: var(--danger);
    color: white;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
}

/* Main Content Wrapper */
.main-wrapper {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

/* Top Navbar */
.navbar {
    height: var(--header-height);
    background-color: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.navbar-toggle-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

.navbar-title {
    font-size: 18px;
    font-weight: 600;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-header-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    border: 1px solid var(--border-color);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
}

/* Dashboard Content Area */
.content-body {
    padding: 20px;
    flex-grow: 1;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

/* Welcome Segment */
.welcome-card {
    background: var(--accent-gradient);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

.welcome-card::after {
    content: '';
    position: absolute;
    right: -10%;
    top: -30%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.welcome-card h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.welcome-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    max-width: 500px;
}

/* Widget Cards Grid */
.widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.widget-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.widget-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(99, 102, 241, 0.25);
}

.widget-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-icon.indigo { background: rgba(99, 102, 241, 0.15); color: var(--primary-color); }
.widget-icon.purple { background: rgba(168, 85, 247, 0.15); color: var(--secondary-color); }
.widget-icon.emerald { background: rgba(16, 185, 129, 0.15); color: var(--success); }

.widget-details h3 {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.widget-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}

/* Dashboard Section Grid */
.sections-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

@media (max-width: 991px) {
    .sections-grid {
        grid-template-columns: 1fr;
    }
}

.section-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
}

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

.section-title {
    font-size: 15px;
    font-weight: 600;
}

/* Table Design */
.table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 13px;
}

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

.status-badge {
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
}

.status-badge.completed { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.status-badge.pending { background: rgba(245, 158, 11, 0.15); color: var(--warning); }

/* Profile View Styling */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-card-header {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px 16px 0 0;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: none;
}

.profile-card-body {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0 0 16px 16px;
    padding: 20px;
}

.profile-large-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.profile-header-details h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 2px;
}

.profile-header-details p {
    color: var(--text-muted);
    font-size: 13px;
}

.profile-grid-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}

@media (max-width: 767px) {
    .profile-grid-form {
        grid-template-columns: 1fr;
    }
}

.form-divider {
    grid-column: 1 / -1;
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

/* Custom Toast Notifications styling */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2000;
}

.toast {
    min-width: 300px;
    max-width: 380px;
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    transform: translateX(120%);
    opacity: 0;
    transition: all var(--transition-speed) cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon.success { color: var(--success); }
.toast-icon.error { color: var(--danger); }
.toast-icon.warning { color: var(--warning); }

/* Overlay Background Mask for mobile sidebar */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 95;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* --- RESPONSIVE BREAKPOINTS --- */

/* Mobile view settings */
@media (max-width: 1023px) {
    .sidebar {
        left: -var(--sidebar-width);
    }
    
    .sidebar.open {
        left: 0;
        box-shadow: 10px 0 35px rgba(0, 0, 0, 0.8);
    }
    
    .sidebar-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .main-wrapper {
        margin-left: 0;
    }
    
    .navbar {
        padding: 0 20px;
    }
    
    .navbar-toggle-btn {
        display: flex;
    }
    
    .content-body {
        padding: 20px;
    }
}

/* Tablets and small screens optimizations */
@media (max-width: 768px) {
    .welcome-card {
        padding: 24px;
        margin-bottom: 24px;
    }
    
    .welcome-card h1 {
        font-size: 22px;
    }
    
    .widgets-grid {
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .widget-card {
        padding: 16px;
        gap: 14px;
    }
    
    .widget-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }
    
    .profile-card-header {
        flex-direction: column;
        text-align: center;
        padding: 24px;
        gap: 16px;
    }
    
    .profile-card-body {
        padding: 24px;
    }
}

/* Modal Window Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
}

.modal-content {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 440px;
    padding: 20px 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 10;
    transform: scale(0.95);
    opacity: 0;
    transition: all var(--transition-speed) ease;
}

.modal.open .modal-content {
    transform: scale(1);
    opacity: 1;
}

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

.modal-title {
    font-size: 16px;
    font-weight: 600;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-speed);
}

.modal-close-btn:hover {
    color: var(--text-main);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

/* CRUD Badge & Button Utility Styles */
.status-badge.active { 
    background: rgba(16, 185, 129, 0.15); 
    color: var(--success); 
}

.status-badge.inactive { 
    background: rgba(100, 116, 139, 0.15); 
    color: var(--text-muted); 
}

.actions-cell {
    display: flex;
    gap: 6px;
}

.btn-action {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-speed) ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-action.edit {
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.2);
}

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

.btn-action.delete {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.2);
}

.btn-action.delete:hover {
    background: var(--danger);
    color: #fff;
}

.tab-header-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

/* BGV CRUD Specific Styles */
.status-badge.green { 
    background: rgba(16, 185, 129, 0.15); 
    color: var(--success); 
}

.status-badge.red { 
    background: rgba(239, 68, 68, 0.15); 
    color: var(--danger); 
}

.status-badge.yellow { 
    background: rgba(245, 158, 11, 0.15); 
    color: var(--warning); 
}

.modal-content.large {
    max-width: 960px;
    width: 95%;
}

.bgv-modal-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
}

@media (max-width: 991px) {
    .bgv-modal-grid {
        grid-template-columns: 1fr;
    }
}

.bgv-checks-scroll {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    background: rgba(17, 24, 39, 0.4);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}

.checkbox-item input {
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Sub table input compact stylings */
.table-input {
    width: 100%;
    background: rgba(17, 24, 39, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 8px;
    color: var(--text-main);
    font-size: 13px;
    outline: none;
}

.table-input:focus {
    border-color: var(--primary-color);
}

/* Proof Document Uploader */
.proof-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.proof-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.proof-thumb-wrapper {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.proof-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.proof-delete-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    cursor: pointer;
    line-height: 1;
    font-weight: bold;
    padding: 0;
}

.proof-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.proof-upload-label:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.proof-upload-input {
    display: none;
}

/* Compact BGV Form styling */
#bgvForm .form-group {
    margin-bottom: 12px;
}

#bgvForm .form-label {
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 500;
}

#bgvForm .form-input {
    padding: 8px 12px !important;
    font-size: 13px;
    height: 38px !important;
    border-radius: 8px;
}

#bgvForm select.form-input {
    height: 38px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

#bgvForm .bgv-modal-grid {
    gap: 16px;
}

#bgvForm .bgv-checks-scroll {
    max-height: 180px;
    padding: 8px 12px;
    border-radius: 8px;
}

#bgvForm .checkbox-grid {
    gap: 8px;
}

#bgvForm .checkbox-item {
    font-size: 13px;
}

#bgvForm .checkbox-item input {
    width: 14px;
    height: 14px;
}

/* Print Action Button Styling */
.btn-action.print {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-color);
}

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

/* Dynamic Proof Gallery Row Styling */
.proof-gallery-row .proof-thumb-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.proof-gallery-row .proof-upload-label {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}


