/* Theme Variables */
:root {
    /* Dark Theme (Default) */
    --brand-primary: #06B6D4;
    --brand-secondary: #8B5CF6;
    --brand-accent: #EC4899;
    --logo-bg: #06B6D4;
    --logo-accent: #8B5CF6;
    
    --bg-dark: #0F172A;
    --bg-card: #1E293B;
    --bg-element: #334155;
    --bg-overlay: rgba(15, 23, 42, 0.8);
    
    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --text-tertiary: #94A3B8;
    
    --border-color: #475569;
    --shadow-color: rgba(0, 0, 0, 0.25);
    
    /* Status Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
    --neutral: #9CA3AF;
    
    /* Provider Colors */
    --provider-hetzner: #F43F5E;
    --provider-contabo: #0EA5E9;
    --provider-proxmox: #FBBF24;
    
    /* Animation */
    --transition-speed: 0.2s;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
}

/* Light Theme Variables */
body.light-theme {
    --brand-primary: #0891B2;
    --brand-secondary: #7C3AED;
    --brand-accent: #DB2777;
    --logo-bg: #0891B2;
    --logo-accent: #7C3AED;
    
    --bg-dark: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-element: #F1F5F9;
    --bg-overlay: rgba(248, 250, 252, 0.8);
    
    --text-primary: #0F172A;
    --text-secondary: #334155;
    --text-tertiary: #64748B;
    
    --border-color: #E2E8F0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    
    /* Status Colors - Adjusted for light theme */
    --success: #059669;
    --warning: #B45309;
    --error: #B91C1C;
    --info: #2563EB;
    --neutral: #6B7280;
    
    /* Provider Colors - Adjusted for light theme */
    --provider-hetzner: #BE123C;
    --provider-contabo: #0369A1;
    --provider-proxmox: #B45309;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

input {
    font-family: inherit;
    border: none;
    outline: none;
}

/* Global Header */
.global-header {
    display: flex;
    align-items: center;
    height: 64px;
    padding: 0 1.5rem;
    background-color: var(--bg-card);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    box-shadow: 0 1px 3px var(--shadow-color);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.25rem;
    background-color: var(--bg-element);
    border-radius: var(--radius-md);
    transition: all var(--transition-speed);
}

.nav-toggle:hover {
    color: var(--text-primary);
    background-color: var(--bg-element);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.search-bar {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.search-bar input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    background-color: var(--bg-element);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    transition: all var(--transition-speed);
}

.search-bar i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    pointer-events: none;
}

.search-bar input:focus {
    box-shadow: 0 0 0 2px var(--brand-primary);
}

.search-bar input::placeholder {
    color: var(--text-tertiary);
}

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

/* Theme Toggle */
.theme-toggle {
    position: relative;
    width: 48px;
    height: 24px;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-element);
    transition: .4s;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.35rem;
}

.theme-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--brand-primary);
    transition: .4s;
    border-radius: 50%;
    z-index: 1;
}

.theme-toggle input:checked + .theme-slider:before {
    transform: translateX(24px);
    background-color: var(--brand-secondary);
}

.theme-slider i {
    font-size: 12px;
    color: var(--text-tertiary);
    z-index: 0;
}

.icon-btn {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background-color: var(--bg-element);
    border-radius: var(--radius-md);
    transition: all var(--transition-speed);
}

.icon-btn:hover {
    color: var(--text-primary);
}

.icon-btn.small {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--error);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-speed);
}

.user-trigger:hover {
    background-color: var(--bg-element);
}

.user-trigger img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.username {
    font-weight: 500;
}

/* Floating Navigation */
.floating-nav {
    position: fixed;
    top: 76px;
    left: 12px;
    width: 280px;
    max-height: calc(100vh - 88px);
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px var(--shadow-color);
    z-index: 100;
    opacity: 0;
    transform: translateX(-20px);
    pointer-events: none;
    transition: opacity var(--transition-speed), transform var(--transition-speed);
    overflow: hidden;
}

.floating-nav.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.nav-scroll {
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    padding: 1rem;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section:last-child {
    margin-bottom: 0;
}

.nav-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
    padding: 0 0.5rem;
}

.nav-items {
    list-style: none;
}

.nav-item {
    margin-bottom: 0.25rem;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition-speed);
}

.nav-item a:hover {
    background-color: var(--bg-element);
    color: var(--text-primary);
}

.nav-item.active a {
    background-color: var(--bg-element);
    color: var(--brand-primary);
}

.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-overlay);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed);
}

.backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Main Content */
.main-content {
    margin-top: 64px;
    padding: 1.5rem;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

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

.subheader {
    color: var(--text-tertiary);
    margin-top: 0.25rem;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-speed);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-icon {
    padding: 0.375rem;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.btn-primary:hover {
    filter: brightness(1.1);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background-color: var(--bg-element);
}

.btn-text {
    color: var(--brand-primary);
    padding: 0.25rem 0.5rem;
}

.btn-text:hover {
    background-color: rgba(6, 182, 212, 0.1);
    border-radius: var(--radius-md);
}

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

.btn-success:hover {
    filter: brightness(1.1);
}

.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Resource Overview */
.resource-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.overview-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: transform var(--transition-speed);
}

.overview-card:hover {
    transform: translateY(-4px);
}

.card-body {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.stat-icon.servers {
    background-color: var(--brand-primary);
}

.stat-icon.cpu {
    background-color: var(--brand-secondary);
}

.stat-icon.memory {
    background-color: var(--brand-accent);
}

.stat-icon.storage {
    background-color: var(--provider-proxmox);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1;
    display: flex;
    align-items: baseline;
}

.unit {
    font-size: 1rem;
    margin-left: 0.25rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.stat-label {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.card-footer {
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-element);
    border-top: 1px solid var(--border-color);
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--error);
}

.stat-change.neutral {
    color: var(--neutral);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.servers-panel {
    grid-row: span 2;
}

.grid-item {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.panel-header {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.panel-header h2 {
    margin: 0;
    font-size: 1.125rem;
}

.panel-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.segmented-control {
    display: flex;
    background-color: var(--bg-element);
    border-radius: var(--radius-full);
    overflow: hidden;
    font-size: 0.75rem;
}

.segment {
    padding: 0.375rem 0.75rem;
    color: var(--text-secondary);
    transition: all var(--transition-speed);
}

.segment:hover {
    color: var(--text-primary);
}

.segment.active {
    background-color: var(--brand-primary);
    color: white;
}

.refresh {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
}

.panel-content {
    padding: 1.25rem;
    overflow: auto;
}

/* Server List */
.server-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.server-card {
    background-color: var(--bg-element);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-speed);
}

.server-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.server-header {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.server-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.server-status.running {
    background-color: var(--success);
}

.server-status.warning {
    background-color: var(--warning);
}

.server-status.stopped {
    background-color: var(--neutral);
}

.server-name {
    flex: 1;
    margin: 0;
    font-size: 1rem;
}

.server-body {
    padding: 1rem;
}

.server-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    background-color: var(--bg-card);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
}

.server-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.75rem;
}

.info-label {
    color: var(--text-tertiary);
}

.provider-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 500;
}

.provider-tag.hetzner {
    background-color: rgba(244, 63, 94, 0.1);
    color: var(--provider-hetzner);
}

.provider-tag.contabo {
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--provider-contabo);
}

.provider-tag.proxmox {
    background-color: rgba(251, 191, 36, 0.1);
    color: var(--provider-proxmox);
}

.server-footer {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-card);
}

.server-uptime {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.server-actions {
    display: flex;
    gap: 0.5rem;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

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

.activity-icon.stop {
    background-color: rgba(156, 163, 175, 0.1);
    color: var(--neutral);
}

.activity-icon.config {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.activity-icon.deploy {
    background-color: rgba(236, 72, 153, 0.1);
    color: var(--brand-accent);
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* Alert List */
.alert-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alert-item {
    display: flex;
    gap: 1rem;
    background-color: var(--bg-element);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.alert-indicator {
    width: 4px;
    flex-shrink: 0;
}

.alert-item.error .alert-indicator {
    background-color: var(--error);
}

.alert-item.warning .alert-indicator {
    background-color: var(--warning);
}

.alert-item.info .alert-indicator {
    background-color: var(--info);
}

.alert-content {
    flex: 1;
    padding: 1rem 1rem 1rem 0;
}

.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.alert-title {
    margin: 0;
    font-size: 0.875rem;
}

.alert-time {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.alert-message {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.alert-actions {
    display: flex;
    gap: 1rem;
}

/* Provider Lists */
.providers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.provider-card {
    background-color: var(--bg-element);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.provider-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.provider-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.provider-icon.hetzner {
    background-color: var(--provider-hetzner);
}

.provider-icon.contabo {
    background-color: var(--provider-contabo);
}

.provider-icon.proxmox {
    background-color: var(--provider-proxmox);
}

.provider-details {
    flex: 1;
}

.provider-name {
    margin: 0;
    font-size: 1rem;
}

.provider-stats {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin: 0;
}

.usage-bar {
    height: 6px;
    background-color: var(--bg-card);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.usage-progress {
    height: 100%;
    background-color: var(--brand-primary);
    border-radius: var(--radius-full);
}

.usage-status {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
}

.usage-percent {
    font-weight: 600;
}

.usage-label {
    color: var(--text-tertiary);
}

/* Mobile Styles */
@media (max-width: 1024px) {
    .resource-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .servers-panel {
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .global-header {
        padding: 0 1rem;
    }
    
    .header-center {
        display: none;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .resource-overview {
        grid-template-columns: 1fr;
    }
    
    .server-list {
        grid-template-columns: 1fr;
    }
    
    .username {
        display: none;
    }
}

/* Dropdown Menus */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease-in-out;
    z-index: 100;
    overflow: hidden;
    margin-top: 8px;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.dropdown-body {
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* User Dropdown */
.user-menu {
    position: relative;
}

.user-dropdown {
    width: 280px;
}

.user-dropdown-header {
    display: flex;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--card-bg-hover);
}

.user-dropdown-header img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 12px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
}

.user-info p {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.user-role {
    font-size: 12px;
    background-color: var(--primary-color-light);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: var(--card-bg-hover);
}

.dropdown-item i {
    margin-right: 12px;
    width: 16px;
    color: var(--text-secondary);
}

/* Notifications Dropdown */
.notifications {
    position: relative;
}

.notification-item {
    display: flex;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.notification-item.unread {
    background-color: var(--card-bg-hover);
}

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

.notification-icon i {
    font-size: 14px;
}

.notification-icon.warning {
    background-color: var(--warning-color-light);
    color: var(--warning-color);
}

.notification-icon.error {
    background-color: var(--error-color-light);
    color: var(--error-color);
}

.notification-icon.success {
    background-color: var(--success-color-light);
    color: var(--success-color);
}

.notification-icon.info {
    background-color: var(--info-color-light);
    color: var(--info-color);
}

.notification-content {
    flex: 1;
}

.notification-text {
    margin: 0 0 4px 0;
    font-size: 14px;
    line-height: 1.4;
}

.notification-time {
    margin: 0;
    font-size: 12px;
    color: var(--text-secondary);
}

.notification-action {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    height: 24px;
    width: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-action:hover {
    background-color: var(--border-color);
}

/* Interactive Server List */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.resource-cards {
    grid-column: span 6;
}

.resource-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-bottom: 24px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background-color: var(--card-bg-hover);
    color: var(--text-primary);
}

.card-body {
    padding: 16px 20px;
}

.card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-text:hover {
    color: var(--primary-color-hover);
    text-decoration: none;
}

/* Server List Styling */
.server-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.server-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    transition: all 0.2s ease;
}

.server-item.interactive {
    cursor: pointer;
}

.server-item.interactive:hover {
    background-color: var(--card-bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.server-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.server-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: var(--primary-color-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.server-icon i {
    font-size: 18px;
}

.server-details {
    display: flex;
    flex-direction: column;
}

.server-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.server-meta {
    display: flex;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 13px;
}

.server-meta i {
    font-size: 12px;
    margin-right: 4px;
}

.server-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 120px;
    margin: 0 16px;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.running {
    background-color: var(--success-color-light);
    color: var(--success-color);
}

.status-badge.warning,
.status-badge.restarting,
.status-badge.shutting-down,
.status-badge.starting {
    background-color: var(--warning-color-light);
    color: var(--warning-color);
}

.status-badge.offline {
    background-color: var(--error-color-light);
    color: var(--error-color);
}

.server-uptime {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.server-actions {
    display: flex;
    gap: 6px;
}

.action-btn {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background-color: var(--card-bg-hover);
    color: var(--text-primary);
}

.action-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Charts and Monitoring */
.chart-container {
    padding: 12px 0;
}

.chart-placeholder {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.chart-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.chart-visual {
    height: 180px;
    background-color: var(--card-bg-hover);
    border-radius: 8px;
    position: relative;
    margin-bottom: 16px;
}

.chart-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    top: 50%;
    transform: translateY(-50%);
}

.chart-markers {
    position: absolute;
    width: 100%;
    height: 100%;
}

.chart-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
    transform: translate(-50%, -50%);
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-color.cpu {
    background-color: var(--primary-color);
}

.legend-color.memory {
    background-color: var(--warning-color);
}

.legend-color.network {
    background-color: var(--info-color);
}

.legend-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.time-filter {
    display: flex;
    background-color: var(--card-bg-hover);
    border-radius: 6px;
    overflow: hidden;
}

.time-option {
    background: none;
    border: none;
    padding: 4px 10px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
}

.time-option.active {
    background-color: var(--primary-color);
    color: white;
}

/* Provider Section */
.provider-section {
    margin-bottom: 32px;
}

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

.section-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.provider-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

/* Color Variables */
:root {
    --success-color: #10b981;
    --success-color-light: rgba(16, 185, 129, 0.15);
    --warning-color: #f59e0b;
    --warning-color-light: rgba(245, 158, 11, 0.15);
    --error-color: #ef4444;
    --error-color-light: rgba(239, 68, 68, 0.15);
    --info-color: #3b82f6;
    --info-color-light: rgba(59, 130, 246, 0.15);
}

/* Responsive Grid Adjustments */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .resource-cards {
        grid-column: span 12;
    }
}

@media (max-width: 768px) {
    .dropdown-menu {
        width: 280px;
    }
    
    .server-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .server-status {
        align-items: flex-start;
        margin: 0;
    }
    
    .server-actions {
        align-self: flex-end;
        margin-top: -32px;
    }
    
    .provider-list {
        grid-template-columns: 1fr;
    }
}
