﻿/* ===== NAVBAR PREMIUM BLUE ===== */

.menu-item {
    /*background: linear-gradient(180deg, #fff9c4 0%, #ffeb3b 40%, #f4c430 100%) !important;*/ /* pale to golden yellow */
    background: linear-gradient(180deg, rgb(255,255,255),RGB(100, 117, 111));
    color: #064e10 !important; /* dark green text */
    font-weight: 600;
    padding: 8px 12px !important;
    border-radius: 4px;
    transition: all .2s ease-in-out;
}

    .menu-item:hover {
        background: linear-gradient(180deg, #ffec80 0%, #ffd740 60%, #f7b500 100%) !important;
        color: #064e10 !important;
        box-shadow: 0 0 6px rgba(255, 205, 0, 0.6); /* soft gold glow */
    }

/* Dropdown submenu - submenu */
.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu > .dropdown-menu.show {
        display: block;
    }

    .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -1px;
        display: none;
        position: absolute;
    }

    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }

/* Force top nav menu text (File, Transaction, etc) to dark green */
/* Normal top menu text — dark green */
/* FORCE dark green for FILE / TRANSACTION menu default state */
nav.navbar-custom .navbar-nav .menu-item,
nav.navbar-custom .navbar-nav .menu-item:link,
nav.navbar-custom .navbar-nav .menu-item:visited {
    color: #065a12 !important; /* Dark green */
    font-weight: 700 !important;
    background: transparent !important;
}

    /* HOVER STATE - Gold background + White text */
    nav.navbar-custom .navbar-nav .menu-item:hover,
    nav.navbar-custom .navbar-nav .menu-item:focus {
        background: linear-gradient(to bottom, #f7d86b, #d4a72e) !important;
        color: #ffffff !important;
        border: 1px solid #065a12 !important;
        border-radius: 5px;
    }

    /* KEEP dark green when dropdown opens */
    nav.navbar-custom .navbar-nav .menu-item.show {
        color: #065a12 !important;
    }



.navbar-custom {
    background: linear-gradient(to bottom, #022b5c, #0478e0);
    border-bottom: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

    /* Top-level menu items */
    .navbar-custom .navbar-nav .menu-item {
        color: #ffffff !important;
        font-weight: 600;
        padding: 8px 18px;
        font-size: 15px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    /* Icon spacing */
    .navbar-custom .menu-item i {
        font-size: 16px;
    }

/* Dropdown menu container */
.navbar .dropdown-menu {
    background: linear-gradient(to bottom, #003f8c, #56c3f7);
    color: #fff;
    border: 2px solid #ffffff; /* white border */
    border-radius: 6px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25); /* strong premium shadow */
    padding: 5px 0;
    min-width: 180px;
}

/* Dropdown items text */
.navbar .dropdown-item {
    color: #fff !important;
    font-weight: 500;
}

    /* Hover effect */
    .navbar .dropdown-item:hover {
        background: rgba(255,255,255,0.2); /* smooth white tint */
        color: #fff !important;
        font-weight: 600;
        transition: .2s ease;
        border-radius: 4px;
    }

/* Parent nav link styles */
.navbar-nav .nav-link,
.nav-link.dropdown-toggle {
    background: transparent;
    color: #fff !important;
    font-weight: 600;
}

    /* Hover on main menu */
    .navbar-nav .nav-link:hover {
        color: #e3f7ff !important;
    }

    /* Active underline effect */
    .navbar-nav .nav-link.active {
        border-bottom: 2px solid white;
    }



/* =============== GLOBAL RESET & BASE FONT =============== */
* {
    box-sizing: border-box;
}

/* =============== FORM HEADERS =============== */
.form-container h3 {
    text-align: center;
    background-color: deepskyblue;
    border-radius: 4px;
    color: #2c3e50;
    padding: 6px 0;
    margin: 10px 0;
    font-size: 14px;
}

/* =============== FORM GROUPS =============== */
.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

    .form-group label {
        width: 175px;
        font-size: 14px;
        padding: 2px 6px;
        color: #333;
    }

    .form-group input[type="text"],
    .form-group input[type="password"],
    .form-group input[type="email"],
    .form-group input[type="date"],
    .form-group select {
        width: 300px;
        height: 28px;
        padding: 4px 6px;
        border: 1px solid #bbb;
        border-radius: 4px;
        font-size: 13px;
    }

/* Input spinner remove */
.no-spinner::-webkit-inner-spin-button,
.no-spinner::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.no-spinner {
    -moz-appearance: textfield;
}

/* =============== BUTTONS =============== */
button {
    padding: 6px 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 7px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
}

    button:hover:not(.float-btn) {
        background-color: #2980b9;
        transform: scale(1.1);
    }

.btn-extra-sm {
    padding: 2px 6px;
    font-size: 10px;
}

/* Links styled as buttons */
.create-link {
    padding: 7px 14px;
    background: dodgerblue;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

    .create-link:hover {
        background-color: #17a2b8;
        color: white;
    }

/* =============== DETAIL ROW VIEW =============== */
.row {
    display: flex;
    flex-wrap: wrap;
}

    .row dt.col-sm-3 {
        width: 175px;
        font-size: 14px;
        padding: 2px 6px;
        margin-left: 20px;
        height: 25px;
    }

    .row dd.col-sm-6 {
        width: 60%;
        padding: 6px 10px;
        background: #f3f3f3;
        border: 1px solid #ccc;
        border-radius: 4px;
        height: 25px;
    }

/* =============== TABLE TEMPLATE WRAPPER =============== */
.template-table-box {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid #bbb;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

    /* Table base */
    .template-table-box table {
        width: 100%;
        border-collapse: collapse;
        table-layout: auto;
        background: #fff;
    }

    /* Header */
    .template-table-box thead th {
        position: sticky;
        top: 0;
        z-index: 100;
        background: #56c3f7;
        color: white;
        font-weight: 600;
        text-align: center;
        padding: 6px;
        border-bottom: 1px solid #aaa;
    }

    /* First column sticky */
    .template-table-box th:first-child,
    .template-table-box td:first-child {
        position: sticky;
        left: 0;
        z-index: 90;
        background: #fff; /* ✅ allow hover to show */
    }

    /* First column header stronger color */
    .template-table-box thead th:first-child {
        background: #36b2f0 !important;
        z-index: 120;
    }

    /* Cells */
    .template-table-box th,
    .template-table-box td {
        white-space: nowrap;
        padding: 6px 8px;
        font-size: 13px;
        text-overflow: ellipsis;
        overflow: hidden;
    }

        /* Action column */
        .template-table-box td.action-col,
        .template-table-box th.action-col {
            width: 1%;
            white-space: nowrap;
            text-align: center !important;
            vertical-align: middle !important;
        }

    /* Compact buttons */
    .template-table-box .btn {
        padding: 3px 6px;
        font-size: 12px;
    }

    /* ✅ Hover effect */
    .template-table-box table.table-hover tbody tr:hover td {
        background-color: #eef9ff !important; /* soft blue */
        color: #000 !important;
        cursor: pointer;
    }

        /* Optional: dark border on hover for clarity */
        .template-table-box table.table-hover tbody tr:hover td:first-child {
            border-left: 1px solid #a8d8ff;
        }
/* =============== HORIZONTAL MAIN MENU  =============== */
.transparent-section {
    background-color: rgba(255, 255, 255, 0.05); /* subtle transparency */
    border: 2px solid white;
    border-radius: 5px;
    width: 150px;
    height: 28px;
    padding: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.2); /* soft white glow */
    backdrop-filter: blur(4px); /* optional: adds glass effect */
    /* Center text inside */
    display: flex;
    align-items: center; /* vertical centering */
    justify-content: center; /* horizontal centering */
    text-align: center; /* ensures text alignment */
}

    /* Hover effect */
    .transparent-section:hover {
        background-color: deepskyblue; /* stronger glow */
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.5); /* brighter shadow */
        transform: scale(1.05); /* slight zoom */
        cursor: pointer; /* pointer cursor */
    }


/* =============== FLOATING CREATE BUTTON =============== */
/* Floating Buttons Stack */
#floatingButtons {
    position: fixed;
    bottom: 30px;
    right: 20px;
    display: flex;
    flex-direction: column-reverse; /* bottom-to-top */
    gap: 15px;
    align-items: flex-end;
    z-index: 1050;
}

    #floatingButtons .float-btn {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        color: white;
        text-decoration: none;
        box-shadow: 0 4px 6px rgba(0,0,0,0.3);
        opacity: 0;
        transform: translateX(100px); /* hidden off-screen */
        transition: all 0.3s;
    }

/* Button Colors */
.float-btn.btn-primary {
    background-color: #0d6efd;
}

    .float-btn.btn-primary:hover {
        background-color: #0a58ca;
    }

.float-btn.btn-info {
    background-color: #0dcaf0;
}

    .float-btn.btn-info:hover {
        background-color: #0aa7c9;
    }

.float-btn.btn-warning {
    background-color: #ffc107;
}

    .float-btn.btn-warning:hover {
        background-color: #e0a800;
    }

.float-btn:hover {
    transform: scale(1.1);
}