:root {
    /* UniCloud Brand Colors */
    --brand-primary: #9333ea;         /* Primary brand color - vibrant purple */
    --brand-secondary: #6b21a8;       /* Secondary brand color - deep purple */
    --brand-accent: #ec4899;          /* Accent color - bright teal */
    --brand-dark: #080b14;            /* Dark background */
    --brand-darker: #0f172a;          /* Darker background */
    --brand-light: #f8fafc;           /* Light text color */
    
    /* Status Colors */
    --status-success: #10b981;        /* Green for success/running */
    --status-warning: #f59e0b;        /* Orange for warnings */
    --status-danger: #ef4444;         /* Red for errors */
    --status-neutral: #9ca3af;        /* Gray for inactive/stopped */
    
    /* Provider Colors */
    --provider-hetzner: #d50c2d;      /* Stylized Hetzner color */
    --provider-contabo: #0098dd;      /* Stylized Contabo color */
    --provider-proxmox: #e57000;      /* Stylized Proxmox color */
    
    /* UI Colors */
    --ui-background: #0f172a;
    --ui-card: #1e293b;                /* Slightly lighter than background */
    --ui-element: #334155;             /* For UI elements like inputs */
    --ui-hover: rgba(255, 255, 255, 0.1);              /* Hover state for UI elements */
    --ui-border: #475569;              /* Border color */
    
    /* Text Colors */
    --text-primary: #f8fafc;           /* Main text color */
    --text-secondary: #cbd5e1;         /* Secondary text color */
    --text-disabled: #94a3b8;          /* Disabled text */
    
    /* Gradients */
    --gradient-brand: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    --gradient-card: linear-gradient(180deg, rgba(46, 53, 72, 0.4) 0%, rgba(24, 28, 47, 0.4) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-full: 9999px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--ui-background);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Light/Dark Mode Overrides */
body.light-theme {
    --ui-background: #f1f5f9;
    --ui-card: #ffffff;
    --ui-element: #f8fafc;
    --ui-border: #e2e8f0;
    --ui-hover: rgba(0, 0, 0, 0.05);
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-tertiary: #64748b;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

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

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

/* Side Navigation */
.side-nav {
    background-color: var(--ui-card);
    width: 280px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    border-right: 1px solid var(--ui-border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

/* Brand & Logo */
.brand {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-brand);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    color: white;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
}

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

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

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

/* Navigation Sections */
.nav-sections {
    flex: 1;
    padding: 0 0.75rem;
}

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

.section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0 0.75rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

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

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

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.2s ease-in-out;
    margin-bottom: 0.25rem;
}

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

.nav-link.active {
    background-color: var(--ui-element);
    color: var(--brand-primary);
    font-weight: 500;
}

.nav-link.active i {
    color: var(--brand-primary);
}

/* Navigation Footer */
.nav-footer {
    padding: 1rem;
    border-top: 1px solid var(--ui-border);
}

.organization-switcher {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    background-color: var(--ui-element);
    cursor: pointer;
    transition: all 0.2s ease;
}

.organization-switcher:hover {
    background-color: var(--ui-hover);
}

.org-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 0.75rem;
    color: white;
}

.org-info {
    flex: 1;
}

.org-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.org-type {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px; /* This matches the width of the side-nav */
    padding: 1.5rem;
    min-height: 100vh;
    background-color: var(--ui-background);
}

/* Content Header */
.content-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--ui-border);
}

.page-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.page-title p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.header-actions {
    display: flex;
    align-items: center;
}

.search-bar {
    position: relative;
    margin-right: 1rem;
}

.search-bar input {
    background-color: var(--ui-element);
    border: 1px solid var(--ui-border);
    border-radius: var(--radius-full);
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    color: var(--text-primary);
    width: 240px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.25);
}

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

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

.user-menu {
    display: flex;
    align-items: center;
}

.icon-button {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: var(--ui-element);
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.icon-button:hover {
    background-color: var(--ui-hover);
    color: var(--text-primary);
}

.notification-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background-color: var(--status-danger);
}

.user-profile {
    display: flex;
    align-items: center;
    padding: 0.375rem;
    padding-right: 0.75rem;
    border-radius: var(--radius-full);
    background-color: var(--ui-element);
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-profile:hover {
    background-color: var(--ui-hover);
}

.user-profile img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    margin-right: 0.75rem;
}

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

.user-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Content Body */
.content-body {
    flex: 1;
    padding: 1.5rem;
}

/* Action Bar */
.action-bar {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--ui-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.view-selector {
    display: flex;
    margin-right: 1.5rem;
    background-color: var(--ui-element);
    border-radius: var(--radius-md);
    padding: 0.25rem;
}

.view-button {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.view-button.active {
    background-color: var(--ui-hover);
    color: var(--brand-primary);
}

.filters {
    display: flex;
    margin-right: 1.5rem;
}

.filter-item {
    display: flex;
    flex-direction: column;
    margin-right: 1rem;
}

.filter-item label {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
}

.filter-item select {
    background-color: var(--ui-element);
    border: 1px solid var(--ui-border);
    border-radius: var(--radius-md);
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23A9B4CC'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.5em;
}

.filter-item select:focus {
    outline: none;
    border-color: var(--brand-primary);
}

.actions {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.button {
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 0.75rem;
}

.button i {
    margin-right: 0.5rem;
}

.button.outline {
    background-color: transparent;
    border: 1px solid var(--ui-border);
    color: var(--text-secondary);
}

.button.outline:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.button.primary {
    background: var(--gradient-brand);
    border: none;
    color: white;
    box-shadow: var(--shadow-sm);
}

.button.primary:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* Server Grid */
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* Server Card */
.server-card {
    background-color: var(--ui-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--ui-border);
}

.server-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-primary);
}

.card-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-brand);
}

.card-header {
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.server-name {
    font-weight: 700;
    font-size: 1.25rem;
}

.server-actions .action-button {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background-color: var(--ui-element);
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.server-actions .action-button:hover {
    background-color: var(--ui-hover);
    color: var(--text-primary);
}

.server-info {
    padding: 0 1.25rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.server-status {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.server-status i {
    font-size: 0.625rem;
    margin-right: 0.5rem;
}

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

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

.server-status.error {
    color: var(--status-danger);
}

.provider-badge {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.provider-badge.hetzner {
    background-color: rgba(233, 25, 75, 0.1);
    color: var(--provider-hetzner);
}

.provider-badge.contabo {
    background-color: rgba(2, 132, 199, 0.1);
    color: var(--provider-contabo);
}

.provider-badge.proxmox {
    background-color: rgba(202, 138, 4, 0.1);
    color: var(--provider-proxmox);
}

.provider-icon {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    font-size: 0.75rem;
}

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

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

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

.server-specs {
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--ui-border);
    background-color: rgba(255, 255, 255, 0.02);
}

.spec-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
}

.spec-item i {
    margin-right: 0.5rem;
    color: var(--text-secondary);
}

.server-details {
    padding: 1.25rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

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

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

.detail-value {
    font-weight: 500;
    font-size: 0.875rem;
}

.server-tags {
    padding: 0 1.25rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    background-color: var(--ui-element);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
}

.server-metrics {
    padding: 1.25rem;
    border-top: 1px solid var(--ui-border);
}

.metric {
    margin-bottom: 0.75rem;
}

.metric:last-child {
    margin-bottom: 0;
}

.metric-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.metric-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.metric-value {
    font-size: 0.75rem;
    font-weight: 700;
}

.progress-bar {
    height: 6px;
    background-color: var(--ui-element);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--brand-secondary), var(--brand-primary));
    border-radius: var(--radius-full);
}

.progress-fill.warning {
    background: linear-gradient(to right, var(--status-warning), #FF9A3D);
}

.progress-fill.danger {
    background: linear-gradient(to right, var(--status-danger), #FF5252);
}

.card-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--ui-border);
    display: flex;
    justify-content: flex-end;
}

.card-footer .action-button {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background-color: var(--ui-element);
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-footer .action-button:hover {
    background-color: var(--ui-hover);
    color: var(--text-primary);
}

.card-footer .action-button.primary {
    background: var(--gradient-brand);
    color: white;
    padding: 0 1rem;
    width: auto;
}

.card-footer .action-button.primary span {
    margin-left: 0.5rem;
}

.card-footer .action-button.success {
    background-color: var(--status-success);
    color: white;
}

.card-footer .action-button.danger {
    background-color: var(--status-danger);
    color: white;
}

.card-footer .action-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.card-footer .action-button.disabled:hover {
    background-color: var(--ui-element);
    color: var(--text-secondary);
}

/* Theme Switch */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    margin: 0 1rem;
}

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

.theme-switch-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--ui-element);
    border-radius: 30px;
    transition: .4s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

.theme-switch-label .fa-sun {
    color: #f59e0b;
    font-size: 14px;
}

.theme-switch-label .fa-moon {
    color: #cbd5e1;
    font-size: 14px;
}

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

input:checked + .theme-switch-label .theme-slider {
    transform: translateX(30px);
}

input:checked + .theme-switch-label {
    background-color: var(--ui-element);
}

/* Fix additional light theme styles */
body.light-theme .side-nav {
    background-color: var(--ui-card);
    border-right: 1px solid var(--ui-border);
}

body.light-theme .nav-item {
    color: var(--text-primary);
}

body.light-theme .nav-item:hover {
    background-color: var(--ui-hover);
}

body.light-theme .nav-item.active {
    background-color: rgba(147, 51, 234, 0.1);
    color: var(--brand-primary);
}

body.light-theme .top-bar {
    background-color: var(--ui-card);
    border-bottom: 1px solid var(--ui-border);
}

body.light-theme .search-bar {
    background-color: var(--ui-element);
    border: 1px solid var(--ui-border);
}

body.light-theme .search-bar input {
    color: var(--text-primary);
}

body.light-theme .search-bar input::placeholder {
    color: var(--text-secondary);
}

body.light-theme .icon-button {
    color: var(--text-secondary);
}

body.light-theme .icon-button:hover {
    background-color: var(--ui-hover);
    color: var(--text-primary);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 11, 20, 0.7);
    display: none;
    z-index: 1000;
    backdrop-filter: blur(3px);
}

.modal.active {
    display: block;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--ui-card);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--ui-border);
    position: sticky;
    top: 0;
    background-color: var(--ui-card);
    z-index: 10;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
    color: var(--text-primary);
}

.modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--ui-border);
    display: flex;
    justify-content: flex-end;
    position: sticky;
    bottom: 0;
    background-color: var(--ui-card);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    z-index: 10;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.25rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.close-modal:hover {
    background-color: var(--ui-hover);
    color: var(--text-primary);
}

/* Form Styling for Modal */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--ui-border);
    background-color: var(--ui-element);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group select:focus {
    border-color: var(--brand-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.25);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}

.provider-select,
.location-select {
    position: relative;
}

.provider-select .provider-icon,
.location-select .location-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
}

/* Remove arrow for select with custom icons */
.provider-select select,
.location-select select {
    background-image: none;
}

.provider-icon {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
}

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

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

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

.location-icon {
    color: var(--brand-primary);
}

/* Pricing Plans */
.pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pricing-plan {
    border: 1px solid var(--ui-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.pricing-plan:hover {
    border-color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.pricing-plan.selected {
    border-color: var(--brand-primary);
    background-color: rgba(147, 51, 234, 0.1);
}

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

.plan-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

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

.plan-details {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.plan-details div {
    margin-bottom: 0.375rem;
    display: flex;
    align-items: center;
}

.plan-details i {
    margin-right: 0.5rem;
    width: 14px;
}

/* OS Options */
.os-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.os-option {
    border: 1px solid var(--ui-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.os-option:hover {
    border-color: var(--brand-primary);
    background-color: rgba(147, 51, 234, 0.1);
}

.os-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.os-option input[type="radio"]:checked + .os-icon {
    color: var(--brand-primary);
}

.os-option input[type="radio"]:checked ~ .os-info .os-name {
    color: var(--brand-primary);
}

.os-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.os-name {
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.os-version {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Pricing Summary */
.pricing-summary {
    background-color: var(--ui-element);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.summary-total {
    font-weight: 600;
    color: var(--text-primary);
    border-top: 1px solid var(--ui-border);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

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

/* Light theme overrides */
body.light-theme .modal-container,
body.light-theme .modal-header,
body.light-theme .modal-footer {
    background-color: var(--ui-card);
}

body.light-theme .pricing-summary {
    background-color: var(--ui-element);
}

body.light-theme .form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .os-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-plans {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Radio buttons in pricing plans - fixing missing styles */
.pricing-plan input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.pricing-plan input[type="radio"]:checked ~ * {
    color: var(--brand-primary);
}

/* Theme-specific overrides for the main components */
body.light-theme .sidebar {
    background-color: var(--ui-card);
    border-right: 1px solid var(--ui-border);
}

body.light-theme .sidebar .nav-item:hover {
    background-color: var(--ui-hover);
}

body.light-theme .sidebar .nav-item.active {
    background-color: rgba(147, 51, 234, 0.1);
}

body.light-theme .top-nav {
    background-color: var(--ui-card);
    border-bottom: 1px solid var(--ui-border);
}

body.light-theme .server-card,
body.light-theme .dashboard-card {
    background-color: var(--ui-card);
    box-shadow: var(--shadow-sm);
}

body.light-theme .action-btn.primary {
    background-color: var(--brand-primary);
    color: white;
}

body.light-theme .button.primary {
    background-color: var(--brand-primary);
    color: white;
}

body.light-theme .button.outline {
    border-color: var(--ui-border);
    color: var(--text-primary);
}

body.light-theme .button.outline:hover {
    background-color: var(--ui-hover);
}

body.light-theme .status-indicator {
    border: 1px solid var(--ui-border);
}

/* Modal light theme overrides */
body.light-theme .modal {
    background-color: rgba(241, 245, 249, 0.7);
}

body.light-theme .modal-header,
body.light-theme .modal-footer {
    border-color: var(--ui-border);
}

body.light-theme .close-modal:hover {
    background-color: var(--ui-hover);
}

body.light-theme .form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Fix for transitions */
.sidebar, 
.top-nav, 
.server-card, 
.dashboard-card, 
.button, 
.modal-container,
.form-group input,
.form-group select,
.pricing-plan,
.os-option {
    transition: all 0.2s ease-in-out;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 1rem;
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* Mobile Responsive Adjustments */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .servers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 260px;
        transform: translateX(-100%);
        position: fixed;
        z-index: 1000;
        height: 100vh;
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .content-wrapper {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .stats-grid,
    .servers-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .search-container {
        width: 100%;
    }
    
    .search-container input {
        width: 100%;
    }
    
    .action-buttons {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .top-bar {
        padding: 0.5rem;
    }
    
    .page-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .page-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .server-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .server-badges {
        margin-top: 0.5rem;
    }
}
