/* ==========================================================================
   SHANTI LAW ASSOCIATES
   Client & Immigration Management System
   Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ROOT VARIABLES
   -------------------------------------------------------------------------- */

:root {
    --sla-primary: #17365d;
    --sla-primary-dark: #102846;
    --sla-primary-light: #234f82;

    --sla-secondary: #64748b;
    --sla-success: #198754;
    --sla-warning: #d89b00;
    --sla-danger: #c0392b;
    --sla-info: #0d6efd;

    --sla-white: #ffffff;
    --sla-black: #111827;

    --sla-text: #27364a;
    --sla-text-light: #64748b;

    --sla-border: #e2e8f0;
    --sla-border-dark: #cbd5e1;

    --sla-background: #f5f7fb;
    --sla-card: #ffffff;

    --sla-radius-sm: 7px;
    --sla-radius: 12px;
    --sla-radius-lg: 16px;

    --sla-shadow-sm:
        0 2px 8px rgba(15, 23, 42, 0.05);

    --sla-shadow:
        0 8px 25px rgba(15, 23, 42, 0.07);

    --sla-shadow-lg:
        0 15px 40px rgba(15, 23, 42, 0.10);

    --sla-transition:
        all 0.2s ease-in-out;
}


/* --------------------------------------------------------------------------
   2. GLOBAL RESET
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: var(--sla-background);

    color: var(--sla-text);

    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    font-size: 14px;

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--sla-primary);
    text-decoration: none;
    transition: var(--sla-transition);
}

a:hover {
    color: var(--sla-primary-light);
}

button,
input,
select,
textarea {
    font: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: var(--sla-primary);
    color: #fff;
}


/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;

    color: var(--sla-primary-dark);

    font-weight: 700;

    line-height: 1.3;
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 23px;
}

h3 {
    font-size: 19px;
}

h4 {
    font-size: 17px;
}

.text-muted {
    color: var(--sla-text-light) !important;
}

.text-primary {
    color: var(--sla-primary) !important;
}

.text-success {
    color: var(--sla-success) !important;
}

.text-warning {
    color: var(--sla-warning) !important;
}

.text-danger {
    color: var(--sla-danger) !important;
}


/* --------------------------------------------------------------------------
   4. ADMIN LAYOUT
   -------------------------------------------------------------------------- */

.sla-admin {
    min-height: 100vh;
    background: var(--sla-background);
}

.sla-main {
    min-height: 100vh;
    margin-left: 260px;
    transition: var(--sla-transition);
}

.sla-content {
    padding: 30px;
    max-width: 1800px;
    margin: 0 auto;
}


/* --------------------------------------------------------------------------
   5. SIDEBAR
   -------------------------------------------------------------------------- */

.sla-sidebar {
    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    width: 260px;

    z-index: 1040;

    background:
        linear-gradient(
            180deg,
            var(--sla-primary-dark) 0%,
            var(--sla-primary) 100%
        );

    color: #fff;

    box-shadow:
        4px 0 20px rgba(15, 23, 42, 0.10);

    overflow-y: auto;

    transition: var(--sla-transition);
}

.sla-sidebar::-webkit-scrollbar {
    width: 5px;
}

.sla-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.18);
    border-radius: 10px;
}


/* --------------------------------------------------------------------------
   6. BRAND
   -------------------------------------------------------------------------- */

.sla-brand {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 22px 20px;

    color: #fff;

    border-bottom:
        1px solid rgba(255,255,255,0.10);
}

.sla-brand:hover {
    color: #fff;
}

.sla-brand-logo {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: rgba(255,255,255,0.12);

    font-size: 19px;
}

.sla-brand-text {
    display: flex;
    flex-direction: column;
}

.sla-brand-title {
    font-size: 15px;
    font-weight: 700;

    line-height: 1.2;
}

.sla-brand-subtitle {
    margin-top: 3px;

    font-size: 10px;

    color: rgba(255,255,255,0.65);

    text-transform: uppercase;

    letter-spacing: 0.6px;
}


/* --------------------------------------------------------------------------
   7. SIDEBAR NAVIGATION
   -------------------------------------------------------------------------- */

.sla-nav {
    padding: 18px 12px;
}

.sla-nav-label {
    padding: 12px 10px 7px;

    color: rgba(255,255,255,0.45);

    font-size: 10px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.sla-nav-link {
    display: flex;
    align-items: center;

    gap: 11px;

    margin: 3px 0;

    padding: 11px 12px;

    border-radius: 8px;

    color: rgba(255,255,255,0.76);

    font-size: 13px;

    transition: var(--sla-transition);
}

.sla-nav-link i {
    width: 19px;

    text-align: center;

    font-size: 14px;
}

.sla-nav-link:hover {
    color: #fff;

    background: rgba(255,255,255,0.09);

    transform: translateX(2px);
}

.sla-nav-link.active {
    color: #fff;

    background: rgba(255,255,255,0.14);

    box-shadow:
        inset 3px 0 0 rgba(255,255,255,0.85);
}

.sla-nav-badge {
    margin-left: auto;

    min-width: 21px;
    height: 21px;

    padding: 0 6px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background: rgba(255,255,255,0.14);

    font-size: 10px;
}


/* --------------------------------------------------------------------------
   8. TOPBAR
   -------------------------------------------------------------------------- */

.sla-topbar {
    position: sticky;

    top: 0;

    z-index: 1030;

    height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 30px;

    background: rgba(255,255,255,0.96);

    border-bottom:
        1px solid var(--sla-border);

    backdrop-filter: blur(10px);
}

.sla-topbar-left {
    display: flex;
    align-items: center;

    gap: 15px;
}

.sla-topbar-title {
    margin: 0;

    font-size: 17px;

    font-weight: 700;

    color: var(--sla-primary-dark);
}

.sla-topbar-right {
    display: flex;
    align-items: center;

    gap: 12px;
}


/* --------------------------------------------------------------------------
   9. USER PROFILE
   -------------------------------------------------------------------------- */

.sla-user {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 5px 8px;

    border-radius: 9px;
}

.sla-user:hover {
    background: var(--sla-background);
}

.sla-user-avatar {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--sla-primary);

    color: #fff;

    font-size: 13px;
    font-weight: 700;
}

.sla-user-info {
    display: flex;
    flex-direction: column;

    line-height: 1.3;
}

.sla-user-name {
    font-size: 12px;
    font-weight: 700;

    color: var(--sla-primary-dark);
}

.sla-user-role {
    font-size: 10px;

    color: var(--sla-text-light);
}


/* --------------------------------------------------------------------------
   10. PAGE HEADER
   -------------------------------------------------------------------------- */

.sla-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}

.sla-page-header-left {
    min-width: 0;
}

.sla-page-title {
    margin-bottom: 4px;

    font-size: 25px;

    font-weight: 750;

    color: var(--sla-primary-dark);
}

.sla-page-description {
    margin: 0;

    color: var(--sla-text-light);

    font-size: 13px;
}

.sla-page-actions {
    display: flex;
    align-items: center;

    gap: 8px;

    flex-wrap: wrap;
}


/* --------------------------------------------------------------------------
   11. BREADCRUMB
   -------------------------------------------------------------------------- */

.sla-breadcrumb {
    display: flex;
    align-items: center;

    gap: 7px;

    margin-bottom: 12px;

    font-size: 11px;

    color: var(--sla-text-light);
}

.sla-breadcrumb a {
    color: var(--sla-text-light);
}

.sla-breadcrumb a:hover {
    color: var(--sla-primary);
}

.sla-breadcrumb i {
    font-size: 8px;
}


/* --------------------------------------------------------------------------
   12. CARDS
   -------------------------------------------------------------------------- */

.sla-card {
    background: var(--sla-card);

    border:
        1px solid var(--sla-border);

    border-radius: var(--sla-radius);

    box-shadow: var(--sla-shadow-sm);

    overflow: hidden;
}

.sla-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 18px 20px;

    border-bottom:
        1px solid var(--sla-border);
}

.sla-card-title {
    margin: 0;

    font-size: 15px;

    font-weight: 700;

    color: var(--sla-primary-dark);
}

.sla-card-subtitle {
    margin-top: 3px;

    font-size: 11px;

    color: var(--sla-text-light);
}

.sla-card-body {
    padding: 20px;
}

.sla-card-footer {
    padding: 14px 20px;

    background: #fafbfd;

    border-top:
        1px solid var(--sla-border);
}


/* --------------------------------------------------------------------------
   13. STATISTICS CARDS
   -------------------------------------------------------------------------- */

.sla-stat-card {
    position: relative;

    padding: 20px;

    background: #fff;

    border:
        1px solid var(--sla-border);

    border-radius: var(--sla-radius);

    box-shadow: var(--sla-shadow-sm);

    overflow: hidden;

    transition: var(--sla-transition);
}

.sla-stat-card:hover {
    transform: translateY(-2px);

    box-shadow: var(--sla-shadow);
}

.sla-stat-card::after {
    content: "";

    position: absolute;

    top: 0;
    right: 0;

    width: 4px;
    height: 100%;

    background: var(--sla-primary);
}

.sla-stat-icon {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 14px;

    border-radius: 10px;

    background: rgba(23,54,93,0.08);

    color: var(--sla-primary);

    font-size: 17px;
}

.sla-stat-label {
    margin-bottom: 4px;

    color: var(--sla-text-light);

    font-size: 11px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.4px;
}

.sla-stat-value {
    font-size: 26px;

    font-weight: 750;

    line-height: 1.1;

    color: var(--sla-primary-dark);
}

.sla-stat-meta {
    margin-top: 7px;

    font-size: 11px;

    color: var(--sla-text-light);
}


/* --------------------------------------------------------------------------
   14. BUTTONS
   -------------------------------------------------------------------------- */

.sla-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 38px;

    padding: 8px 15px;

    border: 1px solid transparent;

    border-radius: 8px;

    font-size: 12px;

    font-weight: 650;

    cursor: pointer;

    transition: var(--sla-transition);

    text-decoration: none;
}

.sla-btn:hover {
    transform: translateY(-1px);
}

.sla-btn:active {
    transform: translateY(0);
}

.sla-btn-primary {
    background: var(--sla-primary);

    color: #fff;
}

.sla-btn-primary:hover {
    background: var(--sla-primary-dark);

    color: #fff;
}

.sla-btn-secondary {
    background: #f1f5f9;

    color: var(--sla-text);

    border-color: var(--sla-border);
}

.sla-btn-secondary:hover {
    background: #e2e8f0;

    color: var(--sla-text);
}

.sla-btn-success {
    background: var(--sla-success);

    color: #fff;
}

.sla-btn-success:hover {
    color: #fff;

    filter: brightness(0.93);
}

.sla-btn-danger {
    background: var(--sla-danger);

    color: #fff;
}

.sla-btn-danger:hover {
    color: #fff;

    filter: brightness(0.93);
}

.sla-btn-warning {
    background: var(--sla-warning);

    color: #fff;
}

.sla-btn-warning:hover {
    color: #fff;

    filter: brightness(0.93);
}

.sla-btn-outline {
    background: #fff;

    color: var(--sla-primary);

    border-color: var(--sla-border-dark);
}

.sla-btn-outline:hover {
    background: var(--sla-background);

    border-color: var(--sla-primary);

    color: var(--sla-primary);
}

.sla-btn-sm {
    min-height: 32px;

    padding: 6px 10px;

    font-size: 11px;

    border-radius: 7px;
}

.sla-btn-lg {
    min-height: 46px;

    padding: 11px 20px;

    font-size: 13px;
}


/* --------------------------------------------------------------------------
   15. FORMS
   -------------------------------------------------------------------------- */

.sla-form-group {
    margin-bottom: 18px;
}

.sla-form-label {
    display: block;

    margin-bottom: 7px;

    color: var(--sla-primary-dark);

    font-size: 12px;

    font-weight: 650;
}

.sla-form-label .required {
    color: var(--sla-danger);

    margin-left: 2px;
}

.sla-form-control,
.sla-form-select {
    width: 100%;

    min-height: 42px;

    padding: 9px 12px;

    background: #fff;

    color: var(--sla-text);

    border:
        1px solid var(--sla-border-dark);

    border-radius: 8px;

    outline: none;

    transition: var(--sla-transition);
}

.sla-form-control:hover,
.sla-form-select:hover {
    border-color: #aebdcd;
}

.sla-form-control:focus,
.sla-form-select:focus {
    border-color: var(--sla-primary);

    box-shadow:
        0 0 0 3px rgba(23,54,93,0.10);
}

textarea.sla-form-control {
    min-height: 110px;

    resize: vertical;
}

.sla-form-help {
    margin-top: 5px;

    font-size: 10px;

    color: var(--sla-text-light);
}

.sla-form-error {
    margin-top: 5px;

    color: var(--sla-danger);

    font-size: 11px;
}

.sla-form-section {
    margin-bottom: 25px;
}

.sla-form-section-title {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 15px;

    padding-bottom: 10px;

    border-bottom:
        1px solid var(--sla-border);

    color: var(--sla-primary-dark);

    font-size: 14px;

    font-weight: 700;
}

.sla-form-section-title i {
    color: var(--sla-primary);

    font-size: 13px;
}


/* --------------------------------------------------------------------------
   16. SEARCH BAR
   -------------------------------------------------------------------------- */

.sla-search-box {
    position: relative;
}

.sla-search-box i {
    position: absolute;

    top: 50%;
    left: 13px;

    transform: translateY(-50%);

    color: var(--sla-text-light);

    font-size: 12px;
}

.sla-search-box input {
    padding-left: 36px;
}


/* --------------------------------------------------------------------------
   17. FILTER BAR
   -------------------------------------------------------------------------- */

.sla-filter-bar {
    display: flex;
    align-items: flex-end;

    gap: 10px;

    flex-wrap: wrap;

    padding: 15px;

    margin-bottom: 18px;

    background: #fff;

    border:
        1px solid var(--sla-border);

    border-radius: var(--sla-radius);
}

.sla-filter-item {
    min-width: 160px;
    flex: 1;
}

.sla-filter-item label {
    display: block;

    margin-bottom: 5px;

    font-size: 10px;

    font-weight: 650;

    color: var(--sla-text-light);
}


/* --------------------------------------------------------------------------
   18. TABLE
   -------------------------------------------------------------------------- */

.sla-table-wrapper {
    width: 100%;

    overflow-x: auto;

    border-radius: var(--sla-radius);
}

.sla-table {
    width: 100%;

    margin: 0;

    border-collapse: separate;

    border-spacing: 0;

    background: #fff;

    font-size: 12px;
}

.sla-table thead th {
    padding: 12px 14px;

    background: #f8fafc;

    color: #526173;

    border-bottom:
        1px solid var(--sla-border);

    font-size: 10px;

    font-weight: 750;

    text-transform: uppercase;

    letter-spacing: 0.45px;

    white-space: nowrap;
}

.sla-table tbody td {
    padding: 13px 14px;

    color: var(--sla-text);

    border-bottom:
        1px solid #edf1f5;

    vertical-align: middle;
}

.sla-table tbody tr:last-child td {
    border-bottom: none;
}

.sla-table tbody tr {
    transition: var(--sla-transition);
}

.sla-table tbody tr:hover {
    background: #f8fafc;
}

.sla-table .client-name {
    font-weight: 700;

    color: var(--sla-primary-dark);
}

.sla-table .client-id {
    font-size: 10px;

    color: var(--sla-text-light);
}


/* --------------------------------------------------------------------------
   19. STATUS BADGES
   -------------------------------------------------------------------------- */

.sla-badge {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    padding: 5px 8px;

    border-radius: 20px;

    font-size: 10px;

    font-weight: 700;

    line-height: 1;
}

.sla-badge-success {
    background: #e8f7ef;

    color: #137a48;
}

.sla-badge-warning {
    background: #fff5d9;

    color: #946c00;
}

.sla-badge-danger {
    background: #fdebea;

    color: #a93226;
}

.sla-badge-info {
    background: #eaf2ff;

    color: #1757a6;
}

.sla-badge-secondary {
    background: #eef2f6;

    color: #5d6876;
}

.sla-badge-primary {
    background: #e9eff7;

    color: var(--sla-primary);
}


/* --------------------------------------------------------------------------
   20. CLIENT PROFILE
   -------------------------------------------------------------------------- */

.sla-profile-header {
    display: flex;
    align-items: center;

    gap: 18px;

    padding: 22px;

    background:
        linear-gradient(
            135deg,
            #fff 0%,
            #f8fafc 100%
        );

    border-bottom:
        1px solid var(--sla-border);
}

.sla-profile-avatar {
    width: 65px;
    height: 65px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background: var(--sla-primary);

    color: #fff;

    font-size: 22px;

    font-weight: 750;
}

.sla-profile-name {
    margin-bottom: 3px;

    color: var(--sla-primary-dark);

    font-size: 19px;

    font-weight: 750;
}

.sla-profile-id {
    color: var(--sla-text-light);

    font-size: 11px;
}

.sla-profile-actions {
    margin-left: auto;

    display: flex;
    gap: 7px;
}


/* --------------------------------------------------------------------------
   21. INFORMATION GRID
   -------------------------------------------------------------------------- */

.sla-info-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 0;

    border-top:
        1px solid var(--sla-border);

    border-left:
        1px solid var(--sla-border);
}

.sla-info-item {
    padding: 14px 15px;

    border-right:
        1px solid var(--sla-border);

    border-bottom:
        1px solid var(--sla-border);
}

.sla-info-label {
    margin-bottom: 4px;

    color: var(--sla-text-light);

    font-size: 10px;

    font-weight: 650;

    text-transform: uppercase;

    letter-spacing: 0.3px;
}

.sla-info-value {
    color: var(--sla-text);

    font-size: 13px;

    font-weight: 550;

    word-break: break-word;
}


/* --------------------------------------------------------------------------
   22. TIMELINE
   -------------------------------------------------------------------------- */

.sla-timeline {
    position: relative;

    padding-left: 30px;
}

.sla-timeline::before {
    content: "";

    position: absolute;

    top: 4px;
    bottom: 4px;
    left: 7px;

    width: 1px;

    background: var(--sla-border-dark);
}

.sla-timeline-item {
    position: relative;

    margin-bottom: 22px;
}

.sla-timeline-item:last-child {
    margin-bottom: 0;
}

.sla-timeline-dot {
    position: absolute;

    top: 4px;
    left: -27px;

    width: 15px;
    height: 15px;

    border-radius: 50%;

    background: #fff;

    border:
        3px solid var(--sla-primary);

    z-index: 1;
}

.sla-timeline-title {
    margin-bottom: 3px;

    font-size: 13px;

    font-weight: 700;

    color: var(--sla-primary-dark);
}

.sla-timeline-date {
    margin-bottom: 6px;

    color: var(--sla-text-light);

    font-size: 10px;
}

.sla-timeline-description {
    color: var(--sla-text);

    font-size: 12px;
}


/* --------------------------------------------------------------------------
   23. DEADLINE ITEMS
   -------------------------------------------------------------------------- */

.sla-deadline-item {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 13px 0;

    border-bottom:
        1px solid var(--sla-border);
}

.sla-deadline-item:last-child {
    border-bottom: none;
}

.sla-deadline-icon {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #f1f5f9;

    color: var(--sla-primary);

    font-size: 13px;
}

.sla-deadline-content {
    min-width: 0;

    flex: 1;
}

.sla-deadline-title {
    margin-bottom: 2px;

    color: var(--sla-primary-dark);

    font-size: 12px;

    font-weight: 700;
}

.sla-deadline-client {
    color: var(--sla-text-light);

    font-size: 10px;
}

.sla-deadline-date {
    text-align: right;

    font-size: 10px;

    font-weight: 650;
}


/* --------------------------------------------------------------------------
   24. EMPTY STATE
   -------------------------------------------------------------------------- */

.sla-empty {
    padding: 55px 20px;

    text-align: center;
}

.sla-empty-icon {
    width: 60px;
    height: 60px;

    margin: 0 auto 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f1f5f9;

    color: var(--sla-text-light);

    font-size: 20px;
}

.sla-empty-title {
    margin-bottom: 5px;

    color: var(--sla-primary-dark);

    font-size: 15px;

    font-weight: 700;
}

.sla-empty-text {
    max-width: 430px;

    margin: 0 auto;

    color: var(--sla-text-light);

    font-size: 12px;
}


/* --------------------------------------------------------------------------
   25. ALERTS
   -------------------------------------------------------------------------- */

.sla-alert {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    padding: 12px 14px;

    margin-bottom: 18px;

    border-radius: 9px;

    border: 1px solid transparent;

    font-size: 12px;
}

.sla-alert-success {
    background: #ecfdf3;

    color: #146c43;

    border-color: #ccebd9;
}

.sla-alert-danger {
    background: #fef2f2;

    color: #a93226;

    border-color: #f4cccc;
}

.sla-alert-warning {
    background: #fff8e5;

    color: #856404;

    border-color: #f2dfad;
}

.sla-alert-info {
    background: #eff6ff;

    color: #1757a6;

    border-color: #d6e7ff;
}


/* --------------------------------------------------------------------------
   26. PAGINATION
   -------------------------------------------------------------------------- */

.sla-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 15px 0;
}

.sla-pagination-info {
    color: var(--sla-text-light);

    font-size: 11px;
}

.sla-pagination-links {
    display: flex;

    gap: 4px;
}

.sla-page-link {
    min-width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 8px;

    border:
        1px solid var(--sla-border);

    border-radius: 7px;

    background: #fff;

    color: var(--sla-text);

    font-size: 11px;
}

.sla-page-link:hover {
    border-color: var(--sla-primary);

    color: var(--sla-primary);
}

.sla-page-link.active {
    background: var(--sla-primary);

    border-color: var(--sla-primary);

    color: #fff;
}


/* --------------------------------------------------------------------------
   27. QR FORM PUBLIC LAYOUT
   -------------------------------------------------------------------------- */

.sla-public {
    min-height: 100vh;

    padding: 30px 15px;

    display: flex;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #f5f7fb 0%,
            #edf2f8 100%
        );
}

.sla-public-container {
    width: 100%;

    max-width: 850px;
}

.sla-public-brand {
    margin-bottom: 25px;

    text-align: center;
}

.sla-public-logo {
    width: 60px;
    height: 60px;

    margin: 0 auto 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background: var(--sla-primary);

    color: #fff;

    font-size: 22px;
}

.sla-public-title {
    margin-bottom: 4px;

    font-size: 22px;

    font-weight: 750;

    color: var(--sla-primary-dark);
}

.sla-public-subtitle {
    color: var(--sla-text-light);

    font-size: 12px;
}

.sla-public-card {
    background: #fff;

    border:
        1px solid var(--sla-border);

    border-radius: var(--sla-radius-lg);

    box-shadow: var(--sla-shadow-lg);

    overflow: hidden;
}

.sla-public-card-header {
    padding: 25px 25px 20px;

    border-bottom:
        1px solid var(--sla-border);
}

.sla-public-card-body {
    padding: 25px;
}

.sla-public-card-footer {
    padding: 17px 25px;

    background: #fafbfd;

    border-top:
        1px solid var(--sla-border);

    text-align: center;

    color: var(--sla-text-light);

    font-size: 10px;
}


/* --------------------------------------------------------------------------
   28. FORM PROGRESS
   -------------------------------------------------------------------------- */

.sla-progress {
    width: 100%;
    height: 5px;

    overflow: hidden;

    background: #e8edf3;

    border-radius: 20px;
}

.sla-progress-bar {
    height: 100%;

    background: var(--sla-primary);

    border-radius: 20px;

    transition: width 0.3s ease;
}


/* --------------------------------------------------------------------------
   29. CHECKBOX / RADIO
   -------------------------------------------------------------------------- */

.sla-choice-group {
    display: flex;

    gap: 10px;

    flex-wrap: wrap;
}

.sla-choice {
    position: relative;

    display: inline-flex;
    align-items: center;

    cursor: pointer;
}

.sla-choice input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.sla-choice-label {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    min-height: 38px;

    padding: 7px 12px;

    background: #fff;

    border:
        1px solid var(--sla-border-dark);

    border-radius: 8px;

    color: var(--sla-text);

    font-size: 11px;

    transition: var(--sla-transition);
}

.sla-choice-label::before {
    content: "";

    width: 14px;
    height: 14px;

    display: block;

    border:
        1px solid #aab7c5;

    border-radius: 50%;

    background: #fff;
}

.sla-choice input[type="checkbox"]
    + .sla-choice-label::before {
    border-radius: 4px;
}

.sla-choice input:checked
    + .sla-choice-label {
    border-color: var(--sla-primary);

    background: #f2f6fb;

    color: var(--sla-primary);

    font-weight: 650;
}

.sla-choice input:checked
    + .sla-choice-label::before {
    background: var(--sla-primary);

    border-color: var(--sla-primary);

    box-shadow:
        inset 0 0 0 3px #fff;
}


/* --------------------------------------------------------------------------
   30. MOBILE MENU BUTTON
   -------------------------------------------------------------------------- */

.sla-sidebar-toggle {
    width: 38px;
    height: 38px;

    display: none;

    align-items: center;
    justify-content: center;

    border:
        1px solid var(--sla-border);

    border-radius: 8px;

    background: #fff;

    color: var(--sla-primary);

    cursor: pointer;
}


/* --------------------------------------------------------------------------
   31. OVERLAY
   -------------------------------------------------------------------------- */

.sla-overlay {
    position: fixed;

    inset: 0;

    z-index: 1035;

    display: none;

    background:
        rgba(15, 23, 42, 0.45);
}


/* --------------------------------------------------------------------------
   32. LOADING
   -------------------------------------------------------------------------- */

.sla-loading {
    display: inline-flex;
    align-items: center;

    gap: 8px;
}

.sla-spinner {
    width: 16px;
    height: 16px;

    display: inline-block;

    border:
        2px solid rgba(23,54,93,0.18);

    border-top-color:
        var(--sla-primary);

    border-radius: 50%;

    animation:
        sla-spin 0.7s linear infinite;
}

@keyframes sla-spin {
    to {
        transform: rotate(360deg);
    }
}


/* --------------------------------------------------------------------------
   33. FOOTER
   -------------------------------------------------------------------------- */

.sla-footer {
    padding: 20px 30px;

    color: var(--sla-text-light);

    font-size: 10px;

    text-align: center;

    border-top:
        1px solid var(--sla-border);
}


/* --------------------------------------------------------------------------
   34. MOBILE RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 1199px) {

    .sla-sidebar {
        width: 235px;
    }

    .sla-main {
        margin-left: 235px;
    }

    .sla-content {
        padding: 25px;
    }
}


@media (max-width: 991px) {

    .sla-sidebar {
        transform: translateX(-100%);
    }

    .sla-sidebar.show {
        transform: translateX(0);
    }

    .sla-main {
        margin-left: 0;
    }

    .sla-sidebar-toggle {
        display: inline-flex;
    }

    .sla-overlay.show {
        display: block;
    }

    .sla-topbar {
        padding: 0 20px;
    }

    .sla-content {
        padding: 20px;
    }
}


@media (max-width: 767px) {

    body {
        font-size: 13px;
    }

    .sla-topbar {
        height: 62px;

        padding: 0 15px;
    }

    .sla-topbar-title {
        font-size: 14px;
    }

    .sla-user-info {
        display: none;
    }

    .sla-content {
        padding: 17px 13px;
    }

    .sla-page-header {
        flex-direction: column;

        align-items: stretch;

        margin-bottom: 18px;
    }

    .sla-page-title {
        font-size: 21px;
    }

    .sla-page-actions {
        width: 100%;
    }

    .sla-page-actions .sla-btn {
        flex: 1;
    }

    .sla-card-header {
        padding: 15px;
    }

    .sla-card-body {
        padding: 15px;
    }

    .sla-info-grid {
        grid-template-columns: 1fr;
    }

    .sla-profile-header {
        flex-wrap: wrap;
    }

    .sla-profile-actions {
        width: 100%;

        margin-left: 0;
    }

    .sla-profile-actions .sla-btn {
        flex: 1;
    }

    .sla-filter-bar {
        flex-direction: column;

        align-items: stretch;
    }

    .sla-filter-item {
        width: 100%;
    }

    .sla-pagination {
        flex-direction: column;

        align-items: flex-start;
    }

    .sla-public {
        padding: 15px 10px;
    }

    .sla-public-card-header,
    .sla-public-card-body {
        padding: 18px;
    }
}


@media (max-width: 480px) {

    .sla-stat-value {
        font-size: 22px;
    }

    .sla-public-title {
        font-size: 19px;
    }

    .sla-form-section-title {
        font-size: 13px;
    }

    .sla-choice-group {
        flex-direction: column;
    }

    .sla-choice {
        width: 100%;
    }

    .sla-choice-label {
        width: 100%;
    }
}


/* --------------------------------------------------------------------------
   35. PRINT
   -------------------------------------------------------------------------- */

@media print {

    .sla-sidebar,
    .sla-topbar,
    .sla-sidebar-toggle,
    .sla-page-actions,
    .sla-footer {
        display: none !important;
    }

    .sla-main {
        margin-left: 0 !important;
    }

    .sla-content {
        padding: 0 !important;
    }

    .sla-card {
        border: none !important;

        box-shadow: none !important;
    }

    body {
        background: #fff !important;
    }
}


/* --------------------------------------------------------------------------
   36. ACCESSIBILITY
   -------------------------------------------------------------------------- */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(13,110,253,0.25);

    outline-offset: 2px;
}


/* --------------------------------------------------------------------------
   37. UTILITY CLASSES
   -------------------------------------------------------------------------- */

.sla-nowrap {
    white-space: nowrap;
}

.sla-truncate {
    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.sla-divider {
    height: 1px;

    margin: 20px 0;

    background: var(--sla-border);
}

.sla-mono {
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: 11px;
}

.sla-clickable {
    cursor: pointer;
}

.sla-hidden {
    display: none !important;
}


/* ==========================================================================
   SLA GRID SYSTEM
   ========================================================================== */

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -8px;
    margin-right: -8px;
}

.row > * {
    width: 100%;
    padding-left: 8px;
    padding-right: 8px;
}

.col-md-4,
.col-md-5,
.col-md-6,
.col-md-7,
.col-md-8 {
    width: 100%;
}

@media (min-width: 768px) {

    .col-md-4 {
        width: 33.333333%;
    }

    .col-md-5 {
        width: 41.666667%;
    }

    .col-md-6 {
        width: 50%;
    }

    .col-md-7 {
        width: 58.333333%;
    }

    .col-md-8 {
        width: 66.666667%;
    }

}
