﻿html {

    font-size: 14px;
    position: relative;
    min-height: 100%;
}
/*.login-bg {
   
    background-image: url('../images/istockphoto-1168305647-612x612.jpg');
   
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}*/
.login-bg {
    min-height: 100vh;
    background: linear-gradient(135deg,#0f4c81,#2c80b9,#7fb3d5);
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}



/*body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f5f7fa;
}*/
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f5f7fa;
    margin: 0;
}
main {
    flex: 1 0 auto; /* grow to fill remaining space */
    min-height: 0; /* allow flex shrink if content is small */
}
/*.main-container {
    margin-top: 70px;*/ /* adjust based on header height */
/*}*/
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1050;
}
/*main {
    flex: 1;
   
}
main {
    min-height: 100%;*/ /* ensures main stretches if content is small */
/*}*/
/*.main-container {
    padding-left: 4rem;
    padding-right: 4rem;
   height: 87%;
}*/
.main-container {
    padding-left: 4rem;
    padding-right: 4rem;
    padding-top: 5rem; /* optional */
    padding-bottom: 1rem; /* optional */
    /* remove height */
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
.menu-card .card {
    border-radius: 12px;
    transition: all .25s ease;
    height: 140px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

    .menu-card .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 25px rgba(0,0,0,.15);
    }

.menu-icon {
    font-size: 38px;
    margin-bottom: 10px;
}

.menu-text {
    font-weight: 500;
    font-size: 15px;
}

/* Override DataTables header */
table.dataTable thead th {
    background-color: #0f5563 !important;
    color: #ffffff !important;
    border-bottom: 2px solid #dee2e6 !important;
    font-weight: 600;
}

/* Optional: hover consistency */
table.dataTable tbody tr:hover {
    background-color: #f8f9fa;
}
/* USER HEADER BOX */
.user-info-box {
    background: linear-gradient(135deg, #855735, #f5c542);
    padding: 6px 14px;
    border-radius: 30px;
    color: #fff;
}

/* Avatar */
.user-avatar {
    width: 38px;
    height: 38px;
    background: #ffffff;
    color: #888;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Text */
.user-text {
    line-height: 1.1;
}

.welcome-text {
    font-size: 12px;
    opacity: 0.9;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
}

/* Logout button */
.logout-btn {
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
    padding: 0;
}

    .logout-btn:hover {
        color: #0d6efd;
        text-decoration: none;
    }


/*///////////////////////*/

/* ================= TOP HEADER ================= */
/* ================= TOP HEADER ================= */

.top-header {
    background-color: #f4eddc;
    border-bottom: 1px solid #d6d0c4;
    padding: 6px 0;
}

.app-title {
    color: #0b7a3b;
    font-weight: 700;
    font-size: 18px;
}

/* USER BOX */
/* USER BOX */

.top-user-box {
    background: #f0b400;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
}

    .top-user-box .welcome-text {
        font-size: 11px;
        display: block;
    }

/* ================= NAVBAR ================= */
/* ================= NAVBAR ================= */

.navbar-ams {
    background-color: #0b7a3b;
    padding: 6px 0;
}

    .navbar-ams .nav-link {
        color: #ffffff !important;
        font-weight: 500;
        font-size: 14px;
    }

        .navbar-ams .nav-link:hover,
        .navbar-ams .nav-link.active {
            text-decoration: underline;
        }

/* LOGOUT */
.logout-link {
    background: transparent;
    border: none;
    color: #ffffff;
    font-weight: 500;
}

.logout-link:hover {
    text-decoration: underline;
}

/* App name link */
.app-name-link {
    text-decoration: none !important;
}

/* App name text */
.app-name {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
/* ================= FOOTER ================= */

.app-footer {
    background-color: #1E293B;
    color: #F1F5F9;
    border-top: 1px solid #334155;
    padding: 0.5rem 1rem; /* smaller vertical padding */
    font-size: 0.875rem;
    margin-top: auto;
}
    .app-footer a {
        color: #F1F5F9;
        text-decoration: none;
        margin-left: 1rem;
    }

        .app-footer a:hover {
            text-decoration: underline;
        }
@media (max-width:768px) {

    .app-name {
        font-size: 18px;
    }

    .menu-card .card {
        height: 120px;
    }

    .menu-icon {
        font-size: 30px;
    }

    .menu-text {
        font-size: 13px;
    }
}

/* MODAL DESIGN */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 45px rgba(0,0,0,.2);
}

/* HEADER */
.modal-header {
    background: #f8f9fb;
    border-bottom: 1px solid #e6e9ef;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.modal-title {
    font-weight: 600;
    color: #ffff; /*#1c5fb8;*/
}

/* BODY */
.modal-body {
    padding: 25px 30px;
}

    /* LABEL */
    .modal-body label {
        font-weight: 500;
        color: #495057;
        margin-bottom: 6px;
    }

    /* INPUT */
    .modal-body .form-control {
        border-radius: 8px;
        padding: 10px 12px;
        border: 1px solid #d6dee8;
    }

        .modal-body .form-control:focus {
            border-color: #1c5fb8;
            box-shadow: 0 0 0 .15rem rgba(28,95,184,.15);
        }

/* FOOTER */
.modal-footer {
    border-top: 1px solid #e6e9ef;
    padding: 15px 25px;
}

    /* BUTTONS */
    .modal-footer .btn {
        border-radius: 25px;
        padding: 8px 18px;
        font-weight: 500;
    }

/* PRIMARY BUTTON */
.btn-primary {
    background: #1c5fb8;
    border: none;
}

    .btn-primary:hover {
        background: #164a90;
    }

/* CANCEL BUTTON */
.btn-secondary {
    background: #6c757d;
    border: none;
}

/* site.css */
#globalLoader {
    display: none; /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.7);
    z-index: 1050;
    align-items: center;
    justify-content: center;
    display: flex; /* use JS to toggle this */
}





/* Card styling */
.card {
    border-radius: 12px;
}

/* Table */


/* Hover effect */
.table-hover tbody tr:hover {
    background-color: #f5faff;
}

/* Image style */
.emp-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    transition: 0.3s;
}

    .emp-img:hover {
        transform: scale(1.2);
    }

/* Badge styles */
.badge {
    padding: 6px 10px;
    font-size: 12px;
}

/* Control modal height */
#searchModal .modal-body {
    max-height: 70vh;
    overflow: hidden;
}

/* Scroll inside table */
.search-table-wrapper {
    max-height: 55vh;
    overflow: auto;
}

    /* Sticky header */
    .search-table-wrapper thead th {
        position: sticky;
        top: 0;
        background: #a5a723;
        z-index: 2;
        color: white;
    }

/* Wrapper scroll */
.search-table-wrapper {
    max-height: 55vh;
    overflow: auto;
    border-radius: 8px;
}

/* Table base */
.search-table {
    background: #ffffff;
    font-size: 13px;
}

    /* Header styling */
    .search-table thead th {
        position: sticky;
        top: 0;
        background: #1b6ec2;
        color: #ffff;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        z-index: 2;
        white-space: nowrap;
    }

    /* Row styling */
    .search-table tbody tr {
        transition: all 0.2s ease;
    }

        /* Zebra striping */
        .search-table tbody tr:nth-child(even) {
            background-color: #f8fbff;
        }

        /* Hover effect */
        .search-table tbody tr:hover {
            background-color: #e6f2ff;
            cursor: pointer;
        }

        /* Selected row */
        .search-table tbody tr.table-active {
            background-color: #cfe2ff !important;
            border-left: 4px solid #0d6efd;
        }

    /* Cell padding */
    .search-table td,
    .search-table th {
        padding: 8px 10px;
        vertical-align: middle;
    }

    /* Horizontal scroll fix */
    .search-table td {
        white-space: nowrap;
    }
.search-table-wrapper {
   
    width: 100%;
}

/* Force table to expand */
.search-table {
    min-width: 1000px; /* 🔥 IMPORTANT for horizontal scroll */
    border-collapse: separate;
}


.fullscreen-card {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999;
    background: #fff;
    margin: 0 !important;
    border-radius: 0 !important;
}

    .fullscreen-card .card-body {
        height: calc(100vh - 60px);
    }

    .fullscreen-card canvas,
    .fullscreen-card #map {
        height: 100% !important;
    }


.marker-wrapper {
    position: relative;
}

.marker-body {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    font-size: 14px;
}

.pulse {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    top: -7px;
    left: -7px;
    animation: pulse-animation 1.5s infinite;
}

.pulse-in {
    background: rgba(25, 135, 84, 0.4);
}

.pulse-out {
    background: rgba(255, 193, 7, 0.4);
}

@keyframes pulse-animation {
    0% {
        transform: scale(0.6);
        opacity: 1;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.chart-container {
    position: relative;
    height: 350px; /* 🔥 Main control */
    width: 100%;
}

#donutChart {
    max-height: 250px; /* Smaller donut */
}

/* Header styling */
#listModalTable thead {
    background: #0f4c81;
    color: #fff;
    font-size: 13px;
}

/* Row hover */
#listModalTable tbody tr:hover {
    background-color: #f5f9ff;
}

/* Image styling */
#listModalTable img {
    transition: transform 0.2s ease;
}

    #listModalTable img:hover {
        transform: scale(1.2);
    }

/* Badge improvements */
.badge {
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 8px;
}
.modal-body {
    word-break: break-word;
    overflow-wrap: anywhere;
}