/* XyronHosting Panel - Core Design System & Styling */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0284c7;
    --primary-rgb: 2, 132, 199;
    --secondary: #06b6d4;
    --secondary-rgb: 6, 182, 212;
    --font-family: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
    
    /* Solid Dark Theme (Virtualizor Style) */
    --bg-color: #121822;
    --card-bg: #1c232f;
    --card-border: #293445;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #293445;
    --sidebar-bg: #161c24;
    --input-bg: #121822;
    --input-border: #293445;
    --input-focus-border: rgba(6, 182, 212, 0.5);
    --btn-text: #ffffff;
    --glass-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-hover-border: rgba(6, 182, 212, 0.3);
}

[data-theme="light"] {
    /* Light Theme */
    --bg-color: #f1f5f9;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --text-color: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --sidebar-bg: #ffffff;
    --input-bg: #ffffff;
    --input-border: #cbd5e1;
    --input-focus-border: rgba(2, 132, 199, 0.5);
    --btn-text: #ffffff;
    --glass-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --card-hover-border: rgba(2, 132, 199, 0.3);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background Gradients */
.bg-gradient-mesh {
    display: none; /* Removed mesh gradient for solid look */
}

/* Glassmorphism styling classes (Converted to Solid for Virtualizor Theme) */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px; /* Tighter border radius */
    box-shadow: var(--glass-shadow);
    transition: transform 0.2s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
    border-color: var(--card-hover-border);
}

.glass-modal .modal-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    box-shadow: var(--glass-shadow);
    color: var(--text-color);
}

/* Typography & Layout */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-muted-custom {
    color: var(--text-muted);
}

/* Form inputs styling */
.form-control, .form-select {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-color);
    border-radius: 8px;
    padding: 10px 14px;
    backdrop-filter: blur(4px);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-control:focus, .form-select:focus {
    background-color: var(--input-bg);
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18);
    color: var(--text-color);
}
.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    border: none;
    color: var(--btn-text);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary-custom:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
    color: var(--btn-text);
}
.btn-primary-custom:active {
    transform: translateY(1px);
}

/* Sidebar Layout */
.sidebar-panel {
    background: var(--sidebar-bg);
    border-right: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    z-index: 1000;
    padding: 24px;
    transition: transform 0.3s ease;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 8px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.sidebar-nav-link i {
    font-size: 1.15rem;
    margin-right: 14px;
}
.sidebar-nav-link:hover, .sidebar-nav-link.active {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
}

.main-content {
    margin-left: 260px;
    padding: 40px;
    min-height: 100vh;
}

@media (max-width: 991px) {
    .sidebar-panel {
        transform: translateX(-100%);
    }
    .sidebar-panel.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        padding: 24px;
    }
}

/* Beautiful Status Lights */
.status-indicator {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 20px;
}
.status-online {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.status-online::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 8px #10b981;
    animation: pulse-green 2s infinite;
}

.status-offline {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.status-offline::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    margin-right: 6px;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Custom Table Styles */
.table-custom {
    color: var(--text-color);
}
.table-custom th {
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-color);
    padding: 16px;
}
.table-custom td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}
.table-custom tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Toast Notifications styling */
.toast-container-custom {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
}
.toast-custom {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    min-width: 300px;
    box-shadow: var(--glass-shadow);
    display: flex;
    align-items: center;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast-custom.show {
    transform: translateX(0);
}
.toast-custom-success {
    border-left: 4px solid #10b981;
}
.toast-custom-error {
    border-left: 4px solid #ef4444;
}

/* Loading animations */
.spinner-custom {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(2, 132, 199, 0.1);
    border-radius: 50%;
    border-top-color: var(--secondary);
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.stat-card-icon {
    font-size: 2.2rem;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 10px;
    border-radius: 10px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 182, 212, 0.3);
}

/* Virtualizor Theme Specific UI Components */
.vps-nav-pill {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    margin-right: 8px;
    margin-bottom: 8px;
}
.vps-nav-pill:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-color);
}
.vps-nav-pill.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(2, 132, 199, 0.05);
}

.table-vps {
    width: 100%;
    border-collapse: collapse;
}
.table-vps th, .table-vps td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    vertical-align: middle;
}
.table-vps th {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-color);
}
.table-vps tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.os-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    height: 100%;
}
.os-card:hover, .os-card.selected {
    border-color: var(--primary);
    background: var(--card-bg);
}
.os-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    object-fit: contain;
}
.os-card-title {
    font-weight: 600;
    margin-bottom: 8px;
}
