/* Theme Variables */
:root {
    /* Dark Theme (Default) */
    --brand-primary: #6D28D9;
    --brand-secondary: #2563EB;
    --brand-accent: #DB2777;
    
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-tertiary: #334155;
    
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-tertiary: #94A3B8;
    
    --border-color: #334155;
    --glow-color: rgba(109, 40, 217, 0.5);
    
    /* Provider Colors */
    --provider-hetzner: #F43F5E;
    --provider-contabo: #0EA5E9;
    --provider-proxmox: #FBBF24;
    
    /* Status Colors */
    --status-running: #10B981;
    --status-warning: #F59E0B;
    --status-error: #EF4444;
    --status-stopped: #64748B;
    
    /* Resource Colors */
    --resource-cpu: #8B5CF6;
    --resource-memory: #EC4899;
    --resource-storage: #14B8A6;
    --resource-network: #6366F1;
}

/* Light Theme Variables */
body.light-theme {
    --brand-primary: #4F46E5;
    --brand-secondary: #0EA5E9;
    --brand-accent: #EC4899;
    
    --bg-primary: #F1F5F9;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #F8FAFC;
    
    --text-primary: #0F172A;
    --text-secondary: #334155;
    --text-tertiary: #64748B;
    
    --border-color: #E2E8F0;
    --glow-color: rgba(79, 70, 229, 0.2);
}

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

body {
    font-family: 'Exo 2', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

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

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

/* Background 3D Scene */
.background-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

#bg-canvas {
    width: 100%;
    height: 100%;
}

/* App Container */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Command Bar */
.command-bar {
    height: 70px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

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

.logo-mark {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-hexagon {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--brand-primary);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.logo-inner {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    z-index: 1;
}

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

.spacer {
    flex: 1;
}

.action-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.action-button {
    height: 40px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
    border-radius: 8px;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.action-button:hover {
    color: var(--text-primary);
    box-shadow: 0 0 10px var(--glow-color);
}

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

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

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

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

.theme-toggle label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
    overflow: hidden;
}

.toggle-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-tertiary);
    border-radius: 24px;
    transition: all 0.3s;
}

.toggle-thumb {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--brand-primary);
    top: 3px;
    left: 3px;
    transition: all 0.3s;
    box-shadow: 0 0 10px var(--glow-color);
}

input:checked + label .toggle-thumb {
    left: calc(100% - 21px);
    background-color: var(--brand-secondary);
}

.light, .dark {
    position: absolute;
    font-size: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
}

.light {
    right: 6px;
    color: #FBBF24;
    opacity: 0;
    transition: opacity 0.3s;
}

.dark {
    left: 6px;
    color: #CBD5E1;
    opacity: 1;
    transition: opacity 0.3s;
}

input:checked + label .light {
    opacity: 1;
}

input:checked + label .dark {
    opacity: 0;
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    cursor: pointer;
}

.user-profile img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.user-info {
    display: none;
}

.user-info h4 {
    font-size: 0.9rem;
    font-weight: 500;
}

.user-info span {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* Content Wrapper */
.content-wrapper {
    display: flex;
    flex: 1;
}

/* Navigation */
.navigation {
    width: 260px;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.org-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
}

.org-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.org-info {
    flex: 1;
}

.org-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.org-info span {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.org-menu-toggle {
    width: 24px;
    height: 24px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    padding-left: 0.75rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all 0.3s;
}

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

.nav-link.active {
    background-color: var(--bg-tertiary);
    color: var(--brand-primary);
    box-shadow: 0 0 10px var(--glow-color);
}

.nav-link i {
    font-size: 1.1rem;
    width: 1.25rem;
    text-align: center;
}

.provider-link {
    position: relative;
}

.provider-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.provider-link.hetzner .provider-icon {
    background-color: rgba(244, 63, 94, 0.2);
    color: var(--provider-hetzner);
}

.provider-link.contabo .provider-icon {
    background-color: rgba(14, 165, 233, 0.2);
    color: var(--provider-contabo);
}

.provider-link.proxmox .provider-icon {
    background-color: rgba(251, 191, 36, 0.2);
    color: var(--provider-proxmox);
}

.count {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 600;
}

.nav-section.settings {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.content-header {
    margin-bottom: 2rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
}

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

.breadcrumb i {
    font-size: 0.7rem;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

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

.time-range {
    display: flex;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
}

.time-btn {
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
}

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

.time-btn.custom {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-mode {
    display: flex;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
}

.view-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

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

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.grid-cell {
    min-width: 0;
}

.grid-cell.span-2 {
    grid-column: span 2;
}

/* Cards */
.card {
    background-color: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

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

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    transition: all 0.3s;
}

.btn-icon:hover {
    color: var(--text-primary);
    box-shadow: 0 0 10px var(--glow-color);
}

.card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Map Card */
.infrastructure-map {
    position: relative;
}

.map-3d {
    height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--bg-tertiary);
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.server-location {
    position: absolute;
    transform: translate(-50%, -50%);
}

.location-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
}

.location-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    opacity: 0.5;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.location-dot.hetzner, .location-dot.hetzner::after {
    background-color: var(--provider-hetzner);
}

.location-dot.contabo, .location-dot.contabo::after {
    background-color: var(--provider-contabo);
}

.location-dot.proxmox, .location-dot.proxmox::after {
    background-color: var(--provider-proxmox);
}

@keyframes ping {
    75%, 100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Resource Summary Card */
.resource-summary .card-body {
    display: flex;
    gap: 2rem;
}

.resource-circle {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-overlay {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.total {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

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

.circular-chart {
    width: 100%;
    max-width: 150px;
    height: auto;
}

.circle-bg {
    fill: none;
    stroke: var(--bg-tertiary);
    stroke-width: 2.8;
}

.circle-segment {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    animation: progress 1.5s ease-out forwards;
}

.circle-segment.hetzner {
    stroke: var(--provider-hetzner);
}

.circle-segment.contabo {
    stroke: var(--provider-contabo);
}

.circle-segment.proxmox {
    stroke: var(--provider-proxmox);
}

@keyframes progress {
    0% {
        stroke-dasharray: 0 100;
    }
}

.resource-legend {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

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

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

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

.legend-name {
    font-size: 0.9rem;
    flex: 1;
}

.legend-value {
    font-size: 1.1rem;
    font-weight: 600;
}

/* System Status Card */
.status-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

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

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

.status-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.status-value {
    font-size: 0.9rem;
    font-weight: 600;
}

.status-bar {
    height: 10px;
    background-color: var(--bg-tertiary);
    border-radius: 5px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 5px;
    width: 0;
    animation: bar-fill 1.5s ease-out forwards;
}

@keyframes bar-fill {
    to {
        width: var(--width, 0);
    }
}

.bar-fill.cpu {
    background: linear-gradient(90deg, var(--resource-cpu), #a78bfa);
    --width: attr(data-width);
}

.bar-fill.memory {
    background: linear-gradient(90deg, var(--resource-memory), #f472b6);
}

.bar-fill.storage {
    background: linear-gradient(90deg, var(--resource-storage), #2dd4bf);
}

.bar-fill.network {
    background: linear-gradient(90deg, var(--resource-network), #818cf8);
}

/* Server Pods Card */
.filter-btn {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.filter-btn.active {
    background-color: var(--bg-tertiary);
    color: var(--brand-primary);
}

.server-3d-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.server-pod {
    position: relative;
    perspective: 600px;
    height: 150px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: all 0.3s;
}

.server-pod.active {
    transform: scale(1.05);
}

.pod-visual {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateX(10deg) rotateY(15deg);
    transition: all 0.3s;
}

.server-pod.active .pod-visual {
    transform: rotateX(15deg) rotateY(25deg);
}

.pod-front, .pod-top, .pod-side {
    position: absolute;
    backface-visibility: hidden;
}

.pod-front {
    width: 100%;
    height: 100%;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(20px);
}

.server-pod[data-status="running"] .pod-front {
    border-left: 4px solid var(--status-running);
}

.server-pod[data-status="warning"] .pod-front {
    border-left: 4px solid var(--status-warning);
}

.server-pod[data-status="stopped"] .pod-front {
    border-left: 4px solid var(--status-stopped);
}

.pod-top {
    width: 100%;
    height: 40px;
    background-color: rgba(55, 65, 81, 0.7);
    transform: rotateX(-90deg) translateZ(20px);
    border-radius: 4px 4px 0 0;
}

.pod-side {
    width: 40px;
    height: 100%;
    background-color: rgba(55, 65, 81, 0.8);
    transform: rotateY(90deg) translateZ(calc(100% - 20px));
    border-radius: 0 4px 4px 0;
}

.pod-lights {
    display: flex;
    gap: 0.5rem;
}

.light {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.light.on {
    background-color: var(--status-running);
    box-shadow: 0 0 10px var(--status-running);
}

.light.warning {
    background-color: var(--status-warning);
    box-shadow: 0 0 10px var(--status-warning);
}

.light.off {
    background-color: var(--status-stopped);
}

.light.blink {
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pod-label {
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    text-align: center;
}

.pod-name {
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
}

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

.server-pod[data-status="running"] .pod-status {
    color: var(--status-running);
}

.server-pod[data-status="warning"] .pod-status {
    color: var(--status-warning);
}

/* Cost Analysis Card */
.cost-overview {
    text-align: center;
    margin-bottom: 1.5rem;
}

.cost-number {
    margin-bottom: 0.5rem;
}

.cost-value {
    font-size: 2rem;
    font-weight: 700;
}

.cost-period {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    display: block;
}

.cost-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
}

.cost-trend.up {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--status-error);
}

.cost-trend.down {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--status-running);
}

.cost-distribution {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cost-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cost-info {
    display: flex;
    justify-content: space-between;
}

.cost-provider {
    font-size: 0.9rem;
}

.cost-amount {
    font-weight: 600;
}

.cost-bar {
    height: 10px;
    background-color: var(--bg-tertiary);
    border-radius: 5px;
    overflow: hidden;
}

.cost-fill {
    height: 100%;
    border-radius: 5px;
    animation: bar-fill 1.5s ease-out forwards;
}

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

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

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

/* Responsive Design */
@media (min-width: 1200px) {
    .user-info {
        display: block;
    }
}

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .grid-cell.span-2 {
        grid-column: span 1;
    }
}

@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .navigation {
        width: 100%;
        padding: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .command-bar {
        flex-wrap: wrap;
        height: auto;
        padding: 1rem;
    }
    
    .logo {
        margin-bottom: 0.5rem;
    }
    
    .spacer {
        display: none;
    }
    
    .action-group {
        width: 100%;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .action-button span {
        display: none;
    }
    
    .content-header h1 {
        font-size: 1.5rem;
    }
    
    .view-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .time-range, .view-mode {
        width: 100%;
    }
    
    .time-btn, .view-btn {
        flex: 1;
        text-align: center;
    }
    
    .server-3d-grid {
        grid-template-columns: 1fr;
    }
}

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

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

.modal {
    width: 90%;
    max-width: 700px;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 0 30px var(--glow-color);
    transform: translateY(-20px) scale(0.98);
    transition: transform 0.3s ease;
    position: relative;
}

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

/* Add a glowing border effect */
.modal::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--brand-primary), var(--brand-secondary), var(--brand-accent));
    z-index: -1;
    border-radius: 14px;
    opacity: 0.5;
    animation: glowAnimation 3s infinite alternate;
}

@keyframes glowAnimation {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

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

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    background: linear-gradient(to right, var(--brand-primary), var(--brand-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background-color: var(--bg-tertiary);
    transition: all 0.3s;
}

.modal-close:hover {
    color: var(--text-primary);
    box-shadow: 0 0 10px var(--glow-color);
}

.modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Input styling with futuristic design */
.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper input,
.select-wrapper select {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--bg-tertiary);
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.input-wrapper input:focus,
.select-wrapper select:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--brand-primary);
}

.input-focus-line,
.select-focus-line {
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, var(--brand-primary), var(--brand-accent));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.input-wrapper input:focus + .input-focus-line,
.select-wrapper select:focus + .select-focus-line {
    transform: scaleX(1);
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper select {
    appearance: none;
    padding-right: 2rem;
    cursor: pointer;
}

.select-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    pointer-events: none;
}

.provider-selector {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.provider-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background-color: var(--bg-tertiary);
    min-width: 120px;
}

.provider-badge[data-provider="hetzner"] {
    color: var(--provider-hetzner);
}

.provider-badge[data-provider="contabo"] {
    color: var(--provider-contabo);
}

.provider-badge[data-provider="proxmox"] {
    color: var(--provider-proxmox);
}

/* Plan and OS Cards */
.plan-cards,
.os-cards {
    display: grid;
    gap: 1rem;
    margin-top: 0.75rem;
}

.plan-cards {
    grid-template-columns: repeat(3, 1fr);
}

.os-cards {
    grid-template-columns: repeat(4, 1fr);
}

.plan-card,
.os-card {
    position: relative;
    cursor: pointer;
}

.plan-card input[type="radio"],
.os-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.plan-card-content,
.os-card-content {
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-tertiary);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.glow-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0;
    box-shadow: inset 0 0 15px var(--glow-color);
    transition: opacity 0.3s;
}

.plan-card input[type="radio"]:checked + .plan-card-content .glow-effect,
.os-card input[type="radio"]:checked + .os-card-content .glow-effect,
.plan-card-content:hover .glow-effect,
.os-card-content:hover .glow-effect {
    opacity: 1;
}

.plan-card input[type="radio"]:checked + .plan-card-content,
.os-card input[type="radio"]:checked + .os-card-content {
    border-color: var(--brand-primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.plan-card-content:hover,
.os-card-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.plan-icon {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--brand-primary);
}

.plan-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.plan-details ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.plan-details ul li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.plan-details ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    margin-right: 0.5rem;
    color: var(--brand-primary);
}

.plan-price {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--brand-primary);
}

.os-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem 1rem;
}

.os-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--brand-primary);
}

.os-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.button {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

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

.button.secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.button.primary:hover {
    box-shadow: 0 5px 15px var(--glow-color);
}

/* Responsive styles for modal */
@media (max-width: 768px) {
    .plan-cards {
        grid-template-columns: 1fr;
    }
    
    .os-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .provider-selector {
        flex-direction: column;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .button {
        width: 100%;
        text-align: center;
    }
}
