/* ============================================
   GLOBAL BASE
============================================ */

body,
.navbar-nav,
.card,
.btn,
input,
select,
textarea {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif !important;
}

/* ============================================
   MAIN CONTENT AREA
============================================ */

.main-content {
    min-height: 100vh;
    background: #f1f5f9 !important;
}

.main-content.main-content-fluid {
    margin-left: 0;
}

.page-content {
    padding-top: 80px !important;
}

.page-content.page-content-full-scrn {
    padding: 7px;
}

/* ============================================
   SIDEBAR REDESIGN — WHITISH
============================================ */

.app-menu.navbar-menu {
    background: linear-gradient(180deg, #f0f4fa 0%, #edf1f9 100%) !important;
    border-right: 1px solid #dde4ef !important;
    box-shadow: 3px 0 18px rgba(59, 80, 130, 0.08) !important;
}

.navbar-brand-box {
    background: transparent !important;
    border-bottom: 1px solid #dde4ef !important;
}

/* Section title "Menu" label */
.menu-title span {
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 1.6px !important;
    text-transform: uppercase !important;
    color: #a0aec0 !important;
}

/* All nav links */
.navbar-nav .nav-item > .nav-link,
.navbar-nav .nav-item > .menu-link {
    color: #4a5568 !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    padding: 9px 14px !important;
    border-radius: 9px !important;
    margin: 2px 10px !important;
    transition:
        background 0.18s ease,
        color 0.18s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Icons inside nav links */
.navbar-nav .nav-item > .nav-link i,
.navbar-nav .nav-item > .menu-link i {
    font-size: 16px !important;
    width: 20px !important;
    text-align: center !important;
    color: #8fa3bf !important;
    transition: color 0.18s ease !important;
    flex-shrink: 0 !important;
}

/* Hover state */
.navbar-nav .nav-item > .nav-link:hover,
.navbar-nav .nav-item > .menu-link:hover {
    background: rgba(255, 255, 255, 0.7) !important;
    color: #1a202c !important;
    box-shadow: 0 1px 4px rgba(59, 80, 130, 0.08) !important;
}

.navbar-nav .nav-item > .nav-link:hover i,
.navbar-nav .nav-item > .menu-link:hover i {
    color: #3b82f6 !important;
}

/* Active state — solid blue pill */
.navbar-nav .nav-item > .nav-link.active,
.navbar-nav .nav-item > .menu-link.active {
    background: #3b82f6 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

.navbar-nav .nav-item > .nav-link.active i,
.navbar-nav .nav-item > .menu-link.active i {
    color: #ffffff !important;
}

/* Dropdown sub-menu items */
.menu-dropdown {
    padding-left: 0 !important;
}

.menu-dropdown .nav-link {
    font-size: 13px !important;
    color: #64748b !important;
    padding: 7px 14px 7px 50px !important;
    border-radius: 7px !important;
    margin: 1px 10px !important;
    position: relative !important;
    font-weight: 400 !important;
}

.menu-dropdown .nav-link::before {
    content: "";
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c8d5e8;
    transition: background 0.18s ease;
}

.menu-dropdown .nav-link:hover {
    color: #1a202c !important;
    background: rgba(255, 255, 255, 0.7) !important;
}

.menu-dropdown .nav-link:hover::before {
    background: #3b82f6;
}

.menu-dropdown .nav-link.active {
    color: #2563eb !important;
    background: rgba(59, 130, 246, 0.08) !important;
    font-weight: 600 !important;
}

.menu-dropdown .nav-link.active::before {
    background: #3b82f6;
}

.sidebar-background {
    background: transparent !important;
}

/* ============================================
   TOP HEADER REDESIGN
============================================ */

#page-topbar {
    background: #ffffff !important;
    border-bottom: 1px solid #e8edf3 !important;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.06) !important;
}

.navbar-header {
    height: 62px !important;
}

/* Hamburger */
.topnav-hamburger,
.vertical-menu-btn {
    border: none !important;
    color: #64748b !important;
    background: transparent !important;
    border-radius: 8px !important;
}

.topnav-hamburger:hover,
.vertical-menu-btn:hover {
    background: #f1f5f9 !important;
    color: #1e293b !important;
}

.hamburger-icon span {
    background: #64748b !important;
}

/* Topbar icon buttons */
.btn-topbar {
    color: #64748b !important;
    border-radius: 8px !important;
    border: none !important;
    width: 38px !important;
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.18s ease !important;
}

.btn-topbar:hover {
    background: #f1f5f9 !important;
    color: #1e293b !important;
}

/* User dropdown trigger */
.topbar-user .btn {
    background: transparent !important;
    border: none !important;
    padding: 4px 8px !important;
    border-radius: 10px !important;
    transition: background 0.18s ease !important;
}

.topbar-user .btn:hover {
    background: #f1f5f9 !important;
}

.user-name-text {
    color: #1e293b !important;
    font-weight: 500 !important;
    font-size: 13.5px !important;
}

.header-profile-user {
    border: 2px solid #e2e8f0 !important;
    width: 36px !important;
    height: 36px !important;
    object-fit: cover !important;
}

/* Dropdown menus */
.dropdown-menu {
    border: 1px solid #f1f5f9 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12) !important;
    padding: 8px !important;
    min-width: 180px !important;
}

.dropdown-item {
    border-radius: 7px !important;
    padding: 9px 14px !important;
    font-size: 13.5px !important;
    color: #475569 !important;
    font-weight: 400 !important;
    transition: all 0.15s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.dropdown-item:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
}

.dropdown-header {
    font-size: 11px !important;
    color: #94a3b8 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 8px 14px 6px !important;
}

/* ============================================
   CARDS
============================================ */

.card {
    border: 1px solid #e8edf3 !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.04) !important;
}

.card-header {
    background: #fff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    border-radius: 14px 14px 0 0 !important;
    padding: 16px 20px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    color: #0f172a !important;
}

.card-body {
    padding: 20px !important;
}

/* ============================================
   BUTTONS
============================================ */

.btn {
    border-radius: 8px !important;
    font-weight: 500 !important;
    font-size: 13.5px !important;
    transition: all 0.18s ease !important;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #4f46e5) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #4338ca) !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35) !important;
    transform: translateY(-1px) !important;
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
    transform: translateY(-1px) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.btn-danger:hover {
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35) !important;
    transform: translateY(-1px) !important;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.btn-info {
    background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.btn-secondary {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #475569 !important;
}

.btn-secondary:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
}

/* ============================================
   FORM CONTROLS
============================================ */

.form-control,
.form-select {
    border-radius: 8px !important;
    border-color: #e2e8f0 !important;
    font-size: 13.5px !important;
    padding: 9px 14px !important;
    color: #1e293b !important;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15) !important;
}

.form-label {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    margin-bottom: 6px !important;
}

/* Validation overrides */
.form-control.is-valid,
.was-validated .form-control:valid {
    border-color: #e2e8f0 !important;
    background-image: none !important;
}

.was-validated .form-check-input:valid {
    border-color: #e2e8f0 !important;
}

.was-validated input[type="password"].form-control:invalid {
    background-image: none !important;
}

.was-validated :invalid ~ .select2-container .select2-selection--single,
.invalid-feedback-server {
    border: 1px solid #f06548 !important;
}

.server-error-message {
    font-size: 13.5px;
    color: #ef4444;
    margin-bottom: 0;
}

/* ============================================
   TABLES
============================================ */

.table > thead {
    vertical-align: text-top;
    background: #f8fafc;
}

.table > thead > tr > th {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.7px !important;
    color: #64748b !important;
    border-bottom: 2px solid #e8edf3 !important;
    padding: 12px 16px !important;
    white-space: nowrap;
}

.table > tbody > tr > td {
    font-size: 13.5px !important;
    color: #374151 !important;
    padding: 12px 16px !important;
    vertical-align: middle !important;
    border-color: #f1f5f9 !important;
}

.table > tbody > tr:hover > td {
    background: #f8fafc !important;
}

/* DataTables */
.dataTables_scrollBody {
    min-height: 130px;
}

#scroll-horizontal_filter label {
    padding: 2px 10px;
    background-color: #f1f5f9;
    border-radius: 6px;
    color: #64748b;
}

#scroll-horizontal_filter label input {
    border: none;
    border-radius: 0;
    background-color: #f1f5f9;
    color: #0f172a;
}

/* ============================================
   MISC UTILITIES
============================================ */

.icon-sm {
    height: 2.5rem;
    width: 2.5rem;
}

span.asterisk-icon i {
    font-size: 10px;
    vertical-align: top;
    color: rgb(240, 101, 72);
}

input#onDisplayToggle {
    width: 35px;
    height: 17px;
}

.terminal-table-scroll .table-card {
    max-height: 515px;
    overflow: auto;
}

.table-scroll {
    overflow: auto;
}

.terminal-card-50 {
    height: 430px;
}

.list-scroll {
    max-height: 300px;
    overflow: auto;
}

/* ============================================
   LOGIN PAGE — SPLIT SCREEN REDESIGN
============================================ */

.login-wrapper {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    font-family:
        "Inter",
        -apple-system,
        sans-serif;
}

/* ---- Left Branding Panel ---- */
.login-left-panel {
    width: 45%;
    background: linear-gradient(145deg, #0d1b2a 0%, #1a2744 55%, #0e2954 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

/* Decorative floating shapes */
.lp-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.lp-shape {
    position: absolute;
    border-radius: 50%;
}

.lp-shape-1 {
    width: 340px;
    height: 340px;
    top: -100px;
    left: -100px;
    background: rgba(59, 130, 246, 0.07);
}

.lp-shape-2 {
    width: 220px;
    height: 220px;
    bottom: -60px;
    right: -60px;
    background: rgba(99, 102, 241, 0.1);
}

.lp-shape-3 {
    width: 130px;
    height: 130px;
    top: 58%;
    left: 8%;
    background: rgba(59, 130, 246, 0.06);
}

.lp-shape-4 {
    width: 90px;
    height: 90px;
    top: 18%;
    right: 8%;
    background: rgba(148, 163, 184, 0.05);
}

/* Brand content */
.lp-content {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Remove .lp-logo-circle entirely, replace with: */
.lp-logo-wrap {
    margin-bottom: 28px;
    line-height: 0;
}

.lp-logo-img {
    width: 120px;
    height: auto;
    display: block;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.lp-logo-icon {
    font-size: 48px;
    color: #60a5fa;
    display: block;
    line-height: 1;
}

/* Glassmorphism form wrapper */
.rp-form-wrapper {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 8px 32px rgba(100, 120, 160, 0.1);
}

/* Right panel needs a soft background for glass to read against */
.login-right-panel {
    width: 55%;
    background: linear-gradient(145deg, #eef2f9 0%, #e8edf8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lp-logo-img {
    width: 140px !important;
    max-width: 140px !important;
    height: auto !important;
    display: block !important;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.lp-company-name {
    font-size: 26px;
    font-weight: 700;
    color: #f0f6ff;
    margin-bottom: 12px;
    letter-spacing: -0.4px;
}

.lp-tagline {
    font-size: 14.5px;
    color: #7b93b0;
    max-width: 260px;
    line-height: 1.65;
    margin-bottom: 40px;
}

/* Feature list */
.lp-feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 280px;
}

.lp-feature-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    text-align: left;
    color: #7b93b0;
    font-size: 13.5px;
    font-weight: 400;
}

.lp-feature-item > i {
    font-size: 18px;
    color: #60a5fa;
    flex-shrink: 0;
}

/* Footer credit */
.lp-footer {
    position: absolute;
    bottom: 24px;
    z-index: 1;
    text-align: center;
}

.lp-footer p {
    font-size: 11.5px;
    color: #3d556e;
    margin: 0;
}



.rp-form-wrapper {
    width: 100%;
    max-width: 400px;
}

/* Header */
.rp-header {
    margin-bottom: 36px;
    text-align: center;
}


.rp-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.4px;
}

.rp-header p {
    font-size: 14.5px;
    color: #94a3b8;
    margin: 0;
}

/* Error alert */
.rp-error-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 12px 16px;
    color: #dc2626;
    font-size: 13.5px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rp-error-alert i {
    font-size: 17px;
    flex-shrink: 0;
}

/* Field groups */
.rp-field-group {
    margin-bottom: 20px;
}

.rp-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 7px;
}

.rp-input-wrap {
    position: relative;
}

.rp-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    color: #94a3b8;
    pointer-events: none;
}

.rp-input {
    width: 100%;
    padding: 12px 16px 12px 45px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    outline: none;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
    font-family: "Inter", sans-serif;
}

.rp-input:focus {
    border-color: #60a5fa;
    background: #fff;
    box-shadow: 0 0 0 3.5px rgba(96, 165, 250, 0.15);
}

.rp-input::placeholder {
    color: #c8d4e0;
}

.rp-toggle-pass {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 6px;
    font-size: 17px;
    line-height: 1;
    transition: color 0.18s ease;
}

.rp-toggle-pass:hover {
    color: #475569;
}

.rp-form .invalid-feedback {
    font-size: 12.5px;
    margin-top: 5px;
}

/* Submit button */
.rp-submit-btn {
    width: 100%;
    padding: 13px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #4f46e5 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: "Inter", sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    letter-spacing: 0.2px;
}

.rp-submit-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(59, 130, 246, 0.38);
}

.rp-submit-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ============================================
   RESPONSIVE
============================================ */

@media (max-width: 768px) {
    .login-left-panel {
        display: none;
    }

    .login-right-panel {
        width: 100%;
        padding: 32px 24px;
    }
}

@media (max-width: 1400px) {
    .terminal-card-50 {
        height: 70vh;
    }

    .list-scroll {
        max-height: 250px;
    }
}

@media (min-width: 1400.99px) {
    #support-ticket-details {
        width: 50%;
    }
}
