:root {
    --sidebar-width: 260px;
    --sidebar-bg: #1e1e2d;
    --sidebar-color: #9899ac;
    --sidebar-active-color: #ffffff;
    --sidebar-active-bg: #1b1b28;
    --primary-color: #3699ff;
    --content-bg: #f3f6f9;
    --card-bg: #ffffff;
    --text-primary: #3f4254;
    --text-secondary: #b5b5c3;
    --border-dashed: #e4e6ef;
}

body {
    background-color: var(--content-bg);
    color: var(--text-primary);
    font-family: 'Poppins', Helvetica, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

#wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

/* Sidebar Styling - Premium Dark */
#sidebar {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-color);
    transition: all 0.3s;
    min-height: 100vh;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

#sidebar .sidebar-header {
    padding: 25px 20px;
    background: #1a1a27;
}

#sidebar .sidebar-header h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul p {
    color: #565674;
    padding: 10px 25px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 5px;
    margin-top: 10px;
}

#sidebar ul li a {
    padding: 12px 25px;
    font-size: 0.95rem;
    display: block;
    color: var(--sidebar-color);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

#sidebar ul li a:hover {
    color: var(--sidebar-active-color);
    background: #232335;
}

#sidebar ul li.active > a {
    color: var(--sidebar-active-color);
    background: #1b1b28;
    border-left: 3px solid var(--primary-color);
}

#sidebar ul li a i {
    margin-right: 12px;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Content Area */
#content {
    width: 100%;
    padding: 25px;
    transition: all 0.3s;
}

.top-navbar {
    background: #fff;
    padding: 15px 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 0 15px 0 rgba(0,0,0,0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #eff2f5;
}

/* Premium Statistics Cards */
.stats-card-premium {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0px 0px 20px 0px rgba(76, 87, 125, 0.02);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    height: 100%;
}

.stats-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0px 5px 30px 0px rgba(76, 87, 125, 0.07);
    border-color: #f3f6f9;
}

.stats-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.stats-icon-wrapper.blue { background: #e1f0ff; color: #3699ff; }
.stats-icon-wrapper.green { background: #c9f7f5; color: #1bc5bd; }
.stats-icon-wrapper.purple { background: #eee5ff; color: #8950fc; }
.stats-icon-wrapper.orange { background: #fff4de; color: #ffa800; }

.stats-value {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.stats-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Base Card Style */
.card-custom {
    background: white;
    border-radius: 12px;
    box-shadow: 0px 0px 20px 0px rgba(76, 87, 125, 0.02);
    border: none;
    margin-bottom: 30px;
}

/* Fix for dropdowns in responsive tables */
.table-responsive {
    overflow: visible !important;
}

@media (max-width: 991px) {
    .table-responsive {
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }
}

/* Custom Tables */
.card-table {
    background: white;
    border-radius: 12px;
    box-shadow: 0px 0px 20px 0px rgba(76, 87, 125, 0.02);
    border: none;
    overflow: hidden;
}

.card-header-custom {
    padding: 20px 25px;
    background: transparent;
    border-bottom: 1px solid #ebedf3;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title-custom {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.table thead th {
    font-weight: 600;
    color: #b5b5c3;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #ebedf3;
    background: #f9f9fc;
    padding: 15px 25px;
}

.table tbody td {
    padding: 15px 25px;
    vertical-align: middle;
    color: #464e5f;
    border-bottom: 1px solid #ebedf3;
    font-weight: 500;
}

.badge-light-success {
    background-color: #c9f7f5;
    color: #1bc5bd;
}

.badge-light-warning {
    background-color: #fff4de;
    color: #ffa800;
}

.badge-light-danger {
    background-color: #ffe2e5;
    color: #f64e60;
}

.badge-light-info {
    background-color: #e1f0ff;
    color: #3699ff;
}

/* Premium Server Cards */
.server-card-premium {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0px 0px 20px 0px rgba(76, 87, 125, 0.02);
    border: 1px solid #ebedf3;
    transition: all 0.3s ease;
    height: 100%;
}

.server-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0px 5px 30px 0px rgba(76, 87, 125, 0.08);
    border-color: var(--primary-color);
}

.server-icon-premium {
    width: 60px;
    height: 60px;
    background: #f3f6f9;
    color: #3699ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.server-card-premium .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.server-card-premium .text-muted {
    font-size: 0.85rem;
}

.server-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #7e8299;
    font-size: 0.85rem;
}

.server-info-item i {
    margin-right: 10px;
    color: #b5b5c3;
}

/* Responsive */
@media (max-width: 768px) {
    #sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
    }
    #sidebar.active {
        margin-left: 0;
    }
    #content {
        padding: 15px;
    }
}
