html {
    font-size: 14px;
}

@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;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.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;
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo-image {
    width: 660px;
    height: auto;
    margin-top: 10px;
    margin-bottom: 15px;
}


.navbar {
    background: linear-gradient(90deg, #1e3c72, #2a5298) !important;
}

.navbar-brand {
    color: white !important;
    font-weight: 600;
    font-size: 1.3rem;
}

.nav-link {
    color: rgba(255,255,255,0.85) !important;
    border-radius: 10px;
    padding: 8px 14px !important;
    margin-right: 6px;
    transition: all 0.25s ease;
    font-weight: 500;
}

    .nav-link:hover {
        background-color: rgba(255,255,255,0.15);
        color: white !important;
        transform: translateY(-2px);
    }

    .nav-link i {
        margin-right: 6px;
        font-size: 1rem;
    }

.navbar .active {
    background-color: rgba(255,255,255,0.2);
    color: white !important;
}

.navbar-toggler {
    background-color: rgba(255,255,255,0.2);
    border: none;
}

.login-link {
    background-color: #ffb703;
    color: #1e1e1e !important;
    font-weight: 600;
    border-radius: 10px;
    padding: 8px 16px !important;
    transition: all 0.25s ease;
}

    .login-link:hover {
        background-color: #ffd166;
        color: black !important;
        transform: translateY(-2px);
    }

.product-thumb {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.image-drop-zone {
    border: 2px dashed #7aa7ff;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    background-color: #f8fbff;
    transition: all 0.25s ease;
}

    .image-drop-zone:hover {
        background-color: #eef5ff;
        border-color: #2a5298;
    }

    .image-drop-zone.dragover {
        background-color: #e8f1ff;
        border-color: #1e3c72;
    }

.product-preview {
    max-width: 100%;
    max-height: 160px;
    margin: 0 auto;
    border-radius: 12px;
    object-fit: contain;
}

.table td,
.table th {
    text-align: left;
    vertical-align: middle;
}

body {
    padding-top: 70px;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
}

.navbar-brand {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.navbar {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

.navbar-brand {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex;
    align-items: center;
}

    .navbar-brand img {
        height: 42px;
        margin-top: -6px;
    }

.logo-wrapper {
    margin-top: -20px;
    margin-bottom: 10px;
}

.logo-image {
    max-height: 350px;
}

/* =========================================================
   MOBILE / TABLET RESPONSIVE
========================================================= */

@media (max-width: 991px) {

    body {
        padding-top: 65px;
    }

    .logo-image {
        width: 90%;
        max-height: 220px;
    }

    .logo-wrapper {
        margin-top: -10px;
        margin-bottom: 5px;
    }

    .navbar-nav {
        padding-top: 10px;
    }

    .nav-link {
        margin-right: 0;
        margin-bottom: 6px;
        border-radius: 8px;
    }

    .login-link {
        display: inline-block;
        margin-top: 8px;
    }

    .table-responsive {
        border-radius: 12px;
    }

    .card {
        border-radius: 18px !important;
    }

    .btn {
        width: 100%;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 12px;
        align-items: stretch !important;
    }
}


/* =========================================================
   SMALL PHONE
========================================================= */

@media (max-width: 576px) {

    html {
        font-size: 14px;
    }

    body {
        padding-top: 60px;
    }

    .logo-image {
        width: 95%;
        max-height: 180px;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .navbar-toggler {
        padding: 4px 8px;
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 10px !important;
    }

    h1, .h1 {
        font-size: 1.8rem;
    }

    h2, .h2 {
        font-size: 1.5rem;
    }

    h3, .h3 {
        font-size: 1.3rem;
    }

    .table {
        font-size: 0.9rem;
    }

    .product-thumb {
        width: 45px;
        height: 45px;
    }

    .image-drop-zone {
        padding: 15px;
    }

    .product-preview {
        max-height: 120px;
    }

    .btn-lg {
        font-size: 1rem;
        padding: 10px;
    }

    .card-body {
        padding: 1rem !important;
    }

    .container,
    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }
}
