/* Global styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.card {
    border: none;
    box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Custom spacing */
.content-header {
    padding: 1rem 0.8rem 0;
    margin: 0 0 1rem 0;
    border-bottom: 1px solid #dee2e6; /* Optional separator */
}


.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

#content-area {
    padding: 15px;
    background: #f8f9fa;
    min-height: 100vh;
}



.mb-4 {
    margin-bottom: 1.2rem !important;
    margin-top: 0.8rem;
}



/* Add to your main.css */
.img-thumbnail {
    object-fit: contain;
    background-color: #f8f9fa;
    padding: 0.25rem;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    margin: 0 auto;
    display: block;
}

/* Add to main.css */
.modal-backdrop.show {
    opacity: 0.5;
    z-index: 1040 !important;
}

.modal {
    z-index: 1050 !important;
}





.modal-dialog {
    max-height: 90vh;
    overflow-y: auto;
}


/* Add to your main.css */
.form-check {
    margin-top: 0.5rem;
}

.form-check-input {
    margin-top: 0.2rem;
}

.form-check-label {
    margin-left: 0.5rem;
}


/* Ensure form containers are properly cleared */
#sections-container:empty {
    display: none;
}

#sections-container::after {
    content: "";
    display: block;
    clear: both;
}

/* Global Table Enhancements */
.table-aligned {
    --bs-table-bg: #fff;
    --bs-table-accent-bg: transparent;
    --bs-table-striped-bg: #f8f9fa;
    --bs-table-hover-bg: #f3f4f6;
}

.table-aligned th {
    font-weight: 600;
    vertical-align: middle;
}

.table-aligned td {
    vertical-align: middle;
}

.table-header-group {
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 2;
}


/* ======== NEW ADDITIONS (MODERN UI) ======== */
:root {
    --primary: #4361ee;
    --primary-light: #eef2ff;
    --secondary: #3f37c9;
    --success: #06d6a0;
    --info: #118ab2;
    --warning: #ffd166;
    --danger: #ef476f;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --border: #dee2e6;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

body {
    font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
    background-color: #f9fbfd;
    color: #343a40;
}

/* Card enhancements */
.card {
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Button enhancements */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-close {
    filter: invert(1);
    right: 20px;
    top: 20px;
}

.btn-outline-primary {
    border-color: #4361ee;
    color: #4361ee;
}

.btn-outline-primary:hover {
    background-color: #4361ee;
    color: white;
}

.btn-outline-danger {
    border-color: #ef476f;
    color: #ef476f;
    border-width: 1px;
    font-size: 0.85rem;
    padding: 0.5rem;
    transition: all 0.2s ease;
}

.btn-outline-danger:hover {
    background-color: #ef476f;
    color: white;
    transform: translateY(-1px);
}


.gap-3 {
    gap: 0.5rem !important;
}

/* Form enhancements */
.form-control, .form-select {
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.15);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Table enhancements */
.table {
    --bs-table-hover-bg: #f1f5ff;
}

.table th {
    background-color: #f8f9fa;
}

/* Sidebar enhancements */
.dashboard-sidebar {
    background-color: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
}

.nav-link {
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 2px 0;
}

.nav-link:hover {
    background-color: var(--primary-light);
}

.nav-link.active-sidebar {
    background-color: #eef2ff !important;
    color: #4361ee !important;
    font-weight: 500;
    border-left: 3px solid #4361ee !important;
}

/* Content header enhancement */
.content-header {
    border-bottom: 1px solid var(--border);
}

/* Utility classes */
.fw-medium {
    font-weight: 500;
}



/* ======================== Request Notification List Styling ======================== */
/* Add to main.css */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.pulse-notification {
    animation: pulse 0.5s ease-in-out 2; /* Pulse 3 times */
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}








/* ======================== Mobile UI Style ======================== */


@media (max-width: 767px) {
    .form-control, .form-select {
        padding: 0.7rem;
    }
    
    .table-responsive {
        border: 0;
    }
    
    .table thead {
        display: none;
    }
    
    .table, .table tbody, .table tr, .table td {
        display: block;
        width: 100%;
    }
    
    .table tr {
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 8px;
    }
    
    .table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid #dee2e6;
    }
    
    .table td::before {
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        width: 45%;
        text-align: left;
        font-weight: 600;
    }
}