/* styles.css */

/**************************
    VARIABLES
**************************/

:root {
    --blue: #3277b4a9;
    --orange: #ff7a00;
    --muted: #f2f2f2;

    --background-light: #f5f7fb;
    --background-dark: linear-gradient(135deg, #07101f, #0d1629, #050b18);

    --text-light: #122;
    --text-dark: #e0e0e0;
    --text-dark-muted: #9fb0c8;

    --surface-dark-1: #0f172a;
    --border-dark: rgba(148, 163, 184, 0.28);
    --focus-dark: rgba(96, 165, 250, 0.35);
}

/**************************
    BASE
**************************/

body {
    font-family: "Poppins", "Roboto", sans-serif;
    scroll-behavior: smooth;
    background: var(--background-light);
    color: var(--text-light);
    transition: background 0.3s, color 0.3s;
    font-size: 16px !important;
}

html {
    min-height: 100%;
    background: var(--background-light);
    -webkit-text-size-adjust: 100%;
}

html, body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--background-light);
}

.container-form-width{
    width: 50%;
}

*,
h5,
button {
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--text-light);
}

a {
    color: var(--text-light);
    text-decoration: none;
}

table {
    white-space: normal;
}

th,
td {
    text-wrap: nowrap;
}

.card {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    background: rgba(255, 255, 255, 0.95);
}

.kpi-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}

.dashboard-card {
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.dashboard-quick-card {
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: linear-gradient(90deg, rgba(255,255,255,0.98), rgba(248,250,252,0.95));
}

.dashboard-quick-btn {
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    color: #0f172a;
}

.dashboard-quick-btn:hover {
    background: #eef2ff;
    color: #1d4ed8;
}

.dashboard-kpi-icon {
    min-width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.dashboard-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.dashboard-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.8rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.dark-mode .dashboard-pill
{
    background: rgba(15, 23, 42, 0.85);
    color: var(--text-dark);
    border-color: var(--border-dark);
}

.table th,
.table td {
    vertical-align: middle;
}

.badge {
    font-weight: 600;
}

footer {
    background: transparent;
}

.hero-section {
    position: relative;
    padding: 9rem 0 6rem;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.86), rgba(30, 64, 175, 0.72)), url('../images/site_minier.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 35%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
}

.hero-badge,
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(34, 33, 33, 0.349);
    color: var(--text-light);
    margin-bottom: 1rem;
}
.dark-mode .section-label{
    background: rgba(255, 255, 255, 0.288);
    color: var(--text-light);
}

.hero-card {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 1.25rem;
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    box-shadow: 0 20px 45px rgba(2, 6, 23, 0.25);
}

.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    padding: 0.7rem 0;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #fff;
    text-decoration: none;
}

.landing-brand small {
    display: block;
    color: rgba(226, 232, 240, 0.78);
}

.landing-nav-link {
    color: #e2e8f0;
    font-weight: 600;
    text-decoration: none;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.landing-nav-link:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.landing-image {
    min-height: 320px;
    object-fit: cover;
}

.service-card {
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 1.1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.carousel-container {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.contact-list li {
    margin-bottom: 0.85rem;
    color: #475569;
}

.contact-list i {
    color: #2563eb;
    margin-right: 0.6rem;
}

.dark-mode .contact-list li {
    color: white;
    margin-right: 0.6rem;
}

.contact-form {
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.footer-home {
    background: #f8fafc;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.btnReset {
    margin-top: 10px;
}
.btnReset i{
    color: white;
}
.dark-mode .btnReset i{
    color: white;
}
/**************************
    THEME: DARK MODE
**************************/

.dark-mode {
    background: var(--background-dark);
    color: var(--text-dark);
    color-scheme: dark;
}

html.dark-mode {
    background: var(--background-dark);
    color-scheme: dark;
}

.dark-mode *,
.dark-mode button,
.dark-mode option {
    color: var(--text-dark);
    text-decoration: none;
}

.dark-mode .form-select{
    background: var(--surface-dark-1) !important;
    background-image: none !important;
    color: var(--text-dark);
}

.dark-mode .select2-container--default .select2-selection--single {
    background-color: var(--surface-dark-1) !important;
    border: 1px solid var(--border-dark) !important;
    color: var(--text-dark) !important;
    min-height: 38px;
}

.dark-mode .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-dark) !important;
    line-height: 36px;
}

.dark-mode .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--text-dark-muted) !important;
}

.dark-mode .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--text-dark) transparent transparent transparent !important;
}

.dark-mode .select2-dropdown {
    background-color: var(--surface-dark-1) !important;
    border-color: var(--border-dark) !important;
    color: var(--text-dark) !important;
}

.dark-mode .select2-results__option {
    color: var(--text-dark) !important;
}

.dark-mode .select2-results__option--highlighted[aria-selected] {
    background-color: rgba(59, 130, 246, 0.2) !important;
    color: var(--text-dark) !important;
}

.dark-mode .alert {
    background-color: rgba(30, 41, 59, 0.8);
    border-color: rgba(148, 163, 184, 0.25);
    color: var(--text-dark);
}

body.dark-mode {
    background: var(--background-dark) !important;
    color: var(--text-dark);
}

body.dark-mode,
html.dark-mode {
    background-color: #050b18;
}
/**************************
    LAYOUT: DASHBOARD
**************************/

.navbar.with-sidebar {
    margin-left: 270px;
    width: calc(98% - 270px);
}

.content {
    margin-left: 290px;
    background: transparent;
    padding-top: 120px;
}

.div-content {
    flex: 1;
    padding: 8px;
    padding-bottom: 20px;
}

.dashboard-container {
    margin-left: 0;
}

/**************************
    HEADER
**************************/
header{
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.53), rgba(246, 250, 255, 0.72));
}
.topbar {
    position: fixed;
    top: 10px;
    left: 22px;
    right: 20px;
    height: 85px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.53), rgba(246, 250, 255, 0.72));
    border: 1px solid rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(15px);
    z-index: 999;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.left-zone {
    display: flex;
    align-items: center;
    gap: 25px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-bars {
    display: flex;
    gap: 6px;
    align-items: flex-end;
}

.logo h3 {
    margin: 0;
    font-weight: 700;
    font-size: 1.7rem;
    letter-spacing: 0.5px;
    color: #0f172a;
}

.brand-stack {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.search-box {
    width: 40%;
    position: relative;
}

.search-box input {
    width: 100%;
    height: 60px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 23, 42, 0.14);
    outline: none;
    padding-left: 60px;
    font-size: 18px;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 24px;
}

.search-box input::placeholder {
    color: #94a3b8;
}

.search-box input:focus {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.14);
}

.right-zone {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 22px;
}

.icon-btn:hover {
    background: rgba(226, 232, 240, 0.72);
    border-color: rgba(37, 99, 235, 0.35);
}

.notif-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ff3b3b;
    color: #fff;
    position: absolute;
    top: -4px;
    right: -2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.separator {
    width: 1px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
}

.profile-zone {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-zone img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #5977ff;
    object-fit: cover;
}

.profile-info h5 {
    margin: 0;
    font-size: 22px;
}

.profile-info p {
    margin: 0;
    color: #6d8cff;
}

.mobile-topbar {
    display: none;
}

.dark-mode header,
.dark-mode .topbar,
.dark-mode .mobile-topbar {
    background: linear-gradient(135deg, rgba(11, 18, 35, 0.82), rgba(15, 23, 42, 0.78));
    border-color: var(--border-dark);
}

.dark-mode .mobile-topbar {
    background: rgba(11, 18, 35, 0.98);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.dark-mode .icon-btn {
    background: rgba(24, 36, 64, 0.75);
    border-color: var(--border-dark);
}

.dark-mode .icon-btn:hover {
    background: rgba(37, 99, 235, 0.24);
    border-color: rgba(96, 165, 250, 0.45);
}

.dark-mode .separator {
    background: rgba(148, 163, 184, 0.35);
}

.dark-mode .search-box input {
    background: rgba(15, 23, 42, 0.92);
    border-color: var(--border-dark);
    color: var(--text-dark);
}

.dark-mode .search-box input::placeholder {
    color: var(--text-dark-muted);
}

.dark-mode .logo h3 {
    color: #f8fafc;
}

.dark-mode .brand-subtitle {
    color: #94a3b8;
}

.mobile-actions {
    gap: 10px;
}

/**************************
    SIDEBAR
**************************/

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 290px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    column-gap: 10px;
    background: #fcfcfc;
    border-right: 1px solid rgb(206, 199, 199);
    overflow-y: auto;
}

.sidebar .menu-link {
    margin-top: 2px;
    padding: 12px;
    border-radius: 12px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    column-gap: 10px;
}

.sidebar .menu-link,
.sidebar span,
.sidebar .bi {
    font-size: 16px;
    font-weight: 500;
}

.submenu {
    border-bottom: 1px solid #000;
}

.submenu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 10px;
    transition: 0.3s;
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
}

.sidebar a:hover,
.sidebar button:hover {
    background: #b9bcc0;
}

.dark-mode .sidebar {
    background: linear-gradient(180deg, rgba(11, 18, 35, 0.98), rgba(7, 16, 31, 0.98));
    border-right: 1px solid var(--border-dark);
}

.dark-mode .submenu {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.dark-mode .sidebar a:hover,
.dark-mode .sidebar button:hover {
    background: rgba(59, 130, 246, 0.18);
}

/**************************
    COMPONENTS
**************************/

.bi {
    font-size: 1rem;
    font-weight: bolder;
}

.dark-mode .bi {
    color: var(--text-dark);
}

.arrow {
    transition: transform 0.3s ease;
}

.arrow.rotate {
    transform: rotate(90deg);
}

.card {
    background-color: rgba(255, 255, 255, 0.792);
    border: none;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card .btn {
    color: #fff;
    border: none;
}

.dark-mode .card {
    background: linear-gradient(160deg, rgba(24, 36, 64, 0.92), rgba(15, 23, 42, 0.92));
    border: 1px solid var(--border-dark);
    box-shadow: 0 12px 30px rgba(3, 8, 22, 0.45);
}

.dark-mode .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 34px rgba(8, 12, 25, 0.55);
}

.kpi-card,
.activity-box,
.bottom-box {
    border-radius: 12px;
    padding: 20px;
}

.table {
    margin-bottom: 0;
}

.table-responsive {
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.dark-mode .table tr,
.dark-mode .table th,
.dark-mode .table td {
    background: transparent !important;
    color: var(--text-dark);
}

.dark-mode .table thead th {
    background: rgba(24, 36, 64, 0.9) !important;
    border-color: var(--border-dark);
}

.dark-mode .table tbody tr {
    border-color: rgba(148, 163, 184, 0.14);
}

.dark-mode .table tbody tr:nth-child(even) {
    background: rgba(17, 27, 51, 0.42) !important;
}

.input-group-text {
    background-color: transparent;
    border-right: none;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 87, 163, 0.25);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #198754;
}

.dark-mode input,
.dark-mode select,
.dark-mode textarea {
    background: rgba(15, 23, 42, 0.85) !important;
    color: var(--text-dark);
    border: 1px solid var(--border-dark);
}

.dark-mode .form-control,
.dark-mode .form-select,
.dark-mode input,
.dark-mode textarea {
    color: var(--text-dark) !important;
    -webkit-text-fill-color: var(--text-dark);
}

.dark-mode input::placeholder,
.dark-mode textarea::placeholder {
    color: var(--text-dark-muted);
}

.dark-mode .form-control::placeholder {
    color: var(--text-dark-muted);
}

.dark-mode .form-select option {
    background: #0f172a;
    color: #dbeafe;
}

.dark-mode .form-control:focus,
.dark-mode .form-select:focus,
.dark-mode input:focus,
.dark-mode select:focus,
.dark-mode textarea:focus {
    border-color: rgba(96, 165, 250, 0.65);
    box-shadow: 0 0 0 0.2rem var(--focus-dark);
}

.dark-mode .input-group-text {
    background-color: rgba(15, 23, 42, 0.85);
    border-color: var(--border-dark);
    color: var(--text-dark);
}

.btn-sm {
    border-radius: 6px;
    margin: 0 2px;
    transition: all 0.2s ease;
}

.btn-info.view-profile:hover,
.btn-warning.edit-agent:hover,
.btn-danger.delete-agent:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dark-mode .btn-secondary {
    background: #334155;
    border-color: #475569;
    color: #f8fafc;
}

.dark-mode .btn-secondary:hover {
    background: #475569;
    border-color: #64748b;
}

.badge {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.badge-info {
    background-color: var(--blue) !important;
}

.badge.bg-primary {
    background-color: rgba(13, 110, 253, 0.18) !important;
    color: #0d6efd !important;
    border-color: rgba(13, 110, 253, 0.35);
}

.badge.bg-success {
    background-color: rgba(25, 135, 84, 0.18) !important;
    color: #198754 !important;
    border-color: rgba(25, 135, 84, 0.35);
}

.badge.bg-danger {
    background-color: rgba(220, 53, 69, 0.18) !important;
    color: #dc3545 !important;
    border-color: rgba(220, 53, 69, 0.35);
}

.badge.bg-warning {
    background-color: rgba(255, 193, 7, 0.2) !important;
    color: #9a6700 !important;
    border-color: rgba(255, 193, 7, 0.42);
}

.badge.bg-secondary {
    background-color: rgba(108, 117, 125, 0.18) !important;
    color: #495057 !important;
    border-color: rgba(108, 117, 125, 0.35);
}

.dark-mode .badge.bg-primary {
    background-color: rgba(59, 130, 246, 0.28) !important;
    color: #bfdbfe !important;
    border-color: rgba(147, 197, 253, 0.45);
}

.dark-mode .badge.bg-success {
    background-color: rgba(34, 197, 94, 0.24) !important;
    color: #bbf7d0 !important;
    border-color: rgba(134, 239, 172, 0.44);
}

.dark-mode .badge.bg-danger {
    background-color: rgba(239, 68, 68, 0.24) !important;
    color: #fecaca !important;
    border-color: rgba(252, 165, 165, 0.45);
}

.dark-mode .badge.bg-warning {
    background-color: rgba(245, 158, 11, 0.26) !important;
    color: #fde68a !important;
    border-color: rgba(252, 211, 77, 0.45);
}

.dark-mode .badge.bg-secondary {
    background-color: rgba(148, 163, 184, 0.24) !important;
    color: #e2e8f0 !important;
    border-color: rgba(148, 163, 184, 0.42);
}

.modal-header {
    border-bottom: 2px solid #f0f0f0;
    background-color: rgba(245, 245, 245, 0.5);
}

.modal-body {
    padding: 2rem 1.5rem;
}

.modal-content {
    border-radius: 15px;
    border: none;
}

.dark-mode .modal {
    background: transparent;
    color: var(--text-dark);
}

.dark-mode .modal-dialog,
.dark-mode .offcanvas {
    background-color: var(--surface-dark-1);
    box-shadow: 0 50px 80px rgba(7, 13, 29, 0.75);
    color: var(--text-dark);
}

.dark-mode .modal-content {
    background: linear-gradient(165deg, rgba(17, 27, 51, 0.96), rgba(11, 18, 35, 0.96)) !important;
    border: 1px solid var(--border-dark);
    color: var(--text-dark);
}

.dark-mode .modal-header {
    background-color: rgba(24, 36, 64, 0.6);
    border-bottom-color: var(--border-dark);
}

.dark-mode .modal-footer,
.dark-mode .offcanvas-header,
.dark-mode .offcanvas-body {
    border-color: var(--border-dark);
}

.dark-mode .table-responsive,
.dark-mode .offcanvas,
.dark-mode .modal-content {
    backdrop-filter: blur(8px);
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    object-fit: cover;
}

.agent-profile {
    animation: fadeIn 0.3s ease;
}

.avatar-profile {
    background: linear-gradient(135deg, var(--blue), var(--orange)) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.icon-box {
    width: 45px;
    height: 45px;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #2563eb;
}

.dark-mode .page-link {
    background: transparent !important;
    border: 1px solid var(--border-dark);
    box-shadow: 0 12px 30px rgba(3, 8, 22, 0.45);
}

/**************************
    PAGES: HOME
**************************/

.hero {
    background-image: url('../images/Mine-Industry.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}


.apropos {
    background: lightgrey;
}

.our-teams{
    background: lightgrey;
}

.dark-mode .our-teams {
    background: rgb(54, 53, 53);
}

.dark-mode .apropos {
    background: rgb(54, 53, 53);
}

.dark-mode .services {
    background: transparent;
}

.dark-mode .services .card:hover {
    background: rgb(33, 32, 32);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.quick-actions a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 20%;
    align-items: center;
    background: transparent;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px;
    transition: all 0.3s ease;
}

.leave-page-heading {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.leave-page-heading h1,
.leave-page-heading p {
    margin: 0;
}

.leave-actions-cell {
    flex-wrap: wrap;
    min-width: 120px;
}

.service-card {
    transition: 0.3s;
    border: none;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.dark-mode .contact {
    background: rgb(54, 53, 53);
}

/**************************
    PAGE: AGENTS ON LEAVE
**************************/

.leave-page-header {
    align-items: flex-start;
}

.leave-page-heading h1 {
    margin-bottom: 0.35rem;
    font-size: clamp(1.5rem, 2vw, 2rem);
}

.leave-page-heading p {
    margin-bottom: 0;
    color: #64748b;
}

.leave-table-card,
.leave-quick-actions,
#leaveStats,
#calendar {
    border-radius: 20px;
}

#leaveStats {
    min-height: 380px;
}

#leaveChart {
    display: block;
    width: 100% !important;
    height: 300px !important;
}

#usersEvolutionChart {
    display: block;
    width: 100% !important;
    height: 300px !important;
}

.leave-search-row {
    min-width: 0;
}

.leave-search-row .form-control {
    min-width: 0;
}

.leave-actions-wrap {
    justify-content: flex-start;
}

.leave-action-btn {
    min-width: 2.35rem;
}

.dark-mode .leave-page-heading p {
    color: var(--text-dark-muted);
}

/**************************
    RESPONSIVE
**************************/

@media (max-width: 991.98px) {
    .navbar.with-sidebar {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 992px) {
    .content {
        margin-left: 0;
    }

    .sidebar {
        display: block;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        z-index: 1055;
        transition: left 0.3s ease;
    }

    .sidebar.show {
        left: 0;
    }

    .dashboard-container {
        display: flex;
        margin-left: 0;
    }

    .topbar {
        display: none;
    }

    .mobile-topbar {
        display: inline;
        background: rgba(124, 58, 58, 0.04);
        border: 1px solid rgba(15, 23, 42, 0.14);
        backdrop-filter: blur(15px);
        color: var(--text-light);
        min-height: 60px;
        position: fixed;
        border-bottom: 1px solid rgba(206, 199, 199, 0.385);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    }

    .mobile-topbar .icon-btn {
        width: 46px;
        height: 46px;
        font-size: 1rem;
    }

    .hero-overlay h1 {
        font-size: 16px;
    }
    
    .container-form-width{
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .table {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    input,
    select,
    textarea,
    .form-control,
    .form-select {
        font-size: 16px !important;
    }
    
    .container-form-width{
        width: 100%;
    }
    .content {
        margin-left: 0;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
        margin-top: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .modal-body {
        padding: 1.5rem 1rem;
    }

    .operation-form-modal .modal-content {
        overflow: hidden;
    }

    .operation-form-modal form[data-ajax="true"] {
        display: flex;
        flex-direction: column;
        min-height: 0;
        height: 100%;
    }

    .operation-form-modal .modal-body {
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .leave-page-header {
        padding: 1rem !important;
        gap: 1rem !important;
    }

    .leave-layout-row {
        margin-left: 0;
        margin-right: 0;
    }

    .leave-kpi-body {
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left;
        gap: 0.75rem !important;
    }

    .leave-kpi-body h2 {
        margin-bottom: 0;
        font-size: 1.6rem;
    }

    .leave-filters-row {
        margin-bottom: 0.5rem !important;
    }

    .leave-search-row {
        width: 100%;
    }

    .leave-table-card {
        padding: 1rem !important;
    }

    .leave-table-card .table-responsive {
        border-radius: 14px;
    }

    .leave-table-card table {
        min-width: 760px;
    }

    .leave-actions-cell {
        min-width: 120px;
    }

    .leave-actions-wrap {
        flex-wrap: wrap;
    }

    .leave-quick-actions {
        padding: 1rem !important;
    }

    .quick-actions-body {
        flex-direction: column !important;
    }

    .quick-actions a {
        width: 100%;
        align-items: flex-start;
        text-align: left;
    }

    #leaveStats {
        min-height: 320px;
    }

    #leaveChart {
        height: 240px !important;
    }

    #usersEvolutionChart {
        height: 240px !important;
    }

    .leave-page-header {
        padding: 1rem 0.5rem !important;
    }

    .leave-page-heading h1 {
        font-size: 1.4rem;
    }

    .leave-page-heading p {
        font-size: 0.92rem;
        color: #64748b;
    }

    .dark-mode .leave-page-heading p {
        color: var(--text-dark-muted);
    }

    .leave-layout-row {
        margin-left: 0;
        margin-right: 0;
    }

    .leave-table-card {
        padding: 1rem !important;
    }

    .leave-kpi-body {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
    }

    .leave-kpi-body .d-flex.flex-column {
        align-items: center !important;
    }

    .leave-filters-row {
        row-gap: 0.75rem;
    }

    .leave-search-row {
        padding: 0.65rem 0.8rem;
        border: 1px solid rgba(148, 163, 184, 0.2);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.72);
    }

    .dark-mode .leave-search-row {
        background: rgba(15, 23, 42, 0.72);
        border-color: var(--border-dark);
    }

    .leave-search-row .form-control {
        min-width: 0;
    }

    .leave-search-row .bi {
        flex-shrink: 0;
    }

    .leave-actions-cell {
        justify-content: flex-start;
        gap: 0.4rem !important;
    }

    .leave-actions-cell .btn {
        min-width: 38px;
    }

    .quick-actions-body {
        flex-direction: column !important;
    }

    .quick-actions a {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.75rem;
        text-align: left;
    }

    #calendar,
    #leaveStats {
        overflow: hidden;
    }
}

/**************************
    ANIMATIONS
**************************/

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
