/* Bank OZK — professional digital banking theme */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --ink: #172033;
    --ink-muted: #475569;
    --surface: #ffffff;
    --surface-elevated: #f8fafc;
    --surface-subtle: #f1f5f9;
    --border: #e2e8f0;
    --accent: #0f766e;
    --accent-hover: #115e59;
    --accent-soft: #ccfbf1;
    --success: #059669;
    --danger: #b91c1c;
    --radius: 8px;
    --radius-lg: 8px;
    --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    --shadow-hover: 0 12px 40px rgba(15, 23, 42, 0.1);
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    /* Legacy variable aliases for older inline styles */
    --secondary-purple: #0f766e;
    --primary-red: #0f766e;
    --accent-purple: #115e59;
    --accent-teal: #0d9488;
    --dark-gray: var(--ink);
    --light-gray: var(--surface-subtle);
    --white: #fff;
    --primary-blue: #0f766e;
    --secondary-blue: #0d9488;
    --light-blue: var(--accent-soft);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.app-body,
body.bg-light {
    font-family: var(--font);
    color: var(--ink);
    background: var(--surface-elevated) !important;
    margin: 0;
    line-height: 1.6;
    min-height: 100vh;
}

body.home-page {
    font-family: var(--font);
    color: var(--ink);
    background: var(--surface);
    margin: 0;
    line-height: 1.6;
}

/* —— Navbar —— */
.site-navbar {
    background: var(--surface) !important;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.site-navbar .navbar-toggler-icon {
    filter: brightness(0.2);
}

.brand-mark {
    display: inline-block;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--accent) 0%, #b45309 100%);
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.3);
}

.brand-mark--sm {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.brand-text {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0;
    color: var(--ink);
}

.site-navbar .nav-link {
    color: var(--ink-muted) !important;
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.site-navbar .nav-link:hover {
    color: var(--accent) !important;
    background: var(--accent-soft);
}

.btn-accent {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
    font-weight: 600;
}

.btn-accent:hover {
    background: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
    color: #fff !important;
}

.page-content-wrap {
    min-height: 50vh;
}

/* —— App shell: sidebar + main —— */
.layout-page {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.layout-sidebar-col .sidebar-panel {
    top: 1rem;
}

.layout-main-col > .card:last-child {
    margin-bottom: 0;
}

.sidebar-nav ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.25rem;
}

.sidebar-nav li {
    padding: 0.3rem 0;
}

.sidebar-nav li#caption {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-muted);
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.sidebar-nav li#caption:first-child {
    margin-top: 0;
}

.sidebar-nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    padding: 0.2rem 0;
    border-radius: 6px;
}

.sidebar-nav a:hover {
    color: var(--accent);
}

/* Reset legacy floats inside app shell */
.layout-page .customer_nav,
.layout-page .admin_nav {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0.75rem !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* —— Home hero —— */
.hero-section {
    position: relative;
    background:
        linear-gradient(135deg, rgba(12, 30, 38, 0.96) 0%, rgba(18, 52, 64, 0.88) 45%, rgba(28, 78, 92, 0.72) 100%);
    color: #fff;
    min-height: 390px;
    padding: 4.75rem 1.5rem;
    overflow: hidden;
}

.hero-section::before {
    content: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto 0 7%;
    text-align: left;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.88;
    font-weight: 400;
    margin: 0;
}

/* —— Login cards —— */
.login-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1180px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.login-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}

.login-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(3, 105, 161, 0.25);
}

.accent-bar {
    height: 4px;
    background: linear-gradient(90deg, #0369a1 0%, #0d9488 50%, #14b8a6 100%);
}

.login-card-content {
    padding: 1.75rem 1.5rem;
    text-align: center;
}

.login-icon {
    font-size: 2.75rem !important;
    color: var(--accent) !important;
    margin-bottom: 0.75rem;
    display: block;
}

.login-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.5rem;
    letter-spacing: 0;
}

.login-card p {
    color: var(--ink-muted);
    margin: 0;
    font-size: 0.9375rem;
}

/* —— Login form —— */
.login-form-container {
    max-width: 440px;
    margin: 2rem auto 4rem;
    padding: 0 1.5rem;
}

.login-form-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.login-form-content {
    padding: 2rem 1.75rem;
}

.login-form h3 {
    text-align: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 1.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.input-container {
    position: relative;
    margin-bottom: 1.25rem;
}

.input-container label {
    position: absolute;
    top: 50%;
    left: 3rem;
    transform: translateY(-50%);
    color: var(--ink-muted);
    font-size: 0.9375rem;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 5;
}

.input-container.focused label,
.input-container.has-value label {
    transform: translateY(-155%) scale(0.85);
    color: var(--accent);
}

.input-container .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-muted);
    z-index: 10;
    font-size: 22px !important;
}

.input-container input {
    width: 100%;
    padding: 1.1rem 1rem 1.1rem 3rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    background: var(--surface);
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-container input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.input-container input::placeholder {
    opacity: 0;
}

.login-btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.9rem 1.25rem;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.login-btn:hover {
    background: var(--accent-hover);
    color: #fff;
}

/* —— Feature strip —— */
.feature-section {
    background: var(--surface-subtle);
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.feature-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: box-shadow 0.25s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 2.5rem !important;
    color: var(--accent) !important;
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--ink-muted);
    margin: 0;
    font-size: 0.9375rem;
}

/* —— Site footer —— */
.site-footer {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    color: rgba(255, 255, 255, 0.85);
}

.site-footer a.link-light:hover {
    color: #fff !important;
}

.letter-spacing {
    letter-spacing: 0.08em;
}

/* —— Bootstrap card overrides —— */
.card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.card-header {
    background: var(--surface-subtle);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

/* —— Sidebar navs (customer / admin) —— */
.customer_nav,
.admin_nav {
    float: none !important;
    width: 100% !important;
    max-width: 280px;
    height: auto !important;
    min-height: auto !important;
    margin: 0 0 1.5rem 0 !important;
    padding: 1.25rem !important;
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow);
}

.customer_nav ul,
.admin_nav ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 1.25rem !important;
}

.customer_nav li,
.admin_nav li {
    padding: 0.35rem 0 !important;
    list-style: none !important;
}

.customer_nav li#caption,
.admin_nav li#caption {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-muted);
    margin-bottom: 0.5rem !important;
}

.customer_nav a,
.admin_nav a {
    color: var(--ink) !important;
    text-decoration: none !important;
    font-size: 0.9375rem;
    font-weight: 500;
    display: inline-block;
    padding: 0.25rem 0;
    border-radius: 6px;
}

.customer_nav a:hover,
.admin_nav a:hover {
    color: var(--accent) !important;
    font-weight: 600 !important;
}

/* —— Legacy content areas —— */
.content_customer,
.content_addstaff,
.displaystaff_content {
    height: auto !important;
    min-height: 320px;
    width: 100% !important;
    max-width: 100%;
    border: none !important;
    background: transparent !important;
    padding: 0.5rem 0 !important;
}

.content1,
.content2,
.content3,
.content4 {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow);
    padding: 1.25rem !important;
    margin: 0.75rem !important;
}

.customer_top_nav {
    width: 100% !important;
    max-width: 100%;
    float: none !important;
    height: auto !important;
    padding: 0.75rem 1rem !important;
    margin: 0 0 1rem 0 !important;
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
}

.customer_top_nav .text {
    margin-left: 0 !important;
    text-align: center;
    font-weight: 600;
    color: var(--accent) !important;
}

.customer_body {
    width: 100% !important;
    max-width: 100%;
    float: none !important;
}

.heading {
    color: var(--accent) !important;
    font-weight: 600;
}

.addstaff {
    width: 100% !important;
    max-width: 560px;
    margin: 0 auto !important;
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    padding: 1.5rem !important;
}

.addstaff_button,
.btn-primary {
    border-radius: 10px !important;
}

/* Tables in legacy pages */
.content_customer table,
.displaystaff_content table,
.addstaff table {
    border-color: var(--border) !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--surface-subtle);
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

@media (max-width: 991px) {
    .hero-section {
        min-height: 340px;
        padding: 3.5rem 1.25rem;
    }
    .hero-content {
        margin: 0 auto;
        text-align: center;
    }
    .hero-title {
        font-size: 2.25rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .customer_nav,
    .admin_nav {
        max-width: 100%;
    }
}

@media (min-width: 992px) {
    .content_customer {
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
        align-items: flex-start;
    }
    .content_customer > .customer_nav {
        flex: 0 0 260px;
    }
    .content_customer > .customer_top_nav {
        flex: 1 1 calc(100% - 280px);
        min-width: 0;
    }
    .content_customer > .customer_body {
        flex: 1 1 100%;
        width: 100%;
    }
}

.text-primary-emphasis {
    color: var(--accent) !important;
}
