/* Sukeshi Industries branding - colours taken from the lotus logo */
:root {
    --app: #f43560;        /* lotus pink-red (logo text and petals) */
    --app-dark: #d11f4b;
    --app-soft: #fde4ea;
    --gold: #ffe459;       /* star */
    --gold-dark: #e0b400;
    --cream: #f9ecd9;      /* ring */
    --bg: #fff8f1;

    --bs-primary: #f43560;
    --bs-primary-rgb: 244, 53, 96;
    --bs-link-color: #d11f4b;
    --bs-link-color-rgb: 209, 31, 75;
    --bs-link-hover-color: #a8173b;
    --bs-link-hover-color-rgb: 168, 23, 59;
}

body {
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; max-width: 900px; }

/* ---------- Navbar ---------- */
.app-nav {
    background: linear-gradient(90deg, #a8173b, var(--app-dark));   /* deeper, so white menu text stands out */
    border-bottom: 3px solid var(--gold);
}
.app-nav {
    --bs-navbar-color: #ffffff;
    --bs-navbar-hover-color: var(--gold);
    --bs-navbar-active-color: var(--gold);
    --bs-navbar-brand-color: #ffffff;
    --bs-navbar-toggler-border-color: rgba(255, 255, 255, .7);
}
.app-nav .nav-link { font-weight: 600; text-shadow: 0 1px 1px rgba(0, 0, 0, .25); }
.app-nav .dropdown-item { font-weight: 600; color: #333; }
.app-nav .navbar-brand { letter-spacing: .04em; }
.brand-emblem { background: #fff; border-radius: 50%; padding: 2px; }
.app-nav .dropdown-item:active { background: var(--app); }

/* ---------- Buttons ---------- */
.btn-app, .btn-primary {
    background: var(--app);
    border-color: var(--app);
    color: #fff;
}
.btn-app:hover, .btn-app:focus, .btn-app:active,
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background: var(--app-dark) !important;
    border-color: var(--app-dark) !important;
    color: #fff !important;
}
.btn-outline-primary {
    --bs-btn-color: var(--app-dark);
    --bs-btn-border-color: var(--app);
    --bs-btn-hover-bg: var(--app);
    --bs-btn-hover-border-color: var(--app);
    --bs-btn-active-bg: var(--app-dark);
    --bs-btn-active-border-color: var(--app-dark);
}

.text-primary { color: var(--app) !important; }
.text-bg-primary { background-color: var(--app) !important; color: #fff !important; }
.text-bg-warning { background-color: var(--gold) !important; color: #5c4a00 !important; }

.form-control:focus, .form-select:focus {
    border-color: var(--app);
    box-shadow: 0 0 0 .2rem rgba(244, 53, 96, .2);
}
.form-check-input:checked { background-color: var(--app); border-color: var(--app); }

/* ---------- Login ---------- */
.login-box { max-width: 400px; margin-top: 3vh; }
.login-logo { width: 190px; max-width: 60%; height: auto; }
.brand-text { color: var(--app); letter-spacing: .08em; }

/* ---------- Cards ---------- */
.card { border: 0; box-shadow: 0 1px 3px rgba(120, 30, 50, .10); border-radius: .75rem; overflow: hidden; }
.card-header { background: var(--cream); border-bottom: 0; }
.table-light { --bs-table-bg: var(--cream); }

.req-card { border-left: 4px solid var(--app); }
.req-card:active { background: var(--app-soft); }

.stat {
    background: #fff;
    border-radius: .75rem;
    border-top: 3px solid var(--gold);
    padding: .75rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(120, 30, 50, .10);
    height: 100%;
}
.stat .num { font-size: 1.75rem; font-weight: 700; line-height: 1.1; }
.stat .lbl { font-size: .8rem; color: #6c757d; }

/* ---------- Home menu tiles ---------- */
.tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    height: 100%;
    min-height: 104px;
    padding: .9rem .5rem;
    background: #fff;
    border-radius: .9rem;
    border-bottom: 3px solid var(--app);
    box-shadow: 0 1px 3px rgba(120, 30, 50, .12);
    color: #333;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.2;
}
.tile i { font-size: 1.9rem; color: var(--app); }
.tile:hover, .tile:active { background: var(--app-soft); color: var(--app-dark); }
.tile.tile-main { background: var(--app); color: #fff; border-bottom-color: var(--gold); }
.tile.tile-main i { color: var(--gold); }
.tile.tile-main:hover, .tile.tile-main:active { background: var(--app-dark); color: #fff; }

.qty-input { width: 96px; text-align: center; font-size: 1.1rem; font-weight: 600; }

.pin-input { letter-spacing: .5em; text-align: center; font-weight: 700; }

/* ---------- Process timeline ---------- */
.timeline { list-style: none; margin: 0; padding-left: 1rem; border-left: 2px solid var(--app); }
.timeline li { position: relative; padding: 0 0 .9rem .75rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
    content: "";
    position: absolute;
    left: -1.45rem;
    top: .3rem;
    width: .75rem;
    height: .75rem;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid var(--app);
}

footer a { color: var(--app-dark); text-decoration: none; }
footer strong { color: var(--app-dark); }
