/* Site-wide styles for ALPHA/MyWebsite */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&display=swap');

:root {
    --primary: #3B82F6;
    /* light blue */
    --accent: #14B8A6;
    /* tosca/green */
    --muted-bg: #f8fafc;
    /* very light */
    --nav-height: 64px;
}

html, body {
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    background: var(--muted-bg);
    color: #0f172a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Base font size for consistent scaling */
body {
    font-size: 14px;
}

/* Ensure fixed navbar doesn't cover content and make main grow */
main.container {
    flex: 1 0 auto
}

body {
    padding-top: 0;
}

.navbar-white {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary);
}

.navbar-brand:hover {
    color: rgba(59, 130, 246, .9);
}

.nav-link {
    color: #0f172a;
    transition: color .18s ease, transform .18s ease;
}

.nav-link .lucide {
    margin-right: 6px;
    vertical-align: middle;
}

.nav-link:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

.navbar-toggler {
    border: 0;
}

.navbar-toggler-icon {
    background-image: none;
}

.navbar-toggler .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #111;
    margin: 4px 0;
    transition: all .2s ease
}

/* Add spacing between navbar items */
.navbar-nav .nav-item {
    margin-left: 0.6rem;
}

/* Hero */
.hero {
    background-image: linear-gradient(rgba(11, 22, 39, 0.35), rgba(11, 22, 39, 0.35)), url("https://picsum.photos/1600/900?blur=2");
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    border-radius: 8px;
}

.hero h1 {
    font-weight: 700;
    font-size: 2rem
}

/* Headings use Montserrat for a stronger look */
h1, h2, h3, h4, h5, h6, .card-title {
    font-family: 'Montserrat', 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

/* Adjust heading sizes to match base font 14px */
h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.4rem;
}

h3 {
    font-size: 1.15rem;
}

h4 {
    font-size: 1rem;
}

.card-title {
    font-size: 1.05rem;
}

.hero p {
    opacity: .9
}

.card {
    border-radius: 10px
}

.list-group-item {
    border-radius: 6px
}

/* Table header: dark background with light text */
table thead th,
table.dataTable thead th,
.table thead th {
    background: #0b1220 !important;
    color: #e6eef8 !important;
    vertical-align: middle;
}

/* Ensure dataTables header inner wrapper also uses dark background */
.dataTables_wrapper .dataTables_scrollHeadInner table thead th {
    background: #0b1220 !important;
    color: #e6eef8 !important;
}

/* Select2 appearance: match Bootstrap form-control height */
.select2-container--default .select2-selection--single {
    height: 38px;
    padding: 3px 0px;
    /* padding: 0.375rem 0.75rem !important; */
    border-radius: 0.375rem !important;
    border: 1px solid #ced4da !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: calc(1.5em + 0.75rem) !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: calc(1.5em + 0.75rem) !important;
}

/* Jabatan list card tweaks */
.card .table {
    margin-bottom: 0;
}

.badge.bg-secondary {
    background: #6c757d;
}

/* Slightly stronger row hover */
table tbody tr:hover {
    background: rgba(11, 18, 32, 0.03);
}

/* Improve table spacing and readability */
table.table, table.dataTable {
    font-size: 0.95rem;
}

table.table th, table.table td, table.dataTable th, table.dataTable td {
    padding: 0.65rem 0.9rem;
    vertical-align: middle;
}

/* Responsive card tweaks for login and small forms */
.standalone-wrapper {
    display: block;
    flex-direction: column;
}


.standalone-wrapper .card {
    border-radius: 12px;
}

.login-logo {
    display: block;
    max-width: 140px;
    margin: 0 auto 12px auto;
}

/* Login card background and lottie container */
.login-card {
    max-width: 920px;
    width: 100%;
    overflow: hidden;
}

.login-left {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(20, 184, 166, 0.95) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.login-left .lottie-wrap {
    width: 220px;
    max-width: 100%;
}

.login-right {
    padding: 24px;
}

/* Make login inputs slightly smaller than global large controls */
.standalone-wrapper .form-control.form-control-lg {
    font-size: 0.95rem;
    padding: 0.45rem 0.75rem;
}

.standalone-wrapper label.form-label {
    font-size: 0.95rem;
}

/* smaller keterangan text inside laporan list */
.laporan-keterangan {
    font-size: 0.88rem;
    line-height: 1.25;
    color: #394351;
}

/* Footer */
footer.site-footer {
    background: #0b1220;
    color: #e6eef8;
    position: relative;
}

footer.site-footer a {
    color: #cfe9ff;
    text-decoration: none
}

footer.site-footer a:hover {
    color: var(--accent)
}

.site-footer .navbar-brand {
    color: #e6eef8;
    font-weight: 700
}

@media (max-width: 576px) {
    body {
        padding-top: 0;
    }

    .hero h1 {
        font-size: 1.4rem
    }
}