/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Approval Modal */
.approval-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(2, 6, 23, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    overflow-y: auto;
}

.approval-modal {
    background-color: var(--card-bg);
    max-width: 600px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    animation: fade-in 0.3s ease-out;
}

@keyframes fade-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.approval-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.approval-modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: white;
}

.approval-modal-body {
    padding: 24px;
    text-align: center;
}

.approval-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
}

.approval-modal-body p {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.interest-summary {
    margin-top: 20px;
    padding: 16px;
    background-color: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    text-align: left;
}

.interest-summary p {
    margin-bottom: 8px;
}

.platform-interest-form {
    margin-top: 20px;
    text-align: left;
    background-color: rgba(99, 102, 241, 0.05);
    padding: 16px;
    border-radius: 8px;
}

.platform-interest-form h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    font-size: 14px;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}

.approval-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

/* SLYD Starry Background Component - Core Styles */
/* Base Variables */
/* ============================================================================
   BACKWARD-COMPATIBLE VARIABLE ALIASES
   ============================================================================
   These variables now reference the unified design tokens from DesignTokens.css
   (loaded from SLYD.Components package).

   This allows all existing platform CSS to work without changes while using
   the new unified design system with Cyan primary color.
   ============================================================================ */
:root {
    /* Primary Color Aliases */
    --primary: var(--slyd-primary);                      /* Cyan hsl(186, 94%, 43%) */
    --primary-dark: var(--slyd-primary-dark);
    --primary-color-start: var(--slyd-primary);          /* For gradients */
    --primary-color-end: var(--slyd-primary-dark);       /* For gradients */

    /* Secondary/Tertiary Color Aliases */
    --secondary: var(--slyd-secondary);                  /* Emerald */
    --secondary-color: var(--slyd-secondary);
    --tertiary: var(--slyd-accent-pink);                 /* Pink accent */
    --tertiary-color: var(--slyd-accent-pink);

    /* Background Color Aliases */
    --bg-dark: var(--slyd-bg-body);                      /* #020617 */
    --bg-darker: var(--slyd-bg-dark);                    /* #0F172A */
    --dark: var(--slyd-bg-dark);                         /* #0F172A */
    --darker: var(--slyd-bg-body);                       /* #020617 */
    --card-bg: var(--slyd-bg-card);                      /* rgba(15, 23, 42, 0.6) */

    /* Text Color Aliases */
    --light: var(--slyd-text-primary);                   /* #F8FAFC */
    --light-text: var(--slyd-text-primary);              /* #F8FAFC */

    /* Semantic Color Aliases */
    --success: var(--slyd-success);                      /* Green */
    --error: var(--slyd-danger);                         /* Red (error = danger) */
    --warning: var(--slyd-warning);                      /* Amber */
    --danger: var(--slyd-danger);                        /* Red */
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header styles */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 60px;
    position: relative;
    z-index: 100;
    margin-bottom: 10px;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--light-text);
    position: relative;
}

h1, h2, h3, h4, h5 {
    font-family: 'Space Grotesk', sans-serif;
}

/* ======================================
 * PARTICLES.JS BACKGROUND
 * ======================================
 */

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#particles-js canvas.particles-js-canvas-el {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Gradient text style */
.gradient-text {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-neutral {
    background-color: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.badge-primary {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color-start), var(--primary-color-end));
    color: white;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-success {
    background: var(--secondary);
    color: white;
}

.btn-success:hover {
    opacity: 0.9;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-warning:hover {
    opacity: 0.9;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    opacity: 0.9;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.primary-button, .button-icon, .btn-icon {
    margin-right: 8px;
}

/* Action button */
.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    white-space: nowrap;
}

.primary-button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    opacity: 0.9;
}

.secondary-button {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(128, 128, 128, 0.1);
    opacity: 0.9;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: right;
    margin-top: 20px;
    margin-bottom: 16px;
}

.pagination-info {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.pagination-controls {
    display: flex;
    gap: 8px;
}

.page-button, .pagination-item {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-button:hover, .pagination-item:hover:not(.active) {
    background: rgba(255, 255, 255, 0.15);
}

.page-button.active, .pagination-item.active {
    background: var(--primary);
    color: white;
}

/* Fixed layout structure */
.dashboard-layout {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Sidebar with fixed width */
.sidebar {
    width: 280px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    z-index: 10;
    overflow-y: auto;
}

/* Main content container */
.main-content {
    flex-grow: 1;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    background-color: transparent;
    position: relative;
}

/* Sidebar styling */
.sidebar-logo {
    padding: 24px;
    font-size: 24px;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-profile {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-img {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #6366F1, #4F46E5);
    border-radius: 50%;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-section {
    padding: 16px 0;
}

.menu-header {
    padding: 8px 24px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-item {
    padding: 10px 24px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.menu-item.active {
    background-color: rgba(79, 70, 229, 0.15);
    color: #6366F1;
    border-left-color: #6366F1;
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.menu-icon {
    width: 20px;
    margin-right: 12px;
    text-align: center;
}

/* Dropdown menu */
.dropdown-content {
    display: none;
    padding-left: 30px;
}

.dropdown-content.active {
    display: block;
}

.dropdown-item {
    padding: 8px 0 8px 24px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    display: block;
    transition: all 0.2s ease;
    position: relative;
}

.dropdown-item:hover {
    color: #6366F1;
    background-color: rgba(255, 255, 255, 0.05);
}

.dropdown-item.active {
    color: #6366F1;
    background-color: rgba(79, 70, 229, 0.15);
    border-left: 3px solid #6366F1;
    font-weight: 500;
}

.dropdown-item.active:before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #6366F1;
}

.dropdown-toggle {
    cursor: pointer;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    margin-bottom: 24px;
    height: auto; /* Ensure proper height calculation */
    min-height: 0; /* Reset any min-height */
}

.two-column-row {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 1400px) {
    .stats-grid, .stats-cards-grid, .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .two-column-grid {
        grid-template-columns: 1fr;
    }

    .two-column-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1401px) and (max-width: 1700px) {
    .stats-grid, .stats-cards-grid, .stats-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid, .stats-cards-grid, .metrics-grid, .stats-cards {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .stats-grid, .stats-cards-grid, .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stats-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    position: relative;
    height: 100%;
}

.stats-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.stats-icon.primary {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(79, 70, 229, 0.2));
    color: var(--primary);
}

.stats-icon.secondary {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    color: var(--secondary);
}

.stats-icon.tertiary {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(219, 39, 119, 0.2));
    color: var(--tertiary);
}

.stats-icon.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.stats-icon.danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.stat-card {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-title {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}
.stat-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}
.stat-change {
    font-size: 13px;
}
.stat-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* New container for stats cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
    width: 100%;
}

@media (max-width: 1400px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.2);
    color: var(--secondary);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-neutral {
    background-color: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

/*Progress bar*/
.metric-group, .time-progress {
    margin-bottom: 12px;
}

.metric-label, .progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 4px;
}

.metric-label-text, .progress-label {
    color: rgba(255, 255, 255, 0.7);
}

.metric-value {
    color: white;
    font-weight: 500;
}

.progress-container {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 8px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
}

.progress-bar.warning {
    background: linear-gradient(90deg, var(--warning), #fdba74);
}

.progress-bar.danger {
    background: linear-gradient(90deg, var(--danger), #fca5a5);
}

/* Hardware status items */
.hardware-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.3);
    padding: 20px 16px;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hardware-item:hover {
    background: rgba(15, 23, 42, 0.5);
}

.hardware-item:last-child {
    margin-bottom: 0;
}

.hardware-details {
    display: flex;
    align-items: center;
}

.hardware-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

/* Activity feed */
.activity-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.activity-icon.primary {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.activity-icon.secondary {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
}

.activity-icon.warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

/* Utils */
.gradient-text {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-header {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    max-width: 800px;
}

.text-up {
    color: var(--secondary);
}

.text-down {
    color: #ef4444;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subtitle {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.text-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.text-link:hover {
    text-decoration: underline;
}

/* Right column layout */
.right-column {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Insights cards */
.insights-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.insights-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.insights-title {
    font-size: 18px;
    font-weight: 600;
}

.insights-period {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.insights-item {
    margin-bottom: 16px;
}

.insights-item:last-child {
    margin-bottom: 0;
}

.insights-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.insights-item-title {
    font-weight: 500;
}

.insights-item-value {
    color: var(--primary);
}

.insights-item-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

/* Server status grid */
.server-status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 1200px) {
    .server-status-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .server-status-grid {
        grid-template-columns: 1fr;
    }
}

/* Performance metrics */
/*.metric-card {*/
/*    background-color: var(--card-bg);*/
/*    border-radius: 12px;*/
/*    padding: 16px;*/
/*    height: 100%;*/
/*}*/

.metric-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Footer cards */
.footer-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #F8FAFC;
}

.footer-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.footer-card a {
    color: #6366F1;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.footer-card a:hover {
    text-decoration: underline;
}

/* Fix for the gap issue - ensure all cards have consistent height */
.right-column-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.performance-insights {
    margin-bottom: 24px;
    flex-grow: 1;
}

.recent-activities {
    flex-grow: 1;
}

/* Make sure each row has properly aligned heights */
.row-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Make sure card headers have consistent styling */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
}

.server-status {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.server-status-title {
    margin-bottom: 16px;
}

/* Status colors */

.status-active, .status-running, .status-paid, .status-success, .status-completed,
.badge-success, .status-open {
    background-color: rgba(16, 185, 129, 0.2);
    color: var(--secondary);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-maintenance, .status-pending, .status-processing, .status-warning, .status-early,
.badge-warning, .status-in-progress {
    background-color: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-inactive, .status-failed, .status-error, .status-closed,
.badge-danger {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-neutral, .badge-gray {
    background-color: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Equal height container */
.equal-height-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.equal-height-item {
    flex: 1;
}

/* Tooltip components */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    margin-left: 6px;
    cursor: help;
}

.tooltip-text {
    visibility: hidden;
    width: 220px;
    background-color: rgba(15, 23, 42, 0.95);
    color: white;
    text-align: left;
    border-radius: 8px;
    padding: 10px 12px;
    position: absolute;
    z-index: 1;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    line-height: 1.5;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(15, 23, 42, 0.95) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Dashboard cards and components */
.dashboard-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

/* Chart tooltip styles */
.chart-tooltip {
    background: rgba(15, 23, 42, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    color: white !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* Status indicator */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}
.status-indicator.active {
    background-color: #10B981;
}
.status-indicator.completed {
    background-color: #94a3b8;
}
.status-indicator.cancelled {
    background-color: #ef4444;
}

/* Utility classes */
.flex-center {
    display: flex;
    align-items: center;
}

.flex-wrap {
    display: flex;
    flex-wrap: wrap;
}

/* Button tooltip */
.btn-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    width: max-content;
    max-width: 200px;
    text-align: center;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
}

.btn-tooltip:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(15, 23, 42, 0.95) transparent transparent transparent;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--dark);
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Common form elements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: rgba(15, 23, 42, 0.8);
}

.form-select {
    width: 100%;
    padding: 10px 12px;
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff' width='18px' height='18px'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all 0.2s ease;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: rgba(15, 23, 42, 0.8);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-radio-group {
    display: flex;
    gap: 16px;
}

.form-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.form-radio {
    margin-right: 8px;
}

/* Config display - read-only info display styled like form inputs */
.config-display {
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.config-display i {
    color: var(--primary);
}

/* Resource slider - commonly used across platform */
.resource-slider {
    width: 100%;
    margin: 8px 0;
}

.resource-range {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Empty state styling for platform-wide use */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.2);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    max-width: 500px;
}

/* Sidebar wallet card styles */
.sidebar-wallet {
    margin: 16px 24px;
    padding: 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 12px;
}

.sidebar-wallet-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.sidebar-wallet-balance {
    font-family: 'Space Grotesk', monospace;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Sidebar footer */
.sidebar-footer {
    margin-top: auto;
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Bottom spacer */
.bottom-spacer {
    height: 100px;
    margin-bottom: 40px;
}

/* Filter controls */
.filter-controls {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.filter-control {
    position: relative;
}
.filter-input {
    background-color: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    min-width: 180px;
}
.filter-input:focus {
    outline: none;
    border-color: var(--primary);
}
.filter-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
    display: block;
}

/* Instance cards (unique to this page) */
.instance-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}
.instance-card {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    justify-content: flex-start;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.instance-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}
.instance-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}
.instance-header-left {
    display: flex;
    align-items: center;
}
.instance-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
    font-size: 20px;
    margin-right: 16px;
    flex-shrink: 0;
}
.instance-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 2px;
}
.instance-id {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}
.instance-type {
    background: rgba(16, 185, 129, 0.2);
    color: var(--secondary);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: inline-block;
    margin-top: 6px;
}
.instance-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    height: fit-content;
}
.instance-badge {
    position: absolute;
    top: -8px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
}
.instance-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
}
.detail-item {
    margin-bottom: 8px;
}
.detail-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2px;
}
.detail-value, .progress-time {
    font-size: 14px;
    font-weight: 500;
}

/* Instance actions */
.instance-actions {
    display: flex;
    gap: 8px;
}

/* Instance footer and revenue info */
.instance-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}
.revenue-info {
    display: flex;
    flex-direction: column;
}
.revenue-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2px;
}
.revenue-value {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}
.revenue-rate {
    font-size: 12px;
    color: var(--secondary);
}

/* action icons */

.action-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.action-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.action-icon.primary {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
}

.action-icon.primary:hover {
    background: rgba(99, 102, 241, 0.3);
}

.action-icon.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.action-icon.warning:hover {
    background: rgba(245, 158, 11, 0.3);
}

.action-icon.danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.action-icon.danger:hover {
    background: rgba(239, 68, 68, 0.3);
}
/* ================================
   Support Ticket Styles
   ================================ */

/* Ticket Item Card */
.ticket-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ticket-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ticket-priority {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.priority-high {
    background-color: #EF4444;
}

.priority-medium {
    background-color: #FBBF24;
}

.priority-low {
    background-color: #10B981;
}

.ticket-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-primary {
    background: rgba(99, 102, 241, 0.15);
    color: #818CF8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-warning {
    background: rgba(251, 191, 36, 0.15);
    color: #FBBF24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Filter Chips */
.filter-chips {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.filter-chip:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.filter-chip.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    color: #818CF8;
}

/* Search Bar */
.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: white;
    font-size: 14px;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
}

/* Support Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    width: 600px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.open .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-weight: 600;
    font-size: 18px;
    color: white;
}

.modal-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Form Elements for Tickets */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}
