/* =========================================================
   AMAN INVENTORY
   GLOBAL APPLICATION STYLES
   ========================================================= */


/* =========================================================
   ROOT / DOCUMENT
   ========================================================= */

html {
    position: relative;
    min-height: 100%;
    font-size: 14px;
}

body {
    min-height: 100vh;
    margin: 0;
    margin-bottom: 60px;
    background-color: #f6f8fb;
    color: #212529;
}


/* =========================================================
   DESKTOP FONT SIZE
   ========================================================= */

@media (min-width: 768px) {

    html {
        font-size: 16px;
    }
}


/* =========================================================
   ACCESSIBILITY / FOCUS
   ========================================================= */

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #ffffff, 0 0 0 0.25rem rgba(13, 110, 253, 0.30);
}


/* =========================================================
   FORM PLACEHOLDERS
   ========================================================= */

.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;
}


/* =========================================================
   GENERAL CARDS
   ========================================================= */

.card {
    border-radius: 12px;
}

    .card.shadow-sm {
        box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06) !important;
    }


/* =========================================================
   GENERAL FORM CONTROLS
   ========================================================= */

.form-control,
.form-select {
    border-radius: 8px;
    border-color: #d7dee8;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #86b7fe;
    }


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    border-radius: 8px;
    font-weight: 500;
}


/* =========================================================
   TABLES
   ========================================================= */

.table {
    vertical-align: middle;
}

    .table > :not(caption) > * > * {
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }

    .table thead th {
        white-space: nowrap;
        font-size: 0.875rem;
        font-weight: 700;
        color: #475569;
    }


/* =========================================================
   DASHBOARD
   ========================================================= */

/*
 * Fixed dashboard icon container.
 *
 * Keeps all dashboard summary cards visually aligned on
 * desktop, iPad and smaller tablets.
 */

.dashboard-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}


/* =========================================================
   LOGIN PAGE
   ========================================================= */

.login-body {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient( 135deg, #f8fafc 0%, #eef3f8 50%, #f8fafc 100% );
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
}


/* =========================================================
   LOGIN PAGE WRAPPER
   ========================================================= */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}


/* =========================================================
   LOGIN CARD
   ========================================================= */

.login-card {
    width: 100%;
    max-width: 430px;
    padding: 38px;
    background-color: #ffffff;
    border: 1px solid #e7ebf0;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}


/* =========================================================
   LOGIN BRAND
   ========================================================= */

.login-brand {
    text-align: center;
    margin-bottom: 30px;
}


/* =========================================================
   LOGIN BRAND MARK
   ========================================================= */

.login-brand-mark {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    border-radius: 16px;
    background-color: #0d6efd;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.20);
}


/* =========================================================
   LOGIN SYSTEM NAME
   ========================================================= */

.login-system-name {
    margin: 0 0 5px 0;
    color: #172033;
    font-size: 29px;
    font-weight: 750;
    line-height: 1.2;
}


/* =========================================================
   LOGIN DESCRIPTION
   ========================================================= */

.login-system-description {
    color: #6c757d;
    font-size: 14px;
    font-weight: 400;
}


/* =========================================================
   LOGIN FORM
   ========================================================= */

.login-form {
    width: 100%;
}


/* =========================================================
   LOGIN LABELS
   ========================================================= */

.login-label {
    margin-bottom: 7px;
    color: #334155;
    font-size: 14px;
    font-weight: 650;
}


/* =========================================================
   LOGIN CONTROLS
   ========================================================= */

.login-control {
    min-height: 50px;
    padding-left: 14px;
    padding-right: 14px;
    border: 1px solid #d7dee8;
    border-radius: 10px;
    background-color: #ffffff;
    font-size: 16px;
}

    .login-control:hover {
        border-color: #b9c4d2;
    }

    .login-control:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
    }


/* =========================================================
   FIELD VALIDATION
   ========================================================= */

.login-field-validation {
    display: block;
    min-height: 18px;
    margin-top: 5px;
    font-size: 12px;
}


/* =========================================================
   VALIDATION SUMMARY
   ========================================================= */

.login-validation-summary {
    margin-bottom: 18px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13px;
}

    .login-validation-summary.validation-summary-valid {
        display: none;
    }

    .login-validation-summary ul {
        margin-bottom: 0;
        padding-left: 18px;
    }


/* =========================================================
   REMEMBER ME
   ========================================================= */

.login-remember {
    min-height: 24px;
    display: flex;
    align-items: center;
    margin-top: 4px;
    margin-bottom: 24px;
}

.login-check-input {
    width: 19px;
    height: 19px;
    margin-top: 0;
    cursor: pointer;
}

.login-check-label {
    margin-left: 9px;
    color: #475569;
    font-size: 14px;
    cursor: pointer;
}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.login-submit {
    width: 100%;
    min-height: 50px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(13, 110, 253, 0.16);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

    .login-submit:hover {
        transform: translateY(-1px);
        box-shadow: 0 9px 18px rgba(13, 110, 253, 0.20);
    }

    .login-submit:active {
        transform: translateY(0);
    }


/* =========================================================
   LOGIN FOOTER
   ========================================================= */

.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 27px;
    color: #94a3b8;
    font-size: 11px;
}

.login-footer-separator {
    color: #cbd5e1;
}


/* =========================================================
   TABLET
   iPad / 7-inch to 13-inch tablets
   ========================================================= */

@media (max-width: 1199.98px) {

    .login-card {
        max-width: 420px;
    }

    .table-responsive {
        border-radius: 10px;
    }
}


/* =========================================================
   SMALL TABLETS
   ========================================================= */

@media (max-width: 767.98px) {

    body {
        margin-bottom: 40px;
    }

    .login-page {
        padding: 18px;
    }

    .login-card {
        max-width: 400px;
        padding: 32px 28px;
    }

    .login-system-name {
        font-size: 27px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    .login-page {
        align-items: center;
        padding: 12px;
    }

    .login-card {
        max-width: 100%;
        padding: 28px 20px;
        border-radius: 15px;
    }

    .login-brand {
        margin-bottom: 26px;
    }

    .login-brand-mark {
        width: 54px;
        height: 54px;
        margin-bottom: 14px;
        border-radius: 14px;
    }

    .login-system-name {
        font-size: 25px;
    }

    .login-control,
    .login-submit {
        min-height: 48px;
    }

    .login-footer {
        margin-top: 23px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 360px) {

    .login-card {
        padding-left: 16px;
        padding-right: 16px;
    }

    .login-system-name {
        font-size: 23px;
    }
}

/* =========================================================
   AMAN INVENTORY
   PREMIUM APPLICATION SHELL
   ========================================================= */


/* =========================================================
   APPLICATION BODY
   ========================================================= */

.app-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    background: radial-gradient( circle at top left, rgba(13, 110, 253, 0.055), transparent 25% ), radial-gradient( circle at top right, rgba(111, 66, 193, 0.045), transparent 25% ), #f6f8fc;
    color: #1e293b;
}


/* =========================================================
   HEADER
   ========================================================= */

.app-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(226, 232, 240, 0.90);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.055);
    backdrop-filter: blur(12px);
}


    /* Premium accent line */

    .app-header::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient( 90deg, #0d6efd 0%, #6f42c1 34%, #20c997 67%, #0dcaf0 100% );
    }


/* =========================================================
   NAVBAR
   ========================================================= */

.app-navbar {
    min-height: 72px;
    padding-top: 0;
    padding-bottom: 0;
    background-color: transparent;
}


.app-navbar-container {
    min-height: 72px;
    padding-left: 24px;
    padding-right: 24px;
}


/* =========================================================
   BRAND
   ========================================================= */

.app-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 28px;
    padding-top: 9px;
    padding-bottom: 9px;
    text-decoration: none;
}


/* Premium gradient logo */

.app-brand-mark {
    width: 46px;
    height: 46px;
    min-width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    border-radius: 15px;
    background: linear-gradient( 135deg, #0d6efd, #6f42c1 55%, #20c997 );
    box-shadow: 0 8px 22px rgba(13, 110, 253, 0.22);
}


.app-brand-mark-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient( 145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03) );
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
}


.app-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}


.app-brand-title {
    color: #172033;
    font-size: 17px;
    font-weight: 760;
    white-space: nowrap;
}


.app-brand-subtitle {
    margin-top: 5px;
    color: #8290a5;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.015em;
    white-space: nowrap;
}


/* =========================================================
   MAIN NAVIGATION
   ========================================================= */

.app-main-nav {
    align-items: center;
    gap: 5px;
}


    .app-main-nav .nav-link {
        position: relative;
        display: flex;
        align-items: center;
        min-height: 43px;
        padding: 7px 11px;
        border-radius: 11px;
        color: #526077;
        font-size: 13px;
        font-weight: 620;
        white-space: nowrap;
        transition: color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
    }


        .app-main-nav .nav-link:hover {
            color: #0d6efd;
            background: #f3f7ff;
            box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.07);
            transform: translateY(-1px);
        }


        .app-main-nav .nav-link.active {
            color: #0b5ed7;
            background: linear-gradient( 135deg, #eef5ff, #f4f1ff );
            box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.10), 0 4px 10px rgba(13, 110, 253, 0.06);
        }


            /* Remove old underline */

            .app-main-nav .nav-link.active::after {
                display: none;
            }


/* =========================================================
   NAV ITEM CONTENT
   ========================================================= */

.app-nav-content {
    display: flex;
    align-items: center;
    gap: 7px;
}


/* =========================================================
   COLORFUL NAV ICONS
   ========================================================= */

/* =========================================================
   NAVIGATION ICON CONTAINER
   ========================================================= */

.app-nav-icon {
    width: 27px;
    height: 27px;
    min-width: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}


/* =========================================================
   NAVIGATION SVG ICONS
   ========================================================= */

.app-nav-svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Home */

.app-nav-icon-home {
    color: #0d6efd;
    background: #e7f1ff;
}


/* Master Data */

.app-nav-icon-master {
    color: #6f42c1;
    background: #f0e9ff;
}


/* Warehouse */

.app-nav-icon-stock {
    color: #0f8f73;
    background: #e3f8f2;
}


/* Inventory Count */

.app-nav-icon-count {
    color: #d97706;
    background: #fff3dc;
}


/* Reports */

.app-nav-icon-reports {
    color: #0b86aa;
    background: #e5f7fc;
}


/* Administration */

.app-nav-icon-admin {
    color: #c2415d;
    background: #fdebf0;
}


/* =========================================================
   DROPDOWN MENU
   ========================================================= */

.app-dropdown-menu {
    min-width: 285px;
    margin-top: 8px;
    padding: 9px;
    border: 1px solid #e7ebf2;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.985);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.13);
}


.app-dropdown-menu-wide {
    min-width: 325px;
}


/* Dropdown heading */

.app-dropdown-heading {
    padding: 8px 11px 6px 11px;
    color: #98a2b3;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}


/* Dropdown item */

.app-dropdown-menu .dropdown-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 3px;
    padding: 10px 12px;
    border-radius: 10px;
    white-space: normal;
    transition: background-color 0.14s ease, color 0.14s ease, transform 0.14s ease;
}


    .app-dropdown-menu .dropdown-item:hover {
        background: linear-gradient( 135deg, #f4f8ff, #f8f6ff );
        transform: translateX(2px);
    }


    .app-dropdown-menu .dropdown-item.active {
        color: #0d6efd;
        background: linear-gradient( 135deg, #eaf3ff, #f3efff );
    }


.app-dropdown-item-title {
    color: #253147;
    font-size: 13px;
    font-weight: 680;
}


.app-dropdown-menu .dropdown-item.active
.app-dropdown-item-title {
    color: #0d6efd;
}


.app-dropdown-item-description {
    color: #8a96a8;
    font-size: 10px;
    line-height: 1.35;
}


.app-dropdown-menu .dropdown-divider {
    margin: 7px 5px;
    border-color: #edf0f5;
}


/* =========================================================
   USER AREA
   ========================================================= */

.app-user-menu {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-left: 15px;
    padding: 5px 6px 5px 8px;
    border: 1px solid #e8edf3;
    border-radius: 13px;
    background: #f9fbfd;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.025);
}


/* User avatar */

.app-user-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient( 135deg, #6f42c1, #0d6efd );
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 5px 12px rgba(111, 66, 193, 0.18);
}


.app-user-details {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.12;
}


.app-user-label {
    color: #9aa5b5;
    font-size: 8.5px;
    font-weight: 550;
    white-space: nowrap;
}


.app-user-name {
    max-width: 125px;
    overflow: hidden;
    margin-top: 3px;
    color: #334155;
    font-size: 11.5px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.app-logout-form {
    margin: 0;
}


/* Premium logout button */

.app-logout-button {
    min-height: 32px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border: 1px solid #fee2e2;
    border-radius: 8px;
    background: #fff5f5;
    color: #dc3545;
    font-size: 10px;
    font-weight: 700;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}


    .app-logout-button:hover {
        border-color: #dc3545;
        background: #dc3545;
        color: #ffffff;
        transform: translateY(-1px);
    }


/* =========================================================
   LOGOUT ICON
   ========================================================= */

.app-logout-icon {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.app-logout-svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   NAVBAR TOGGLER
   ========================================================= */

.app-navbar-toggler {
    padding: 7px 10px;
    border: 1px solid #dfe6ee;
    border-radius: 11px;
    background: #f8fafc;
}


    .app-navbar-toggler:hover {
        background: #f1f5f9;
    }


    .app-navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.11);
    }


/* =========================================================
   PAGE CONTENT
   ========================================================= */

.app-content {
    flex: 1;
    padding-top: 24px;
    padding-left: 26px;
    padding-right: 26px;
}


/* =========================================================
   GENERAL PAGE CARD PREMIUM POLISH
   ========================================================= */

.app-body .card {
    border: 1px solid #e8edf4;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.045);
}


/* =========================================================
   BUTTON POLISH
   ========================================================= */

.app-body .btn-primary {
    border-color: #0d6efd;
    background: linear-gradient( 135deg, #0d6efd, #3b82f6 );
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.14);
}


.app-body .btn-success {
    border-color: #198754;
    background: linear-gradient( 135deg, #198754, #20a86b );
}


/* =========================================================
   TABLE POLISH
   ========================================================= */

.app-body .table {
    margin-bottom: 0;
}


    .app-body .table thead th {
        background: #f8fafc;
        color: #526077;
        border-bottom: 1px solid #e5eaf0;
        font-size: 0.81rem;
    }


    .app-body .table tbody tr {
        transition: background-color 0.12s ease;
    }


        .app-body .table tbody tr:hover {
            background: #fafcff;
        }


/* =========================================================
   FOOTER
   ========================================================= */

.app-footer {
    margin-top: auto;
    border-top: 1px solid #e6ebf1;
    background: rgba(255, 255, 255, 0.92);
    color: #8d98a9;
    font-size: 10.5px;
}


.app-footer-content {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 26px;
    padding-right: 26px;
}


/* =========================================================
   TABLET / IPAD
   ========================================================= */

@media (max-width: 1199.98px) {

    .app-navbar {
        min-height: 66px;
        padding-top: 7px;
        padding-bottom: 7px;
    }


    .app-navbar-container {
        min-height: 52px;
        padding-left: 18px;
        padding-right: 18px;
    }


    .app-brand {
        margin-right: 0;
    }


    .app-brand-mark {
        width: 42px;
        height: 42px;
        min-width: 42px;
        border-radius: 13px;
    }


    #mainNavbar {
        margin-top: 10px;
        padding: 13px;
        border: 1px solid #e8edf4;
        border-radius: 14px;
        background: #ffffff;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    }


    .app-main-nav {
        align-items: stretch;
        gap: 4px;
    }


        .app-main-nav .nav-link {
            min-height: 45px;
            padding: 8px 10px;
            border-radius: 10px;
            font-size: 13px;
        }


    .app-dropdown-menu,
    .app-dropdown-menu-wide {
        width: 100%;
        min-width: 0;
        margin-top: 4px;
        margin-bottom: 7px;
        padding: 6px;
        border: 1px solid #edf0f5;
        border-radius: 11px;
        box-shadow: none;
    }


        .app-dropdown-menu .dropdown-item {
            padding: 10px 12px;
        }


    .app-user-menu {
        width: 100%;
        justify-content: flex-start;
        margin-top: 11px;
        margin-left: 0;
        padding: 9px;
        border-radius: 11px;
    }


    .app-user-details {
        flex: 1;
    }


    .app-user-name {
        max-width: none;
        font-size: 13px;
    }


    .app-logout-button {
        min-height: 38px;
        padding-left: 14px;
        padding-right: 14px;
    }


    .app-content {
        padding-top: 18px;
        padding-left: 18px;
        padding-right: 18px;
    }
}


/* =========================================================
   PHONE / SMALL TABLET
   ========================================================= */

@media (max-width: 575.98px) {

    .app-navbar-container {
        padding-left: 12px;
        padding-right: 12px;
    }


    .app-brand-mark {
        width: 39px;
        height: 39px;
        min-width: 39px;
    }


    .app-brand-title {
        font-size: 15px;
    }


    .app-brand-subtitle {
        display: none;
    }


    #mainNavbar {
        padding: 10px;
    }


    .app-nav-icon {
        width: 27px;
        height: 27px;
        min-width: 27px;
    }


    .app-content {
        padding-top: 14px;
        padding-left: 12px;
        padding-right: 12px;
    }


    .app-footer-content {
        min-height: 44px;
        padding-left: 12px;
        padding-right: 12px;
    }


    .app-footer-system {
        display: none;
    }
}