

/* Glassmorphism style */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 20px;
    transition: all 0.3s ease;
    z-index: 1000;
    background: rgba(24, 18, 24, 0.219);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--border);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding: 0 10px;
}

.sidebar-logo img {
    width: 40px;
    height: 40px;
}

.sidebar-logo h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(196, 30, 229, 0.3);
    margin-left: 1rem;
}

.sidebar-menu {
    list-style: none;
    margin-top: 20px;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background-color: rgba(229, 30, 219, 0.15);
    color: var(--primary-light);
}

.sidebar-menu a.active {
    border-left: 3px solid var(--primary);
}

.sidebar-menu i {
    font-size: 20px;
    min-width: 30px;
}

.sidebar-menu .menu-text {
    margin-left: 10px;
}

.sidebar-footer {
    position: absolute;
    bottom: 20px;
    width: calc(100% - 40px);
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 20px;
    transition: all 0.3s ease;
    
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    margin-bottom: 20px;
    padding: 0 20px;
}

.header-left h1 {
    font-weight: 600;
    font-size: 28px;
}

.header-right {
    display: flex;
    align-items: center;
}
.user-profile {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.card {
    padding: 20px;
    margin-bottom: 20px;
    height: 100%;
    max-width: 90vw;
}

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

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

.card-actions {
    display: flex;
    gap: 10px;
}

.card-actions button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
}

.card-actions button:hover {
    color: var(--primary);
}

.stat-card {
    display: flex;
    align-items: center;
    min-width: fit-content;
    gap: 1rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 15px;
}

.stat-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.stat-change {
    display: flex;
    align-items: center;
    margin-top: 5px;
    font-size: 14px;
}

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

.negative {
    color: var(--danger);
}

.chart-container {
    width: 100%;
    height: 300px;
}

.progress-item {
    margin-bottom: 15px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.progress-bar {
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.progress-value {
    height: 100%;
    border-radius: 4px;
}

/* Server Items */
.server-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

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

.server-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 15px;
}

.server-info {
    flex: 1;
}

.server-name {
    font-weight: 700;
    margin-bottom: 4px;

}

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

.server-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-online {
    background: rgba(76, 175, 80, 0.15);
    color: var(--success);
}

.status-warning {
    background: rgba(255, 152, 0, 0.15);
    color: var(--warning);
}

.status-offline {
    background: rgba(244, 67, 54, 0.15);
    color: var(--danger);
}

/* Toggle Button */
.toggle-sidebar {
    display: none;
    position: fixed;
    left: 20px;
    top: 20px;
    z-index: 1001;
    background: var(--primary);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive design */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .toggle-sidebar {
        display: block;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .stat-card {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        min-width: 50%;
        max-width: 100%;
    }

    .big {
        min-width: 90vw;
    }

}

.powered-by {
    display: flex;
    align-items: left;
    justify-content: left;
    padding: 1rem;
    text-decoration: none;
}

.powered-by span {
    margin-right: 10px;
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--text);
    text-decoration: none;
}

.powered-by img {
    max-width: 2rem;
    max-height: auto;
    text-decoration: none;
}