/* ============================================
   Modern SaaS UI - Global Stylesheet
   Applied consistently across user pages
   ============================================ */

   :root {
    --gag-navy: #071b2b;
    --gag-navy-2: #0a2236;
    --gag-teal: #4E8E8E;
    --gag-teal-2: #7EAFB7;
    --gag-bg: #f6f8fb;
    --gag-card: #ffffff;
    --gag-text: #0f172a;
    --gag-muted: #64748b;
    --gag-border: #e6eaf0;
    --gag-shadow: 0 10px 25px rgba(2, 8, 23, .08);
    --gag-radius: 14px;
}

/* ===== PAGE SPACING ===== */
.section-full {
    background: var(--gag-bg) !important;
}

.pt-60 {
    padding-top: 32px !important;
}

.pb-60 {
    padding-bottom: 40px !important;
}

/* ===== CARDS ===== */
.section-full .card {
    border: 1px solid var(--gag-border) !important;
    border-radius: var(--gag-radius) !important;
    box-shadow: var(--gag-shadow);
    background: var(--gag-card);
    overflow: hidden;
}

.section-full .card-body {
    padding: 18px !important;
}

/* ===== FILTER FORMS ===== */
.section-full .form-group label {
    font-size: 13px;
    color: var(--gag-muted);
    font-weight: 800;
    margin-bottom: 8px;
}

.section-full .form--control,
.section-full .form-control {
    border-radius: 12px !important;
    border: 1px solid var(--gag-border) !important;
    padding: 5px 10px !important;
    background: #fbfcfe !important;
    box-shadow: none !important;
    font-weight: 700;
    height: auto;
}

.section-full .form--control:focus,
.section-full .form-control:focus {
    border-color: rgba(78, 142, 142, .5) !important;
    box-shadow: 0 0 0 4px rgba(78, 142, 142, .12) !important;
    outline: none;
}

/* ===== BUTTONS ===== */
.section-full .btn.btn--base {
    border-radius: 12px !important;
    font-weight: 800;
}

.section-full .btn.btn--sm.btn--base {
    border-radius: 12px !important;
    padding: 10px 12px !important;
    font-weight: 800;
    white-space: nowrap;
}

.section-full .btn.btn--dark {
    border-radius: 12px !important;
    font-weight: 800;
}

/* ===== STATUS FILTER TABS (Service List) ===== */
.section-full .status-filter-tabs label {
    font-size: 13px;
    letter-spacing: .2px;
    color: var(--gag-muted);
    font-weight: 700;
    margin-bottom: 12px !important;
}

.section-full .status-tabs-container {
    width: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
}

.section-full .status-tabs {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 6px;
    margin: 0;
    border: 1px solid var(--gag-border);
    background: #fbfcfe;
    border-radius: 999px;
    min-width: max-content;
}

.section-full .status-tab {
    border: 1px solid transparent;
    background: transparent;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gag-muted);
    transition: all .18s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
    border-bottom: none !important;
    margin-bottom: 0 !important;
}

.section-full .status-tab:hover {
    color: var(--gag-text);
    background: rgba(78, 142, 142, .08);
    border-color: rgba(78, 142, 142, .18);
}

.section-full .status-tab.active {
    color: #ffffff !important;
    background: linear-gradient(270deg, #081f30, #000000);
    border-color: rgba(255, 255, 255, .25);
    box-shadow: 0 6px 16px rgba(78, 142, 142, .22);
}

.section-full .status-count {
    font-size: 12px;
    font-weight: 800;
    color: inherit;
    opacity: .9;
}

/* ===== MOBILE DROPDOWN FILTER ===== */
.section-full .status-filter-dropdown label {
    font-size: 13px;
    color: var(--gag-muted);
    font-weight: 700;
}

.section-full .status-filter-dropdown .form--control,
.section-full .status-filter-dropdown .form-control {
    border-radius: 12px !important;
    border: 1px solid var(--gag-border) !important;
    padding: 12px 14px !important;
    background: #fbfcfe !important;
    box-shadow: none !important;
    font-weight: 600;
}

.section-full .status-filter-dropdown .form--control:focus,
.section-full .status-filter-dropdown .form-control:focus {
    border-color: rgba(78, 142, 142, .5) !important;
    box-shadow: 0 0 0 4px rgba(78, 142, 142, .12) !important;
}

/* ===== MOBILE SERVICE CARDS ===== */
.section-full .d-md-none .card {
    border-radius: 16px !important;
}

.section-full .d-md-none .card-body {
    padding: 14px !important;
}

.section-full .d-md-none .fw-bold {
    font-weight: 800 !important;
    color: var(--gag-text);
    font-size: 13px;
}

.section-full .d-md-none .text-muted {
    color: var(--gag-muted) !important;
}

.section-full .d-md-none .btn.btn--base {
    border-radius: 12px !important;
    padding: 10px 12px !important;
    font-weight: 800;
}

/* ===== TABLES ===== */
.section-full .table-responsive {
    border-radius: var(--gag-radius);
}

.section-full .table {
    margin-bottom: 0 !important;
    background: var(--gag-card);
    border-radius: var(--gag-radius);
    overflow: hidden;
}

.section-full .table thead th {
    background: linear-gradient(180deg, #0a2236, #071b2b);
    color: #eaf2f6 !important;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .35px;
    text-transform: uppercase;
    padding: 14px 14px !important;
    border: none !important;
    white-space: nowrap;
}

.section-full .table tbody td {
    padding: 16px 14px !important;
    border-top: 1px solid var(--gag-border) !important;
    vertical-align: middle;
    color: var(--gag-text);
    font-weight: 600;
}

.section-full .table tbody tr:hover {
    background: #fbfcfe;
}

.section-full .table tbody td img {
    border-radius: 10px !important;
    border: 1px solid var(--gag-border) !important;
    background: #fff;
}

/* ===== ACTION BADGES/BUTTONS ===== */
.section-full .badge.badge--icon.badge--fill-base {
    border-radius: 12px !important;
    padding: 10px 12px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(2, 8, 23, .12);
    transition: transform .15s ease, box-shadow .15s ease;
}

.section-full .badge.badge--icon.badge--fill-base:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(2, 8, 23, .16);
}

/* ===== TEXT UTILITIES ===== */
.section-full .text-muted {
    color: var(--gag-muted) !important;
}

/* ===== PROFILE TABS ===== */
.section-full .profile-tabs-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    margin-bottom: 24px;
}

.section-full .profile-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 6px;
    margin: 0;
    border: 1px solid var(--gag-border);
    background: #fbfcfe;
    border-radius: 999px;
    min-width: max-content;
    list-style: none;
}

.section-full .profile-tabs .nav-item {
    margin: 0;
}

.section-full .profile-tabs .nav-link {
    border: 1px solid transparent;
    background: transparent;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gag-muted);
    transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
    border-bottom: none !important;
    margin-bottom: 0 !important;
    cursor: pointer;
    position: relative;
}

.section-full .profile-tabs .nav-link:hover {
    color: var(--gag-muted);
    background: rgba(0, 0, 0, .04);
}

.section-full .profile-tabs .nav-link.active {
    color: hsl(var(--white)) !important;
    background: #081f30 !important;
    border: 1px solid hsl(var(--base)) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12), 0 2px 4px rgba(0, 0, 0, .08);
    transform: translateY(-1px);
    font-weight: 800;
    position: relative;
}

.section-full .profile-tabs .nav-link.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0));
    border-radius: 999px;
    pointer-events: none;
}

.section-full .profile-tabs .nav-link.active:hover {
    opacity:0.9;
    border-color: hsl(var(--base-600)) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .15), 0 2px 6px rgba(0, 0, 0, .1);
    transform: translateY(-1px);
}

.section-full .profile-tabs .nav-link i {
    font-size: 14px;
}

.section-full .tab-content {
    padding-top: 8px;
}

.section-full .tab-pane {
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== DEPOSIT AMOUNT INPUT GROUP ===== */
.section-full .deposit-amount-input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 1px solid var(--gag-border) !important;
    border-radius: 10px !important;
    background: #fbfcfe !important;
    overflow: hidden;
    transition: all .18s ease;
}

.section-full .deposit-amount-input-group:focus-within {
    border-color: rgba(78, 142, 142, .5) !important;
    box-shadow: 0 0 0 4px rgba(78, 142, 142, .12) !important;
    background: #ffffff !important;
}

.section-full .deposit-currency-prefix {
    display: flex;
    align-items: center;
    padding: 8px 12px !important;
    background: transparent !important;
    border: none !important;
    border-right: 1px solid var(--gag-border) !important;
    color: var(--gag-text) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.section-full .deposit-amount-input-group .form--control,
.section-full .deposit-amount-input-group .form-control {
    border: none !important;
    background: transparent !important;
    padding: 8px 12px !important;
    border-radius: 0 !important;
    font-weight: 700 !important;
    height: auto !important;
    box-shadow: none !important;
    flex: 1 1 auto;
    min-width: 0;
    text-align: right !important;
}

.section-full .deposit-amount-input-group .form--control:focus,
.section-full .deposit-amount-input-group .form-control:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
}

.section-full .deposit-amount-input-group .form--control::placeholder,
.section-full .deposit-amount-input-group .form-control::placeholder {
    color: var(--gag-muted) !important;
    opacity: 0.6 !important;
    text-align: right !important;
}

/* ===== CUSTOM DROPDOWN UI ===== */
/* Hide native select, show custom dropdown */
.section-full .custom-select-wrapper {
    position: relative;
    width: 100%;
    display: block;
}

/* Ensure wrapper doesn't break layout */
.section-full .custom-select-wrapper,
.section-full .form-group .custom-select-wrapper,
.section-full .col-lg-9 .custom-select-wrapper {
    position: relative;
    width: 100%;
    display: block;
}

/* Hide native select completely when custom dropdown is initialized */
.section-full .custom-select-wrapper select.custom-select-initialized {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    background-image: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    /* Keep it in the DOM for form submission, but visually hidden */
}

/* Override any inline styles that might make native select visible */
.section-full .custom-select-wrapper select.custom-select-initialized,
.section-full .col-lg-9 .custom-select-wrapper select.custom-select-initialized {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: default !important;
}

/* Custom dropdown trigger button */
.section-full .custom-select-trigger {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 40px 10px 14px;
    background: #fbfcfe !important;
    border: 1px solid var(--gag-border) !important;
    border-radius: 12px !important;
    color: var(--gag-text) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    cursor: pointer !important;
    transition: all .18s ease;
    min-height: 42px !important;
    user-select: none;
    position: relative !important;
    z-index: 2 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.section-full .custom-select-trigger:hover {
    border-color: rgba(78, 142, 142, .3);
    background: #ffffff;
}

.section-full .custom-select-trigger.active {
    border-color: rgba(78, 142, 142, .5);
    box-shadow: 0 0 0 4px rgba(78, 142, 142, .12);
    background: #ffffff;
}

.section-full .custom-select-trigger:disabled {
    background: #f1f3f5;
    border-color: var(--gag-border);
    color: var(--gag-muted);
    opacity: 0.7;
    cursor: not-allowed;
}

/* Custom arrow icon */
.section-full .custom-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    pointer-events: none;
    transition: transform .18s ease;
}

.section-full .custom-select-trigger.active .custom-select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.section-full .custom-select-arrow svg {
    width: 100%;
    height: 100%;
    fill: #4E8E8E;
}

.section-full .custom-select-trigger:disabled .custom-select-arrow svg {
    fill: #999;
}

/* Custom dropdown panel */
.section-full .custom-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--gag-border);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(2, 8, 23, .08);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
    padding: 4px;
    margin-top: 4px;
}

.section-full .custom-select-dropdown.open {
    display: block;
    animation: fadeInDropdown 0.15s ease-out;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom dropdown options */
.section-full .custom-select-option {
    display: block;
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--gag-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    text-align: left;
    cursor: pointer;
    transition: all .12s ease;
    margin: 2px 0;
}

.section-full .custom-select-option:hover {
    background: rgba(78, 142, 142, .08);
    color: var(--gag-text);
}

.section-full .custom-select-option.selected {
    background: rgba(78, 142, 142, .12);
    color: var(--gag-text);
    font-weight: 600;
}

.section-full .custom-select-option.highlighted {
    background: rgba(78, 142, 142, .12);
    color: var(--gag-text);
}

.section-full .custom-select-option:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: transparent;
}

/* Scrollbar styling for dropdown */
.section-full .custom-select-dropdown::-webkit-scrollbar {
    width: 6px;
}

.section-full .custom-select-dropdown::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 3px;
}

.section-full .custom-select-dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.section-full .custom-select-dropdown::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Special handling for h-45 class */
.section-full .custom-select-wrapper.h-45 .custom-select-trigger {
    min-height: 45px;
    padding: 12px 40px 12px 14px;
}

/* Ensure dropdown doesn't break layout */
.section-full .custom-select-wrapper {
    display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .section-full .pt-60 {
        padding-top: 22px !important;
    }

    .section-full .pb-60 {
        padding-bottom: 28px !important;
    }

    .section-full .card-body {
        padding: 16px !important;
    }
}

@media (max-width: 768px) {
    .section-full .status-tabs {
        padding: 6px;
        gap: 8px;
    }

    .section-full .status-tab {
        padding: 9px 12px;
        font-size: 12.5px;
    }

    .section-full .profile-tabs {
        padding: 6px;
        gap: 8px;
    }

    .section-full .profile-tabs .nav-link {
        padding: 9px 14px;
        font-size: 12.5px;
    }

    .section-full .profile-tabs .nav-link i {
        font-size: 13px;
    }
}

/* ===== SERVICE CATEGORIES SIDEBAR ===== */
/* Card-like sidebar container */
.section-full #categoryMenu {
    border-radius: 14px !important;
    border: 1px solid var(--gag-border) !important;
    box-shadow: var(--gag-shadow) !important;
    background: var(--gag-card) !important;
    overflow: hidden !important;
    padding: 0 !important;
}

/* Dark navy header bar */
.section-full #categoryMenu > span:first-child {
    background: linear-gradient(180deg, #0a2236, #071b2b) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    padding: 14px 16px !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: block !important;
    text-align: center !important;
}

/* Accordion group headers (e.g., "RDP Servers") */
.section-full .category-type-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 16px !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--gag-border) !important;
    color: var(--gag-text) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    user-select: none !important;
    transition: background-color 0.15s ease, border-left-color 0.15s ease !important;
    position: relative !important;
    margin: 0 !important;
}

.section-full .category-type-header:hover {
    background: rgba(78, 142, 142, 0.06) !important;
    color: var(--gag-text) !important;
}

/* Active/open state with teal accent */
.section-full .category-type-header[aria-expanded="true"],
.section-full .category-type-header.active-group {
    background: rgba(78, 142, 142, 0.08) !important;
    border-left: 3px solid var(--gag-teal) !important;
    padding-left: 13px !important;
}

/* Category icon (caret) */
.section-full .category-type-header .category-icon {
    transition: transform 0.2s ease !important;
    font-size: 14px !important;
    color: var(--gag-teal) !important;
    margin-right: 10px !important;
    flex-shrink: 0 !important;
}

.section-full .category-type-header .rotate-icon {
    transform: rotate(-90deg) !important;
}

/* Strong text in header */
.section-full .category-type-header strong {
    font-weight: 700 !important;
    flex: 1 !important;
}

/* Collapsible content container */
.section-full #categoryMenu .collapse {
    border-bottom: 1px solid var(--gag-border) !important;
}

.section-full #categoryMenu .collapse:not(.show) {
    display: none !important;
}

/* List group items (category links) */
.section-full #categoryMenu .list-group-item {
    border: none !important;
    border-radius: 0 !important;
    padding: 10px 16px 10px 25px !important;
    color: var(--gag-text) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: background-color 0.12s ease, padding-left 0.12s ease, border-left-color 0.12s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    position: relative !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(230, 234, 240, 0.5) !important;
}

.section-full #categoryMenu .list-group-item:last-child {
    border-bottom: none !important;
}

/* Icon in list items */
.section-full #categoryMenu .list-group-item i {
    font-size: 6px !important;
    color: var(--gag-teal) !important;
    flex-shrink: 0 !important;
    margin-right: 0 !important;
}

.section-full #categoryMenu .list-group-item i.las.la-dot-circle {
    font-size: 8px !important;
}

/* Link text */
.section-full #categoryMenu .list-group-item span:not(.new-badge) {
    flex: 1 !important;
    line-height: 1.5 !important;
}

/* Hover state for links */
.section-full #categoryMenu .list-group-item:hover {
    background: rgba(78, 142, 142, 0.06) !important;
    color: var(--gag-text) !important;
    padding-left: 42px !important;
}

/* Active item state (teal background tint + bold) */
.section-full #categoryMenu .list-group-item.bg--base,
.section-full #categoryMenu .list-group-item.active {
    background: rgba(78, 142, 142, 0.12) !important;
    color: var(--gag-text) !important;
    font-weight: 700 !important;
    border-left: 3px solid var(--gag-teal) !important;
    padding-left: 37px !important;
}

.section-full #categoryMenu .list-group-item.bg--base.text-white {
    background: rgba(78, 142, 142, 0.15) !important;
    color: var(--gag-text) !important;
}

/* "All Services" link styling */
.section-full #categoryMenu .list-group-item.fw-bold {
    font-weight: 700 !important;
    padding-left: 16px !important;
    background: rgba(78, 142, 142, 0.04) !important;
}

.section-full #categoryMenu .list-group-item.fw-bold:hover {
    background: rgba(78, 142, 142, 0.08) !important;
    padding-left: 18px !important;
}

.section-full #categoryMenu .list-group-item.fw-bold i {
    font-size: 14px !important;
    color: var(--gag-teal) !important;
}

/* NEW badge - modern pill style */
.section-full #categoryMenu .new-badge {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: white !important;
    color: rgb(245 64 18) !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    padding: 3px 8px !important;
    border-radius: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 8px rgb(97 97 97 / 11%) !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
}

/* Responsive design */
@media (max-width: 991px) {
    .section-full #categoryMenu {
        border-radius: 12px !important;
        margin-bottom: 16px !important;
    }
    
    .section-full #categoryMenu .list-group-item {
        padding: 12px 16px 12px 25px !important;
    }
    
    .section-full #categoryMenu .list-group-item:hover {
        padding-left: 30px !important;
    }
    
    .section-full #categoryMenu .category-type-header {
        padding: 14px 16px !important;
    }
}

@media (max-width: 768px) {
    .section-full #categoryMenu {
        width: 100% !important;
        border-radius: 12px !important;
    }
    
    .section-full #categoryMenu > span:first-child {
        padding: 12px 14px !important;
        font-size: 12px !important;
    }
    
    .section-full #categoryMenu .category-type-header {
        padding: 12px 14px !important;
        font-size: 12.5px !important;
    }
    
    .section-full #categoryMenu .list-group-item {
        padding: 11px 14px 11px 23px !important;
        font-size: 12.5px !important;
    }
    
    .section-full #categoryMenu .list-group-item:hover {
        padding-left: 28px !important;
    }
    
    .section-full #categoryMenu .new-badge {
        font-size: 9px !important;
        padding: 2px 6px !important;
        right: 10px !important;
    }
}