/*
 * ==========================================================================
 * TETHERHOST DARK THEME OVERRIDES FOR WHMCS (SIX THEME)
 * ==========================================================================
 * This file transforms the default WHMCS Bootstrap 3 theme into the 
 * TetherHost dark glassmorphism aesthetic.
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --- 1. GLOBAL STYLES --- */
body {
    background-color: #000 !important;
    background-image: 
        radial-gradient(at 0% 0%, rgba(212,175,55,0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(212,175,55,0.03) 0px, transparent 50%) !important;
    background-attachment: fixed !important;
    color: #e5e7eb !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: #fff !important;
    font-weight: 700 !important;
}

a {
    color: #d4af37;
    transition: all 0.3s ease;
}

a:hover, a:focus {
    color: #fff;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

hr {
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* --- 2. HEADER & NAVIGATION (Fallback for default Six header) --- */
section#header {
    background: #050505;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

section#main-menu {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar-main {
    background-color: transparent !important;
    border: none !important;
}

.navbar-main .navbar-nav > li > a {
    color: #d1d5db !important;
    font-weight: 500;
}

.navbar-main .navbar-nav > li > a:hover {
    color: #d4af37 !important;
}

.navbar-main .navbar-nav > .active > a, 
.navbar-main .navbar-nav > .active > a:hover, 
.navbar-main .navbar-nav > .active > a:focus,
.navbar-main .navbar-nav > .open > a, 
.navbar-main .navbar-nav > .open > a:hover, 
.navbar-main .navbar-nav > .open > a:focus {
    background-color: rgba(255,255,255,0.05) !important;
    color: #d4af37 !important;
}

.dropdown-menu {
    background-color: #111 !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8) !important;
}

.dropdown-menu > li > a {
    color: #ccc !important;
}

.dropdown-menu > li > a:hover {
    background-color: rgba(212,175,55,0.1) !important;
    color: #d4af37 !important;
}

/* --- 3. GLASSMORPHISM PANELS & CARDS --- */
.panel, .well, .login-container, .client-home-panels .panel {
    background-color: rgba(20, 20, 20, 0.6) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
    border-radius: 12px !important;
    color: #e5e7eb !important;
}

.panel-default > .panel-heading, 
.panel-sidebar > .panel-heading,
.panel-heading {
    background-color: rgba(255,255,255,0.03) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    color: #fff !important;
    border-radius: 12px 12px 0 0 !important;
    font-weight: 700;
}

.panel-body, .well {
    background-color: transparent !important;
}

.panel-footer {
    background-color: rgba(255,255,255,0.02) !important;
    border-top: 1px solid rgba(255,255,255,0.05) !important;
    border-radius: 0 0 12px 12px !important;
}

/* --- 4. FORM CONTROLS & INPUTS --- */
.form-control {
    background-color: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    height: 44px !important;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #d4af37 !important;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15) !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
}

.form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control {
    background-color: rgba(255, 255, 255, 0.03) !important;
    color: #888 !important;
}

.input-group-addon {
    background-color: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #ccc !important;
}

/* --- 5. BUTTONS --- */
.btn-primary, .btn-action, .btn-success {
    background: linear-gradient(135deg, #d4af37 0%, #b5952f 100%) !important;
    border: none !important;
    color: #000 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.05em !important;
    padding: 10px 24px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2) !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover, .btn-primary:focus, 
.btn-action:hover, .btn-action:focus,
.btn-success:hover, .btn-success:focus {
    background: linear-gradient(135deg, #f3e5ab 0%, #d4af37 100%) !important;
    color: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4) !important;
}

.btn-default, .btn-info, .btn-warning, .btn-danger {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.btn-default:hover, .btn-info:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #d4af37 !important;
    color: #d4af37 !important;
}

/* --- 6. SIDEBARS & LIST GROUPS --- */
.list-group-item {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #bbb !important;
    transition: all 0.2s ease;
}

.list-group-item.active, 
.list-group-item.active:hover, 
.list-group-item.active:focus {
    background-color: rgba(212, 175, 55, 0.1) !important;
    border-left: 3px solid #d4af37 !important;
    border-color: transparent !important;
    color: #d4af37 !important;
    font-weight: 700 !important;
}

a.list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.03) !important;
    color: #fff !important;
    padding-left: 20px !important; /* Slide effect */
}

/* --- 7. TABLES & DATA --- */
.table {
    color: #d1d5db !important;
    background: transparent !important;
}
.table thead th {
    background-color: rgba(255,255,255,0.03) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    color: #d4af37 !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}
.table tbody td {
    border-top: 1px solid rgba(255,255,255,0.05) !important;
}
.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(255,255,255,0.02) !important;
}
.table-hover > tbody > tr:hover {
    background-color: rgba(212, 175, 55, 0.05) !important;
}
.dataTables_wrapper { color: #ccc !important; }
.dataTables_info { color: #888 !important; }

/* Pagination */
.pagination > li > a, .pagination > li > span {
    background-color: rgba(20,20,20,0.8) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #aaa !important;
}
.pagination > .active > a, .pagination > .active > span {
    background-color: #d4af37 !important;
    border-color: #d4af37 !important;
    color: #000 !important;
    font-weight: bold;
}
.pagination > li > a:hover {
    background-color: rgba(255,255,255,0.1) !important;
    color: #fff !important;
}

/* --- 8. MODALS & ALERTS --- */
.modal-content {
    background-color: #111 !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 16px !important;
    backdrop-filter: blur(15px);
}
.modal-header { border-bottom: 1px solid rgba(255,255,255,0.08) !important; }
.modal-footer { border-top: 1px solid rgba(255,255,255,0.08) !important; }
.close { color: #fff !important; text-shadow: none !important; opacity: 0.5; }
.close:hover { opacity: 1; }

.alert {
    border: none !important;
    border-radius: 8px !important;
    color: #fff !important;
    backdrop-filter: blur(5px);
}
.alert-success { background-color: rgba(34, 197, 94, 0.2) !important; border-left: 4px solid #22c55e !important; }
.alert-info { background-color: rgba(59, 130, 246, 0.2) !important; border-left: 4px solid #3b82f6 !important; }
.alert-warning { background-color: rgba(234, 179, 8, 0.2) !important; border-left: 4px solid #eab308 !important; }
.alert-danger { background-color: rgba(239, 68, 68, 0.2) !important; border-left: 4px solid #ef4444 !important; }

/* --- 9. DASHBOARD HOME TILES (Override for clientareahome.tpl fallback) --- */
.tiles .tile {
    background-color: rgba(20,20,20,0.8) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    color: #fff !important;
    border-radius: 16px !important;
    transition: all 0.3s ease;
}
.tiles .tile:hover {
    transform: translateY(-5px);
    border-color: #d4af37 !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.tiles .tile .icon { color: rgba(255,255,255,0.3) !important; }
.tiles .tile .stat { color: #fff !important; font-weight: 700; text-shadow: none !important; }
.tiles .tile .title { color: #9ca3af !important; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px;}

/* --- 10. SHOPPING CART FIXES --- */
#order-standard_cart .cart-sidebar {
    background-color: rgba(20,20,20,0.8) !important;
}
#order-standard_cart .order-summary {
    background-color: #0a0a0a !important;
    border: 1px solid rgba(212,175,55,0.3) !important;
    border-radius: 12px;
}
#order-standard_cart .product-info {
    background-color: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
    border-radius: 8px;
}