body {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    min-height: 100vh;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

/* Enhanced Grid Background */
.grid-bg {
    position: fixed;
    inset: 0;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 25%),
        linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
    background-size: 100% 100%, 50px 50px, 50px 50px;
    animation: grid-animation 20s linear infinite;
    z-index: -1;
    pointer-events: none;
}

/* Enhanced Card Styles */
.card-gradient {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.7) 0%, rgba(17, 24, 39, 0.8) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.card-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(99, 102, 241, 0.2);
}

/* Glassmorphism Effects */
.glass-effect {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.glass-card {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(17, 24, 39, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Enhanced Progress Bars */
.progress-bar {
    height: 8px;
    background: rgba(17, 24, 39, 0.5);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Glow Effects */
.glow {
    position: relative;
}

.glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow:hover::after {
    opacity: 1;
}

/* Enhanced Button Styles */
.button-gradient {
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.button-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.button-gradient:hover::before {
    left: 100%;
}

/* Enhanced Chart Styles */
.chart-container {
    position: relative;
    padding: 20px;
    border-radius: 16px;
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.chart-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Animated Icons */
.animated-icon {
    transition: all 0.3s ease;
}

.animated-icon:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* Stats Card */
.stats-card {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border-color: rgba(99, 102, 241, 0.2);
}

/* Enhanced Status Indicators */
.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: inherit;
    filter: blur(4px);
    opacity: 0.6;
}

.status-active {
    background: #10B981;
    box-shadow: 0 0 15px #10B981;
}

.status-inactive {
    background: #EF4444;
    box-shadow: 0 0 15px #EF4444;
}

/* Timeline Enhancements */
.timeline-item {
    position: relative;
    padding-left: 28px;
    margin-bottom: 24px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #6366f1 0%, transparent 100%);
}

.timeline-dot {
    position: absolute;
    left: -5px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6366f1;
    box-shadow: 0 0 15px #6366f1;
}

/* Sparkline Enhancement */
.sparkline-container {
    position: relative;
    padding: 16px;
    border-radius: 12px;
    background: rgba(17, 24, 39, 0.5);
    overflow: hidden;
}

.sparkline-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.2; }
    100% { transform: scale(1); opacity: 0.5; }
}

/* Quick Actions Enhancement */
.quick-action {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.quick-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.quick-action:hover::before {
    transform: translateX(100%);
}

.quick-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border-color: rgba(99, 102, 241, 0.2);
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(17, 24, 39, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    border-radius: 4px;
    border: 2px solid rgba(17, 24, 39, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #4f46e5, #7c3aed);
}

/* Loading Animation */
.loading-animation {
    position: relative;
    width: 100%;
    height: 2px;
    background: rgba(99, 102, 241, 0.1);
    overflow: hidden;
}

.loading-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #6366f1, transparent);
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .glass-card {
        padding: 16px;
    }

    .stats-card {
        padding: 16px;
    }

    .quick-action {
        padding: 16px;
    }
}

.card-content {
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    max-height: 2000px;
    opacity: 1;
    overflow: hidden;
}
.card-content.collapsed {
    max-height: 0;
    opacity: 0;
}
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    flex-shrink: 0;
}
.status-active {
    background-color: #10B981;
    box-shadow: 0 0 10px #10B981;
}
.status-inactive {
    background-color: #EF4444;
    box-shadow: 0 0 10px #EF4444;
}
.port-tag {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    margin: 2px;
    white-space: nowrap;
}
.port-tag button {
    margin-left: 6px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.port-tag button:hover {
    opacity: 1;
}
.ssh-info {
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    overflow-x: auto;
}
.copy-btn {
    padding: 2px 8px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 4px;
    font-size: 0.75rem;
    transition: all 0.2s;
    white-space: nowrap;
    margin-left: 8px;
}
.copy-btn:hover {
    background: rgba(99, 102, 241, 0.3);
}
.nav-blur {
    background: transparent;
    border: none;
}
.vps-card {
    transition: all 0.3s ease;
    width: 100%;
}
.vps-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.collapse-btn {
    transition: transform 0.3s ease;
}
.collapse-btn.collapsed {
    transform: rotate(-180deg);
}
.sidebar {
    width: 280px;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.5) rgba(17, 24, 39, 0.5);
}
.sidebar-section {
    margin-bottom: 1rem;
    padding: 0 0.75rem;
}
.sidebar-section-header {
    color: #6366f1;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 0.75rem 0.5rem;
    margin-top: 0.5rem;
}
.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    border-radius: 0.5rem;
    color: #e2e8f0;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}
.sidebar-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: white;
    transform: translateX(4px);
}
.sidebar-link.active {
    background: rgba(99, 102, 241, 0.15);
    color: white;
    font-weight: 500;
}
.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #6366f1;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}
.sidebar-link i {
    width: 1.5rem;
    margin-right: 0.75rem;
    font-size: 1rem;
    text-align: center;
    color: #6366f1;
    transition: all 0.2s ease;
}
.sidebar-link:hover i {
    transform: scale(1.1);
}
.sidebar-link .status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-left: auto;
    transition: all 0.2s ease;
}
.status-indicator.active {
    background: #10B981;
    box-shadow: 0 0 8px #10B981;
}
.status-indicator.warning {
    background: #F59E0B;
    box-shadow: 0 0 8px #F59E0B;
}
.sidebar-footer {
    margin-top: auto;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        z-index: 40;
        height: 100vh;
    }
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    }
}
/* Add a subtle gradient behind the logo for better visibility */
.nav-logo-wrapper {
    position: relative;
}
.nav-logo-wrapper::before {
    content: '';
    position: absolute;
    left: -1rem;
    right: -1rem;
    top: -1rem;
    bottom: -1rem;
    background: linear-gradient(to right, rgba(17, 24, 39, 0.3), transparent);
    border-radius: 1rem;
    z-index: -1;
}
/* Adjust main content margin to match new sidebar width */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
    padding: 1.5rem;
    width: calc(100% - 280px);
}
.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.vps-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}
.vps-card {
    width: 100%;
    max-width: 100%;
    transition: all 0.3s ease;
}
.vps-card-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.vps-card-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}
@media (max-width: 1024px) {
    .vps-card-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 1rem;
    }
    .vps-card-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .vps-card-stats {
        grid-template-columns: 1fr;
    }
}
/* Adjust sidebar logo positioning */
.sidebar .nav-logo-wrapper {
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, rgba(17, 24, 39, 0.7), transparent);
}
.sidebar nav {
    padding-top: 0;
}
/* Adjust main navigation items spacing */
.sidebar .nav-items {
    padding-top: 0.5rem;
}
/* Adjust user info positioning */
.user-info-wrapper {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 60;
}
@media (max-width: 768px) {
    .user-info-wrapper {
        position: static;
    }
}

/* Add these new styles */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-3px) rotate(-2deg); }
}

@keyframes glitch {
    0% { text-shadow: 0.05em 0 0 rgba(99, 102, 241, 0.75), -0.05em -0.025em 0 rgba(139, 92, 246, 0.75); }
    14% { text-shadow: 0.05em 0 0 rgba(99, 102, 241, 0.75), -0.05em -0.025em 0 rgba(139, 92, 246, 0.75); }
    15% { text-shadow: -0.05em -0.025em 0 rgba(99, 102, 241, 0.75), 0.025em 0.025em 0 rgba(139, 92, 246, 0.75); }
    49% { text-shadow: -0.05em -0.025em 0 rgba(99, 102, 241, 0.75), 0.025em 0.025em 0 rgba(139, 92, 246, 0.75); }
    50% { text-shadow: 0.025em 0.05em 0 rgba(99, 102, 241, 0.75), 0.05em 0 0 rgba(139, 92, 246, 0.75); }
    99% { text-shadow: 0.025em 0.05em 0 rgba(99, 102, 241, 0.75), 0.05em 0 0 rgba(139, 92, 246, 0.75); }
    100% { text-shadow: -0.025em 0 0 rgba(99, 102, 241, 0.75), -0.025em -0.025em 0 rgba(139, 92, 246, 0.75); }
}

.logo-container {
    position: relative;
    display: inline-block;
}

.dashboard-tag {
    position: relative;
    font-size: 0.65rem;
    padding: 3px 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 4px;
    transform: rotate(-2deg);
    animation: float 3s ease-in-out infinite;
    backdrop-filter: blur(8px);
    white-space: nowrap;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    width: fit-content;
}

.dashboard-tag::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
    z-index: -1;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-tag:hover::before {
    opacity: 1;
}

.glitch-effect {
    animation: glitch 4s infinite linear alternate-reverse;
    display: inline-block;
}

/* Add these OS Selector Styles */
.os-option {
    position: relative;
    overflow: hidden;
}
.os-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.os-option:hover::before {
    opacity: 1;
}
input[type="radio"]:checked + .os-option {
    border-color: #6366f1;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}
input[type="radio"]:checked + .os-option .os-radio {
    border-color: #6366f1;
}
input[type="radio"]:checked + .os-option .os-radio-dot {
    opacity: 1;
}

@keyframes priceUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}