/**
 * KBilling WHMCS "Twenty-One" / "Six" Iconic Theme Stylesheet
 */

:root {
    --whmcs-navy-dark: #0e2238;
    --whmcs-navy-primary: #12304d;
    --whmcs-navy-light: #1c466e;
    --whmcs-blue: #0066cc;
    --whmcs-blue-hover: #0052a3;
    --whmcs-teal: #17a2b8;
    --whmcs-bg: #f4f6f9;
    --whmcs-card-bg: #ffffff;
    --whmcs-border: #e2e8f0;
    --whmcs-text-main: #2b3b4c;
    --whmcs-text-muted: #6c757d;
    --whmcs-green: #2fb344;
    --whmcs-orange: #fd7e14;
    --whmcs-yellow: #f59f00;
    --whmcs-red: #d63939;
    --whmcs-radius: 8px;
    --whmcs-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --whmcs-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
}

body {
    background-color: var(--whmcs-bg);
    color: var(--whmcs-text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* ---------------- Top Utility Bar ---------------- */
.whmcs-topbar {
    background-color: var(--whmcs-navy-dark);
    color: #cbd5e1;
    font-size: 0.8125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 0;
}

.whmcs-topbar a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

.whmcs-topbar a:hover {
    color: #ffffff;
}

.whmcs-topbar .dropdown-toggle::after {
    vertical-align: 0.15em;
    margin-left: 0.3em;
}

.whmcs-topbar .dropdown-menu {
    font-size: 0.8125rem;
    box-shadow: var(--whmcs-shadow-lg);
    border: 1px solid var(--whmcs-border);
    border-radius: var(--whmcs-radius);
}

.whmcs-topbar .badge-cart {
    background-color: var(--whmcs-green);
    color: white;
    font-size: 0.7rem;
    padding: 0.2em 0.5em;
    border-radius: 10px;
    margin-left: 4px;
}

.whmcs-topbar .badge-notif {
    background-color: var(--whmcs-red);
    color: white;
    font-size: 0.7rem;
    padding: 0.2em 0.5em;
    border-radius: 10px;
    margin-left: 4px;
}

/* ---------------- Primary Navigation Bar ---------------- */
.whmcs-navbar {
    background-color: var(--whmcs-navy-primary);
    box-shadow: 0 4px 12px rgba(14, 34, 56, 0.15);
    padding: 0;
}

.whmcs-navbar .navbar-brand {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    padding: 14px 0;
}

.whmcs-navbar .navbar-brand i {
    color: #38bdf8;
    margin-right: 8px;
    font-size: 1.5rem;
}

.whmcs-navbar .nav-link {
    color: #e2e8f0 !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 16px 14px !important;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    border-bottom: 3px solid transparent;
}

.whmcs-navbar .nav-link i {
    margin-right: 6px;
    font-size: 1rem;
    opacity: 0.85;
}

.whmcs-navbar .nav-link:hover,
.whmcs-navbar .nav-item.active .nav-link,
.whmcs-navbar .show > .nav-link {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.08);
    border-bottom-color: #38bdf8;
}

.whmcs-navbar .dropdown-menu {
    border-radius: 0 0 var(--whmcs-radius) var(--whmcs-radius);
    border: none;
    box-shadow: var(--whmcs-shadow-lg);
    padding: 8px 0;
    margin-top: 0;
    font-size: 0.875rem;
}

.whmcs-navbar .dropdown-item {
    padding: 8px 18px;
    color: var(--whmcs-text-main);
    display: flex;
    align-items: center;
}

.whmcs-navbar .dropdown-item i {
    margin-right: 10px;
    width: 18px;
    color: var(--whmcs-navy-light);
    opacity: 0.8;
}

.whmcs-navbar .dropdown-item:hover {
    background-color: #f1f5f9;
    color: var(--whmcs-blue);
}

.whmcs-navbar .dropdown-item:hover i {
    color: var(--whmcs-blue);
    opacity: 1;
}

.btn-open-ticket {
    background-color: var(--whmcs-green);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.825rem;
    border-radius: 20px;
    padding: 6px 16px;
    display: inline-flex;
    align-items: center;
    border: none;
    transition: background-color 0.2s;
}

.btn-open-ticket:hover {
    background-color: #249637;
    color: #ffffff !important;
}

/* ---------------- Breadcrumb Navigation ---------------- */
.whmcs-breadcrumb-bar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--whmcs-border);
    padding: 10px 0;
    margin-bottom: 24px;
}

.whmcs-breadcrumb {
    margin-bottom: 0;
    font-size: 0.85rem;
}

.whmcs-breadcrumb .breadcrumb-item a {
    color: var(--whmcs-navy-light);
    text-decoration: none;
}

.whmcs-breadcrumb .breadcrumb-item a:hover {
    color: var(--whmcs-blue);
    text-decoration: underline;
}

.whmcs-breadcrumb .breadcrumb-item.active {
    color: var(--whmcs-text-muted);
    font-weight: 500;
}

/* ---------------- WHMCS 4 Hero Metric Tiles ---------------- */
.whmcs-tile-card {
    border-radius: var(--whmcs-radius);
    color: #ffffff;
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--whmcs-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none !important;
    display: block;
}

.whmcs-tile-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--whmcs-shadow-lg);
    color: #ffffff;
}

.whmcs-tile-services {
    background: linear-gradient(135deg, #1877f2 0%, #0d5cb6 100%);
}

.whmcs-tile-domains {
    background: linear-gradient(135deg, #2fb344 0%, #1e822e 100%);
}

.whmcs-tile-tickets {
    background: linear-gradient(135deg, #fd7e14 0%, #d85c00 100%);
}

.whmcs-tile-invoices {
    background: linear-gradient(135deg, #f59f00 0%, #c67c00 100%);
}

.whmcs-tile-card .tile-icon {
    position: absolute;
    right: 15px;
    bottom: 10px;
    font-size: 4rem;
    opacity: 0.22;
    transition: opacity 0.2s;
}

.whmcs-tile-card:hover .tile-icon {
    opacity: 0.35;
}

.whmcs-tile-card .tile-count {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 4px;
}

.whmcs-tile-card .tile-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.whmcs-tile-card .tile-footer {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.775rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.95;
}

/* ---------------- WHMCS Sidebar Panels ---------------- */
.whmcs-panel {
    background: #ffffff;
    border: 1px solid var(--whmcs-border);
    border-radius: var(--whmcs-radius);
    box-shadow: var(--whmcs-shadow);
    margin-bottom: 24px;
    overflow: hidden;
}

.whmcs-panel-header {
    background-color: #f8fafc;
    border-bottom: 1px solid var(--whmcs-border);
    padding: 12px 18px;
    font-size: 0.925rem;
    font-weight: 700;
    color: var(--whmcs-navy-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.whmcs-panel-header i {
    color: var(--whmcs-navy-light);
    margin-right: 8px;
}

.whmcs-panel-body {
    padding: 18px;
}

/* User Info Sidebar */
.user-avatar-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--whmcs-navy-light) 0%, var(--whmcs-blue) 100%);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.25);
}

.user-quick-info {
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--whmcs-border);
}

.user-quick-info h6 {
    font-weight: 700;
    margin-bottom: 2px;
}

.user-quick-info .user-email {
    font-size: 0.8rem;
    color: var(--whmcs-text-muted);
    word-break: break-all;
}

.whmcs-info-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    font-size: 0.835rem;
}

.whmcs-info-list li {
    padding: 6px 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #eef2f6;
}

.whmcs-info-list li:last-child {
    border-bottom: none;
}

.whmcs-info-list .info-label {
    color: var(--whmcs-text-muted);
}

.whmcs-info-list .info-value {
    font-weight: 600;
    color: var(--whmcs-text-main);
}

/* Quick Actions List Group */
.whmcs-action-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: var(--whmcs-text-main);
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.whmcs-action-item i {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 0.95rem;
}

.whmcs-action-item:hover {
    background-color: #f1f5f9;
    color: var(--whmcs-blue);
    transform: translateX(3px);
}

/* ---------------- cPanel Quick Shortcuts ---------------- */
.cpanel-shortcut-card {
    background: #ffffff;
    border: 1px solid var(--whmcs-border);
    border-radius: var(--whmcs-radius);
    padding: 16px 12px;
    text-align: center;
    color: var(--whmcs-text-main);
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cpanel-shortcut-card:hover {
    border-color: #38bdf8;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.12);
    transform: translateY(-2px);
    color: var(--whmcs-blue);
}

.cpanel-shortcut-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background-color: #f0f7ff;
    color: var(--whmcs-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.cpanel-shortcut-card:hover .cpanel-shortcut-icon {
    background-color: var(--whmcs-blue);
    color: #ffffff;
}

.cpanel-shortcut-title {
    font-size: 0.825rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.cpanel-shortcut-desc {
    font-size: 0.725rem;
    color: var(--whmcs-text-muted);
}

/* ---------------- Domain Hub Tabs ---------------- */
.whmcs-domain-tabs .nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--whmcs-navy-light);
    border: 1px solid transparent;
    padding: 12px 20px;
    border-radius: var(--whmcs-radius) var(--whmcs-radius) 0 0;
}

.whmcs-domain-tabs .nav-link.active {
    color: var(--whmcs-blue);
    background-color: #ffffff;
    border-color: var(--whmcs-border) var(--whmcs-border) #ffffff;
}

.whmcs-domain-tabs .nav-link i {
    margin-right: 6px;
}

.domain-auth-box {
    background: #0f172a;
    color: #38bdf8;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 1.1rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ---------------- Knowledgebase & Announcements ---------------- */
.whmcs-search-banner {
    background: linear-gradient(135deg, var(--whmcs-navy-dark) 0%, var(--whmcs-navy-primary) 100%);
    color: white;
    padding: 40px 20px;
    border-radius: var(--whmcs-radius);
    text-align: center;
    margin-bottom: 30px;
}

.kb-cat-card {
    background: white;
    border: 1px solid var(--whmcs-border);
    border-radius: var(--whmcs-radius);
    padding: 20px;
    transition: all 0.2s ease;
    text-decoration: none !important;
    color: var(--whmcs-text-main);
    display: block;
    height: 100%;
}

.kb-cat-card:hover {
    border-color: var(--whmcs-blue);
    box-shadow: var(--whmcs-shadow-lg);
    transform: translateY(-2px);
    color: var(--whmcs-blue);
}

.kb-cat-icon {
    font-size: 2rem;
    color: var(--whmcs-blue);
    margin-bottom: 12px;
}

.announcement-card {
    background: white;
    border: 1px solid var(--whmcs-border);
    border-radius: var(--whmcs-radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--whmcs-shadow);
}

.announcement-date-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.775rem;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* ---------------- Network Server Status ---------------- */
.status-pill {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}

.status-pill.online {
    background-color: #dcfce7;
    color: #15803d;
}

.status-pill.offline {
    background-color: #fee2e2;
    color: #b91c1c;
}

.status-pill.warning {
    background-color: #fef3c7;
    color: #b45309;
}

.status-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    display: inline-block;
}

.status-pill.online .status-pulse {
    background-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.4);
}

/* ---------------- Modern Tables ---------------- */
.whmcs-table thead th {
    background-color: #f8fafc;
    color: var(--whmcs-navy-dark);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--whmcs-border);
    padding: 12px 16px;
}

.whmcs-table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}

.whmcs-table tbody tr:hover {
    background-color: #f8fafc;
}

/* ---------------- WHMCS Footer ---------------- */
.whmcs-footer {
    background-color: var(--whmcs-navy-dark);
    color: #94a3b8;
    margin-top: auto;
    font-size: 0.875rem;
    border-top: 3px solid var(--whmcs-blue);
}

.whmcs-footer h6 {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.925rem;
    margin-bottom: 16px;
}

.whmcs-footer ul {
    list-style: none;
    padding-left: 0;
}

.whmcs-footer ul li {
    margin-bottom: 8px;
}

.whmcs-footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s;
}

.whmcs-footer a:hover {
    color: #ffffff;
}

.whmcs-sub-footer {
    background-color: #081524;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 0;
    font-size: 0.8125rem;
    color: #64748b;
}
