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: 0;
    background: linear-gradient(180deg, #0b1624 0%, #102033 100%);
    color: #e8eef7;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.app-nav {
    background: #102033;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

    .app-nav .nav-link,
    .app-nav .navbar-brand {
        color: #f4f7fb !important;
    }

        .app-nav .nav-link:hover {
            color: #ffffff !important;
        }

.app-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    background: rgba(21, 36, 56, 0.95);
}

.app-shell {
    max-width: 1120px;
    min-height: calc(100vh - 170px);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.page-title {
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #ffffff;
}

.page-subtitle {
    margin: 0.25rem 0 0;
    color: #b8c6d6;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 1rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
}

.metric-label {
    font-size: 0.8rem;
    color: #9db0c3;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.metric-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.product-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    }

        .product-card:hover .product-photo,
        .details-product-photo:hover {
            transform: scale(1.06);
        }

.product-image {
    background: #16273a;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .product-photo,
    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.25s ease;
    }

.product-placeholder,
.details-product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    color: #dbe8f5;
    font-weight: 700;
    background: linear-gradient(180deg, #1a3048 0%, #223d5c 100%);
}

.details-product-photo {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.details-product-placeholder {
    width: 180px;
    height: 120px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.product-body {
    padding: 12px 14px 16px;
}

    .product-body h5 {
        margin: 0 0 6px;
        font-size: 1rem;
        color: #ffffff;
        font-weight: 700;
    }

    .product-body p {
        margin: 0 0 12px;
        color: #c2d0df;
        font-size: 0.9rem;
        min-height: 42px;
    }

.product-unit {
    margin-bottom: 0.75rem;
    color: #ffd66b;
    font-size: 0.85rem;
    font-weight: 700;
}

.stock-list,
.recommend-list {
    display: grid;
    gap: 12px;
}

.stock-list {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.stock-item {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

    .stock-item strong,
    .stock-item span {
        display: block;
    }

    .stock-item span {
        margin-top: 0.35rem;
        color: #ffd66b;
        font-weight: 700;
    }

.stock-expiry {
    color: #aabed4 !important;
}

.warning-text {
    color: #ff9f7f !important;
}

.recommend-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.recommend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.9rem;
    border-radius: 12px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

    .recommend-item:hover {
        background: rgba(255, 255, 255, 0.08);
    }

.recommend-photo {
    width: 68px;
    height: 68px;
    border-radius: 10px;
    object-fit: cover;
}

.vendor-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #e8f4ff;
    color: #0b4a8b;
    border: 1px solid #bcd9f5;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
}

.table thead th {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 600;
    color: #ffffff;
}

.table tbody td {
    vertical-align: middle;
    color: #dbe6f2;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: #dbe6f2;
    --bs-table-border-color: rgba(255, 255, 255, 0.08);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.04);
    --bs-table-hover-color: #ffffff;
}

.table-responsive {
    border-radius: 14px;
}

.order-table {
    min-width: 1180px;
}

    .order-table th,
    .order-table td {
        font-size: 0.88rem;
    }

.table-cell-wide {
    min-width: 120px;
    white-space: normal;
}

.table-action-cell {
    min-width: 120px;
    white-space: nowrap;
}

    .table-action-cell form {
        margin: 0;
    }

.panel-section {
    margin-bottom: 1.25rem;
}

.quick-link {
    text-decoration: none;
}

    .quick-link:hover {
        text-decoration: underline;
    }

.landing-hero {
    background: linear-gradient(135deg, #11273d 0%, #1d4266 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.landing-tag {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.landing-title {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 700;
}

.landing-copy {
    max-width: 680px;
    font-size: 1.08rem;
    color: rgba(232, 241, 250, 0.92);
}

.landing-copy-secondary {
    max-width: 650px;
    color: rgba(189, 208, 229, 0.88);
    font-size: 0.98rem;
    font-weight: 600;
}

.landing-highlight {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 1.75rem;
}

.highlight-label {
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
}

.landing-story {
    background: rgba(16, 32, 51, 0.95);
}

.landing-section-label {
    margin-bottom: 0.75rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #80bfff;
    font-weight: 700;
}

.landing-section-title {
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 700;
    color: #f3f7fd;
}

.landing-section-copy {
    color: #b7c8da;
    font-size: 1rem;
    line-height: 1.75;
    font-weight: 600;
}

.landing-glass-panel {
    height: 100%;
    padding: 1.5rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.login-page {
    display: flex;
    justify-content: center;
    padding: 2rem 0 1rem;
}

.login-card {
    width: 100%;
    max-width: 560px;
    padding: 2rem;
}

.login-card-copy h1 {
    font-weight: 700;
    color: #f3f7fd;
}

.login-card-copy .text-muted,
.footer,
.footer a,
.page-subtitle,
.text-muted,
.app-card p,
.app-card label,
.app-card .small,
.card-title,
.card-body,
.table,
.table td,
.table th {
    color: #aabed4 !important;
}

.app-card h1,
.app-card h2,
.app-card h3,
.app-card h4,
.app-card h5,
.app-card h6,
.card-title,
strong,
th {
    color: #ffffff !important;
    font-weight: 700;
}

.logout-link {
    color: #ffd66b !important;
    font-weight: 700;
}

.simple-link {
    color: #8ecbff;
    text-decoration: none;
    font-weight: 600;
}

    .simple-link:hover {
        text-decoration: underline;
    }

.ticket-list {
    display: grid;
    gap: 14px;
}

.ticket-item {
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ticket-reply {
    padding: 0.75rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
}

.tracking-code-box {
    background: #f3c84b;
    color: #1b1b1b;
    border: 1px solid #d7a918;
    font-weight: 700;
}

.tracking-code-text {
    color: #000000 !important;
    font-weight: 700;
}

.tracking-code-box,
.tracking-code-box strong,
.tracking-code-box .small,
.alert-success .tracking-code-text,
.alert-success .tracking-code-text strong,
.alert-success .small {
    color: #000000 !important;
    font-weight: 700;
}

@media (max-width: 991px) {
    .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-hero {
        padding: 2rem;
    }

    .landing-title {
        font-size: 2.35rem;
    }
}

@media (max-width: 575px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .landing-hero {
        padding: 1.5rem;
        border-radius: 18px;
    }

    .landing-title {
        font-size: 1.95rem;
    }

    .landing-section-title {
        font-size: 1.55rem;
    }
}

.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;
}
