/*
Template Name: Velzon - Admin & Dashboard Template
Author: Themesbrand
Website: https://themesbrand.com/
Contact: support@themesbrand.com
File: Custom Css File
*/

.auth-one-bg {
      background-image: url("../images/login-bg.jpg") !important;
       background-position: center !important;
    background-size: cover !important;
}

/* Login page */
.rgc-login-wrap {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.rgc-login-card {
    border: 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    background: #fff;
}

.rgc-login-card-header {
    padding: 1.75rem 1.75rem 0;
    text-align: center;
}

.rgc-login-card-icon {
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, rgba(75, 56, 179, 0.12) 0%, rgba(75, 56, 179, 0.04) 100%);
    color: #4b38b3;
    font-size: 1.5rem;
}

.rgc-login-card-header h5 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.35rem;
}

.rgc-login-card-header p {
    font-size: 0.8125rem;
    color: #878a99;
    margin-bottom: 0;
}

.rgc-login-card-body {
    padding: 1.5rem 1.75rem 1.75rem;
}

.rgc-login-field-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.4rem;
}

.rgc-login-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.rgc-login-input-group .input-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #878a99;
    font-size: 1.05rem;
    z-index: 3;
    pointer-events: none;
    line-height: 1;
}

.rgc-login-input-group .form-control {
    padding-left: 2.5rem;
    min-height: 2.65rem;
    border-radius: 0.5rem;
    border-color: #e9ebec;
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.rgc-login-input-group .form-control:focus {
    border-color: rgba(75, 56, 179, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(75, 56, 179, 0.12);
}

.rgc-login-input-group .form-control.error,
.rgc-login-input-group .form-control.is-invalid {
    border-color: #f06548;
    box-shadow: 0 0 0 0.2rem rgba(240, 101, 72, 0.12);
}

.rgc-login-field-error {
    min-height: 0;
}

.rgc-login-field-error label.error,
.rgc-login-field-error .invalid-feedback,
.rgc-login-field .text-danger {
    color: #f06548 !important;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-top: 0.35rem;
    margin-bottom: 0;
    display: block;
    line-height: 1.35;
}

.rgc-login-forgot {
    font-size: 0.8125rem;
    color: #878a99;
    text-decoration: none;
    white-space: nowrap;
}

.rgc-login-forgot:hover {
    color: #4b38b3;
    text-decoration: underline;
}

.rgc-login-back-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6c757d;
    text-decoration: none;
}

.rgc-login-back-link:hover {
    color: #4b38b3;
    text-decoration: none;
}

.rgc-login-input-group .password-addon {
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    height: 2rem;
    width: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
}

.rgc-login-input-group .password-addon:hover {
    background: rgba(75, 56, 179, 0.08);
    color: #4b38b3 !important;
}

.rgc-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.rgc-login-options .form-check-label {
    font-size: 0.8125rem;
    color: #6c757d;
}

.rgc-login-submit {
    min-height: 2.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #4b38b3 0%, #5a45c4 100%);
    border: 0;
    box-shadow: 0 4px 14px rgba(75, 56, 179, 0.35);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.rgc-login-submit:hover,
.rgc-login-submit:focus {
    background: linear-gradient(135deg, #4332a0 0%, #4b38b3 100%);
    box-shadow: 0 6px 18px rgba(75, 56, 179, 0.4);
}

.rgc-login-submit:active {
    transform: translateY(1px);
}

.rgc-login-brand p {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

@media (max-width: 575.98px) {
    .rgc-login-wrap {
        max-width: 100%;
    }

    .rgc-login-card-body {
        padding: 1.25rem 1.25rem 1.5rem;
    }

    .rgc-login-card-header {
        padding: 1.5rem 1.25rem 0;
    }
}

/* Thin scrollbars — global */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(64, 81, 137, 0.45) transparent;
}

*::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: rgba(64, 81, 137, 0.4);
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: rgba(64, 81, 137, 0.65);
}

/* Top navigation bar */
#page-topbar.rgc-topbar {
    background: linear-gradient(90deg, #ffffff 0%, #f8f9fc 100%);
    border-bottom: 1px solid rgba(75, 56, 179, 0.12);
    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.06);
}

[data-bs-theme="dark"] #page-topbar.rgc-topbar {
    background: linear-gradient(90deg, #1a1d21 0%, #212529 100%);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

#page-topbar.rgc-topbar .navbar-header {
    min-height: 64px;
    padding: 0 1rem;
}

.rgc-topbar-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.rgc-hamburger {
    border: 1px solid rgba(75, 56, 179, 0.15);
    border-radius: 0.375rem;
    background: #fff;
}

[data-bs-theme="dark"] .rgc-hamburger {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.rgc-topbar-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 0.5rem;
    color: var(--vz-body-color);
    background: transparent;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.rgc-topbar-icon-btn:hover,
.rgc-topbar-icon-btn:focus {
    background: rgba(75, 56, 179, 0.08);
    border-color: rgba(75, 56, 179, 0.15);
    color: #4b38b3;
}

.rgc-user-toggle {
    display: flex;
    align-items: center;
    padding: 0.35rem 0.65rem 0.35rem 0.35rem;
    border-radius: 2rem;
    border: 1px solid rgba(75, 56, 179, 0.12);
    background: #fff;
    max-width: 240px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

[data-bs-theme="dark"] .rgc-user-toggle {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.rgc-user-toggle:hover,
.rgc-user-toggle[aria-expanded="true"] {
    border-color: rgba(75, 56, 179, 0.35);
    box-shadow: 0 2px 8px rgba(75, 56, 179, 0.12);
}

.rgc-user-toggle .header-profile-user {
    width: 36px;
    height: 36px;
    object-fit: cover;
}

.rgc-user-toggle .user-name-text {
    font-size: 0.8125rem;
    line-height: 1.2;
    max-width: 140px;
}

.rgc-user-toggle .user-name-sub-text {
    max-width: 140px;
}

.rgc-user-dropdown {
    min-width: 200px;
    border-radius: 0.5rem;
    margin-top: 0.5rem !important;
}

.notification-badge {
    top: 4px !important;
    right: 2px !important;
}

/* Hide sidebar minimize / fullscreen controls */
.btn-vertical-sm-hover,
#vertical-hover,
[data-toggle="fullscreen"] {
    display: none !important;
}

/* Sidebar brand */
.rgc-sidebar-brand .rgc-sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
}

.rgc-sidebar-brand .logo-lg img {
    border-radius: 0.25rem;
}

/* Mini confirmation dialog (SweetAlert2) */
.swal-mini-popup {
    border-radius: 0.5rem !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15) !important;
}

.swal-mini-popup .swal-mini-title {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    padding: 0 !important;
    margin: 0 0 0.35rem !important;
}

.swal-mini-popup .swal-mini-text {
    font-size: 0.8125rem !important;
    line-height: 1.45 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.swal-mini-popup .swal-mini-icon {
    width: 2.5rem !important;
    height: 2.5rem !important;
    margin: 0.25rem auto 0.5rem !important;
    border-width: 2px !important;
}

.swal-mini-popup .swal-mini-icon .swal2-icon-content {
    font-size: 1.25rem !important;
}

.swal-mini-popup .swal2-success [class^='swal2-success-line'] {
    height: 0.2rem !important;
}

.swal-mini-popup .swal2-success .swal2-success-ring {
    width: 2.5rem !important;
    height: 2.5rem !important;
}

.swal-mini-popup .swal-mini-actions {
    gap: 0.5rem !important;
    margin: 0.75rem 0 0 !important;
    width: 100%;
}

.swal-mini-popup .swal-mini-actions .btn {
    min-width: 4rem;
    font-size: 0.8125rem;
}

/* Sidebar & SimpleBar areas */
.simplebar-track.simplebar-vertical {
    width: 6px !important;
}

.simplebar-scrollbar {
    width: 4px !important;
    right: 1px !important;
}

.simplebar-scrollbar::before {
    border-radius: 999px !important;
}

.simplebar-track.simplebar-horizontal {
    height: 6px !important;
}

.simplebar-track.simplebar-horizontal .simplebar-scrollbar {
    height: 4px !important;
    top: 1px !important;
}

/* DataTables & modal scroll areas */
.modal-body::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.dataTables_scrollBody::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}