﻿html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

/*dashboard*/
/* Top Navbar */
.top-navbar {
    background: #0A2141;
    min-height: 52px;
}

    /* Brand Box */


    /* Nav Links */
    .top-navbar .nav-link {
        color: #fff !important;
        font-size: 15px;
        font-weight: 500;
        padding: 10px 8px;
        transition: 0.3s;
    }

        .top-navbar .nav-link:hover {
            color: #dceeff !important;
        }

/* Logout */
.logout-btn {
    color: #fff;
    font-size: 20px;
    text-decoration: none;
}

    .logout-btn:hover {
        color: #dceeff;
    }

/* Breadcrumb */
.breadcrumb-bar {
    background: #e9e9e9;
    padding: 8px 15px;
    font-size: 14px;
    color: #444;
}

/* Mobile */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #0A2141;
        padding: 15px;
        margin-top: 10px;
    }

    .top-navbar .nav-link {
        padding: 10px 0;
    }

    .brand-text {
        font-size: 18px;
    }
}
/*logoutmodal*/
#logoutModal .modal-content {
    border-radius: 12px;
    border: none;
}

#logoutModal .btn {
    min-width: 100px;
}
/*submenu*/
.dropdown-submenu .submenu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 230px;
    display: none;
    z-index: 2000;
}

    .dropdown-submenu .submenu.show {
        display: block;
    }

    /* OPEN LEFT IF NO SPACE RIGHT */
    .dropdown-submenu .submenu.left-open {
        left: auto;
        right: 100%;
    }

.dropdown-item:hover {
    background: white;
    color: #0A2141 !important;
}

.dropdown-menu {
    overflow: visible !important;
}
/* Parent submenu item active while child open */
.dropdown-submenu > .dropdown-item {
    position: relative;
    color: #fff !important;
    background: transparent !important;
}

    /* Keep parent highlighted when submenu open/hover */
    .dropdown-submenu:hover > .dropdown-item,
    .dropdown-submenu > .dropdown-item.active-submenu {
        background: white !important;
        color: #0A2141 !important;
    }

    /* Arrow alignment */
    .dropdown-submenu > .dropdown-item.dropdown-toggle::after {
        float: right;
        margin-top: 8px;
    }

.dropdown-divider {
    background: white !important;
}

.dashboard-footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 14px 0;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 30px;
}

    .dashboard-footer strong {
        color: #fff;
    }

@media (max-width: 768px) {
    .dashboard-footer {
        text-align: center;
        font-size: 13px;
    }
}

.employee-page {
    background: #f3f3f3;
}

/* Card */
.employee-card {
    border: 1px solid #bdbdbd;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
}

/* Blue Header */
.section-title {
    background: #0A2141 !important;
    color: white !important;
    font-size: 22px;
    font-weight: 600;
    padding: 12px 18px;
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
}

/* Labels */
.employee-card label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
}

/* Inputs */
.employee-card .form-control,
.employee-card .form-select {
    border-radius: 4px;
    min-height: 42px;
    border: 1px solid #ced4da;
    font-size: 14px;
}

/* Textarea */
.employee-card textarea.form-control {
    min-height: 90px;
    resize: vertical;
}

/* Submit Button */
.submit-btn {
    background: #000;
    color: #fff;
    border: 2px solid #f0ad00;
    padding: 10px 28px;
    font-weight: 600;
    border-radius: 0;
}

    .submit-btn:hover {
        background: #222;
        color: #fff;
    }

/* Mobile */
@media (max-width: 768px) {
    .section-title {
        font-size: 18px;
    }

    .submit-btn {
        width: 100%;
    }
}

.dashboard-footer a {
    color: white !important;
}

.custom-acc-btn {
    background: #0d6efd;
    color: #fff;
    font-weight: 600;
    border-radius: 10px !important;
    padding: 18px 20px;
}

    .custom-acc-btn:not(.collapsed) {
        background: #0d6efd;
        color: #fff;
        box-shadow: none;
    }

    .custom-acc-btn::after {
        filter: brightness(0) invert(1);
    }

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-body {
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 10px 10px;
}
/* Logo */
.brand-box img {
    width: 180px;
    height: 55px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 50%;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Mobile Responsive */
@media (max-width: 767.98px) {
    .brand-box {
        width: 130px;
        height: 45px;
    }

    .brand-logo {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .navbar-brand {
        margin-left: 0;
        padding: 0;
    }
}

/* Extra Small Mobile */
@media (max-width: 400px) {
    .brand-box {
        width: 110px;
        height: 40px;
    }
}
/* ================= WELCOME ================= */

.welcome-box {
    background: linear-gradient( 135deg, #4f46e5, #7c3aed, #9333ea );
    border-radius: 18px;
    padding: 50px 30px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.20);
}

    .welcome-box h4 {
        margin: 0 0 6px;
        font-size: 22px;
        font-weight: 700;
    }

    .welcome-box p {
        margin: 0;
        font-size: 13px;
        opacity: 0.85;
    }

.welcome-date {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.20);
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}


/* ================= SECTION ================= */

.dashboard-section {
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
}

.section-title {
    margin-bottom: 20px;
}

    .section-title h5 {
        margin: 0;
        font-weight: 700;
        color: #1e293b;
    }

    .section-title p {
        margin: 4px 0 0;
        font-size: 12px;
        color: #94a3b8;
    }


/* ================= QUICK ACTION ================= */

.quick-action {
    text-decoration: none;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #edf0f5;
    border-radius: 15px;
    padding: 18px 8px;
    min-height: 105px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

    .quick-action span {
        font-size: 13px;
        font-weight: 600;
    }

    .quick-action:hover {
        transform: translateY(-4px);
        background: #fff;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    }


    /* Different colours */

    .quick-action:nth-child(1) .quick-icon {
        background: #e0e7ff;
        color: #4f46e5;
    }

    .quick-action:nth-child(2) .quick-icon {
        background: #dcfce7;
        color: #16a34a;
    }

    .quick-action:nth-child(3) .quick-icon {
        background: #fef3c7;
        color: #d97706;
    }

    .quick-action:nth-child(4) .quick-icon {
        background: #fce7f3;
        color: #db2777;
    }


.quick-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}


/* ================= ACTIVITY ================= */

.activity-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

    .activity-item:last-child {
        border-bottom: none;
    }

.activity-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ede9fe;
    color: #7c3aed;
}

.activity-item strong {
    font-size: 13px;
    color: #334155;
}

.activity-item p {
    margin: 3px 0;
    font-size: 12px;
    color: #94a3b8;
}

.activity-item small {
    font-size: 10px;
    color: #cbd5e1;
}


/* ================= MOBILE ================= */

@media (max-width: 767.98px) {

    .welcome-box {
        padding: 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

        .welcome-box h4 {
            font-size: 19px;
        }

    .welcome-date {
        width: 100%;
    }

    .dashboard-section {
        padding: 16px;
    }
}

.activity-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 12px;
    border: none;
}

    /* 1st */
    .activity-item:nth-child(1) {
        background: #eef2ff;
    }

    /* 2nd */
    .activity-item:nth-child(2) {
        background: #ecfdf5;
    }

    /* 3rd */
    .activity-item:nth-child(3) {
        background: #fffbeb;
    }

    /* Icon colors */
    .activity-item:nth-child(1) .activity-icon {
        background: #e0e7ff;
        color: #4f46e5;
    }

    .activity-item:nth-child(2) .activity-icon {
        background: #d1fae5;
        color: #059669;
    }

    .activity-item:nth-child(3) .activity-icon {
        background: #fef3c7;
        color: #d97706;
    }

    .activity-item strong {
        color: #334155;
    }

    .activity-item p {
        color: #64748b;
    }

    .activity-item small {
        color: #94a3b8;
    }

.quick-action {
    text-decoration: none;
    border-radius: 15px;
    padding: 18px 8px;
    min-height: 105px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

    /* Add Guard */
    .quick-action.action-warning {
        background: #d7a911;
        border-color: #c5960f;
        color: #b70000;
    }

        .quick-action.action-warning .quick-icon {
            background: #ffe8a3;
            color: #d39e00;
        }

    /* Add Site */
    .quick-action.action-success {
        background: #5abf83;
        border-color: #c6f6d5;
        color: #0a2141;
    }

        .quick-action.action-success .quick-icon {
            background: #d1fae5;
            color: #059669;
        }

    /* Attendance */
    .quick-action.action-info {
        background: #61bae7;
        border-color: #c7edff;
        color: #002474;
    }

        .quick-action.action-info .quick-icon {
            background: #cceeff;
            color: #0284c7;
        }

    /* Reports */
    .quick-action.action-secondary {
        background: #b8b8df;
        border-color: #e4e4e7;
        color: #000000;
    }

        .quick-action.action-secondary .quick-icon {
            background: #e4e4e7;
            color: #71717a;
        }


/* Icon */
.quick-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}


/* Hover */
.quick-action:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.quick-action span {
    font-size: 13px;
    font-weight: 600;
}
/* ================= SUMMARY BLOCK ================= */

.summary-block {
    min-height: 100px;
    padding: 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

    .summary-block:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 22px rgba(0,0,0,0.08);
    }


/* Guards */

.guards-block {
    background: #dd86ed;
    border-color: #dbe4ff;
    color: #4338ca;
}

    .guards-block .summary-icon {
        background: #dfe5ff;
        color: #4f46e5;
    }


/* Sites */

.sites-block {
    background: #5ee7a6;
    border-color: #d1fae5;
    color: #047857;
}

    .sites-block .summary-icon {
        background: #d7f7e8;
        color: #059669;
    }


/* Shifts */

.shifts-block {
    background: #edac5c;
    border-color: #fed7aa;
    color: #c2410c;
}

    .shifts-block .summary-icon {
        background: #ffead5;
        color: #ea580c;
    }


/* Leave */

.leave-block {
    background: #f77ec0;
    border-color: #fbcfe8;
    color: #be185d;
}

    .leave-block .summary-icon {
        background: #fce7f3;
        color: #db2777;
    }


/* Icon */

.summary-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}


/* Text */

.summary-block span {
    display: block;
    font-size: 13px;
    opacity: 0.75;
    margin-bottom: 3px;
}

.summary-block h4 {
    margin: 0;
    font-size: 25px;
    font-weight: 700;
}


/* Mobile */

@media (max-width: 575.98px) {

    .summary-block {
        min-height: 90px;
        padding: 14px;
        gap: 10px;
    }

    .summary-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 19px;
    }

    .summary-block span {
        font-size: 11px;
    }

    .summary-block h4 {
        font-size: 21px;
    }
}
