 
:root {
    --primary: #1a365d;
    --primary-light: #2c5282;
    --secondary: #38b2ac;
    --accent: #ed8936;
    --light: #f7fafc;
    --dark: #2d3748;
}

.modal-content {
    border-radius: 12px 12px 0 0 !important;
}

body {
    font-family: 'Open Sans', sans-serif;
/*    background-color: var(--light);*/
    color: var(--dark);
}
.btn-light:not(:disabled):not(.disabled):active, 
.btn-light:not(:disabled):not(.disabled).active, 
.show > .btn-light.dropdown-toggle, 
a:active {
    color: var(--secondary) !important;
}
    .navbar {
    background: /*linear-gradient(135deg, #222222 50%, #3e5a7c 70%);*/
    /*   linear-gradient(135deg, #222222 50%, #ff3d2e 121%);*/
    linear-gradient(135deg, #244066 43%, #ff3d2e 100%);
}
.header-section {
    /*  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);*/
    background: linear-gradient(135deg, #244066 43%, #3e5a7c 100%);
    padding: 1.5rem;
    color: white;
    border-radius: 0 0 10px 10px;
    margin-bottom: 1rem;
}

.location-card {
    border: none;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 2rem;
}

    .location-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

.card-header {
    border-radius: 10px 10px 0 0 !important;
}

.text-teal {
    color: var(--secondary);
}

.action-buttons .btn {
    margin: 0.25rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}


.table .thead-dark th {
    color: var(--light);
    background-color: var(--primary);
}


.table-hover tbody tr:hover {
    background-color: rgba(56, 178, 172, 0.1);
}
.collapse .card-body {
    background-color: var(--primary);
}
.card .collapse.show {
    border: 3px solid var(--dark);
}


.modal .table-hover tbody tr:hover {
    background-color: var(--secondary);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 10px 10px 0 0 !important;
}

.modal-title {
    font-weight: 600;
}

.snapshot-report {
    background-color: rgba(247, 250, 252, 0.8);
    border-left: 4px solid var(--secondary);
}

.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    border-top: none;
}

.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.badge {
/*    font-size: 1rem;
    font-weight: 600;*/
/*    padding: 0.75rem 1.25rem;*/
    background-color: var(--primary);
    color: white;
}

.accordion .card-header {
    background-color: var(--dark);
    cursor: pointer;
}

    .accordion .card-header:hover {
        background-color: rgba(56, 178, 172, 0.1);
    }


/* NEW: Responsive card grid */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

    .card-grid .card-item {
        flex: 1 1 30rem;
        min-width: 300px;
    }

    /* NEW: Adjust card margin for grid */
    .card-grid .card {
        margin-bottom: 0;
        height: 100%;
    }

/* NEW: Media query for large screens */
@media (min-width: 1200px) {
    .card-grid .card-item {
        flex: 1 1 45%;
    }
}

/* NEW: Ensure cards have equal height */
.card-grid .card {
    display: flex;
    flex-direction: column;
}

.card-grid .card-body {
    flex: 1;
}

.btn {
    background-color: transparent;
}

.modal {
    background-color: var(--primary);
}

.modal-footer {
 /*   border: none;*/
}

.uiv2 {
    padding-top: 1rem;
    min-width: 100%;
}

.header-section > .container > div > h1 {
    font-size: 1.8rem;
}


@media(max-width: 767px) {
    .header-section > .container > div > h1 {
        font-size: 1rem;
    }
    .header-section > .container > div > div > a {
        padding: 1px 6px;
        font-size: 11px;
        line-height: 1.5;
        border-radius: 3px;
    }

    .card .collapse.show .card-body {
        padding: 0.30rem;
    }
    .header-section {
        padding-left: 0.50rem !important;
        padding-right: 0.50rem !important;

        padding-bottom: 1rem !important;
        padding-bottom: 1rem !important;
    }
    .uiv2 {
        /*padding-right: 0.60rem !important;
        padding-left: 0.60rem !important;*/
    }
    .modal-body .card .card-body{
        padding:0.30rem;
    }
    .modal-body{
        padding:0.30rem;
    }
}


/* Hover effect for DataTable rows */
.dataTable tbody tr:hover {
    background-color: var(--secondary) !important;
    transform: scale(1.005);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

/* Optional: Add pointer cursor */
.dataTable tbody tr {
    cursor: pointer;
    transition: all 0.2s ease;
}

    /* Highlight active row after click */
    .dataTable tbody tr.active-row {
        background-color: rgba(56, 178, 172, 0.25) !important;
        border-left: 3px solid var(--secondary);
    }
 
