/* =========================================================
   NeptuneWare - Backend Custom CSS
   File: public/asset/css/back_end_custom.css
   ========================================================= */
/* =========================================================
   BACKEND BASE / ADMINKIT POLISH
========================================================= */

body {
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
}

.wrapper,
.main,
.content {
    background: #f8fafc;
}

.content {
    padding: 2.25rem 2.25rem 1.5rem;
}

.admin-topbar {
    min-height: 72px;
    border-bottom: 1px solid rgba(226, 232, 240, .9);
    box-shadow: 0 10px 30px -28px rgba(15, 23, 42, .22);
}

.admin-brand {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.admin-page-header h1 {
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: .25rem;
}

.admin-page-header p {
    color: #64748b;
    margin-bottom: 0;
}

.card {
    border: 0;
    box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.16);
    border-radius: 18px;
}

.btn {
    border-radius: 12px;
    font-weight: 600;
}

.form-control,
.form-select,
textarea {
    border-radius: 12px;
}

.table> :not(caption)>*>* {
    padding-top: .9rem;
    padding-bottom: .9rem;
}

/* =========================================================
   BACKEND SIDEBAR - ADMINKIT FRIENDLY
========================================================= */

.sidebar,
.sidebar-content {
    background: #223142 !important;
}

.sidebar-brand {
    min-height: 72px;
    padding: 1.15rem 1.5rem;
    color: #fff !important;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.sidebar-brand:hover {
    color: #fff !important;
    text-decoration: none;
}

.sidebar-nav {
    padding: 0 !important;
    margin: 0 !important;
}

.sidebar-header {
    color: #93a4b8 !important;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding: 1.25rem 1.5rem .45rem !important;
}

/* First header closer to brand */
.sidebar-brand+.sidebar-nav .sidebar-header:first-child {
    padding-top: .9rem !important;
}

.sidebar-item {
    margin: 0 !important;
}

.sidebar-link,
a.sidebar-link {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .72rem 1.5rem !important;
    color: rgba(255, 255, 255, .72) !important;
    background: transparent;
    font-size: .96rem;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: .18s ease;
}

.sidebar-link i,
.sidebar-link svg,
.sidebar-link .feather {
    width: 19px;
    height: 19px;
    color: rgba(255, 255, 255, .64) !important;
    stroke-width: 2;
    flex-shrink: 0;
}

.sidebar-link:hover,
.sidebar-link:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, .06);
    text-decoration: none;
}

.sidebar-link:hover i,
.sidebar-link:hover svg,
.sidebar-link:hover .feather,
.sidebar-link:focus i,
.sidebar-link:focus svg,
.sidebar-link:focus .feather {
    color: #fff !important;
}

.sidebar-item.active>.sidebar-link,
.sidebar-link.active {
    color: #fff !important;
    background: rgba(37, 99, 235, .18) !important;
    border-left-color: #2563eb;
}

.sidebar-item.active>.sidebar-link i,
.sidebar-item.active>.sidebar-link svg,
.sidebar-item.active>.sidebar-link .feather,
.sidebar-link.active i,
.sidebar-link.active svg,
.sidebar-link.active .feather {
    color: #fff !important;
}

/* Controlled group spacing using AdminKit headers */
.sidebar-item+.sidebar-header {
    padding-top: 2rem !important;
}

.sidebar [data-feather] {
    width: 19px;
    height: 19px;
}

/* ---------------------------------------------------------
   Select2 styling (Bootstrap/AdminKit look + remove dark border)
--------------------------------------------------------- */

/* Force select2 full width */
.select2-container {
    width: 100% !important;
}

/* Match Bootstrap control height + look */
.select2-container--default .select2-selection--single {
    min-height: calc(2.25rem + 2px);
    height: calc(2.25rem + 2px);
    display: flex;
    align-items: center;

    border: 1px solid #ced4da !important;
    border-radius: .375rem !important;
    box-shadow: none !important;
    background: #fff !important;
}

/* Text rendering in the selection */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5 !important;
    padding-left: .75rem !important;
    padding-right: 2rem !important;
    color: inherit !important;
}

/* Dropdown arrow alignment */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: .5rem !important;
}

/* Selection focus ring like Bootstrap */
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25) !important;
}

/* Dropdown panel */
.select2-container--default .select2-dropdown {
    border: 1px solid #ced4da !important;
    border-radius: .375rem !important;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .08) !important;
    overflow: hidden;
    background: #fff !important;
}

/* Dropdown search wrapper */
.select2-container--default .select2-search--dropdown {
    padding: .5rem !important;
    background: #fff !important;
}

/* Dropdown search input (remove the "dark" inner border/shadow) */
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #ced4da !important;
    border-radius: .375rem !important;
    background: #fff !important;

    box-shadow: none !important;
    outline: none !important;
}

/* Search input focus like Bootstrap */
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25) !important;
}

/* ---------------------------------------------------------
   Dropdown menus in tables (avoid clipping behind footer/pagination)
--------------------------------------------------------- */

.nw-table-scroll {
    overflow-x: auto !important;
    overflow-y: visible !important;
    position: relative;
}

.nw-table-responsive {
    overflow: visible !important;
}

.nw-table-scroll .dropdown-menu {
    z-index: 99999 !important;
}

.card,
.card-body,
.card-footer {
    overflow: visible !important;
}

.wrapper,
.main,
.content {
    transform: none !important;
    overflow: visible !important;
}

.card-footer {
    position: relative;
    z-index: 0;
}

/* =========================================================
   AUTH / GUEST PAGES
   Used by: resources/views/layouts/guest.blade.php
========================================================= */

:root {
    --auth-primary: #2563eb;
    --auth-primary-dark: #1d4ed8;
    --auth-dark: #0f172a;
    --auth-muted: #64748b;
    --auth-border: #e2e8f0;
    --auth-bg: #f8fafc;
}

html,
body {
    min-height: 100%;
}

body.auth-page {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .10), transparent 28%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, .08), transparent 26%),
        linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
    color: var(--auth-dark);
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem 1.25rem;
}

.auth-wrap {
    width: 100%;
    max-width: 460px;
    margin: auto;
}

.auth-brand {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-logo {
    max-height: 76px;
    width: auto;
    margin-bottom: .75rem;
}

.auth-brand-name {
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: -.04em;
    color: var(--auth-dark);
    margin-bottom: .25rem;
}

.auth-brand-subtitle {
    color: var(--auth-muted);
    font-size: .98rem;
    line-height: 1.6;
}

.auth-card {
    border: 1px solid rgba(226, 232, 240, .85);
    border-radius: 28px;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 30px 80px -45px rgba(15, 23, 42, .35);
    padding: 2rem;
}

.auth-title {
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: -.035em;
    color: var(--auth-dark);
    margin-bottom: .35rem;
}

.auth-subtitle {
    color: var(--auth-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.auth-card .form-label {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: .5rem;
}

.auth-card .form-control {
    min-height: 50px;
    border-radius: 14px;
    border: 1px solid #dbe3ee;
    background: #fff;
    color: var(--auth-dark);
    box-shadow: none;
    padding: .75rem .95rem;
}

.auth-card .form-control:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .10);
}

.auth-card .form-check {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.auth-card .form-check-input {
    width: 1rem;
    height: 1rem;
    margin-top: 0;
    border-color: #cbd5e1;
    box-shadow: none;
}

.auth-card .form-check-input:checked {
    background-color: var(--auth-primary);
    border-color: var(--auth-primary);
}

.auth-card .form-check-label {
    color: #334155;
}

.btn-auth {
    min-height: 50px;
    border-radius: 999px;
    border: 1px solid var(--auth-primary);
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-dark) 100%);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 18px 36px -18px rgba(37, 99, 235, .55);
}

.btn-auth:hover,
.btn-auth:focus {
    color: #fff;
    transform: translateY(-1px);
    border-color: var(--auth-primary-dark);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.auth-footer-link {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 700;
}

.auth-footer-link:hover {
    color: var(--auth-primary-dark);
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    color: var(--auth-muted);
    font-size: .9rem;
    padding-top: 1.25rem;
}

.auth-card .alert {
    border-radius: 16px;
    border-width: 1px;
    font-size: .94rem;
}

.auth-card .alert-danger {
    color: #7f1d1d;
    background: #fef2f2;
    border-color: #fecaca;
}

.auth-card .alert-success {
    color: #14532d;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

@media (max-width: 575.98px) {
    .auth-shell {
        padding-top: 2rem;
    }

    .auth-card {
        padding: 1.5rem;
        border-radius: 22px;
    }

    .auth-brand-name {
        font-size: 1.45rem;
    }

    .auth-logo {
        max-height: 64px;
    }
}