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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #1e1e1e;
    color: #e0e0e0;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background-color: #252526;
    border-right: 1px solid #3d3d3d;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #3d3d3d;
}

.sidebar-header h1 {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 4px;
}

.sidebar-header .version {
    font-size: 12px;
    color: #808080;
}

.nav-menu {
    list-style: none;
    padding: 16px 0;
}

.nav-menu li a {
    display: block;
    padding: 12px 20px;
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-menu li a:hover {
    background-color: #2d2d2d;
    color: #ffffff;
}

.nav-menu li a.active {
    background-color: #0078d4;
    color: #ffffff;
}

.content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

/* Cards */
.card {
    background-color: #252526;
    border: 1px solid #3d3d3d;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

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

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background-color: #252526;
    border: 1px solid #3d3d3d;
    border-radius: 6px;
    padding: 20px;
}

.stat-label {
    font-size: 12px;
    color: #808080;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
}

.stat-value.online {
    color: #00d26a;
}

.stat-value.warning {
    color: #FFB900;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #3d3d3d;
}

table th {
    background-color: #333333;
    color: #b0b0b0;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
}

table tr:hover {
    background-color: #2d2d2d;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #0078d4;
    color: white;
}

.btn-primary:hover {
    background-color: #106ebe;
}

.btn-success {
    background-color: #107C10;
    color: white;
}

.btn-success:hover {
    background-color: #0e6b0e;
}

.btn-danger {
    background-color: #d13438;
    color: white;
}

.btn-danger:hover {
    background-color: #a4262c;
}

.btn-secondary {
    background-color: #3d3d3d;
    color: white;
}

.btn-secondary:hover {
    background-color: #4d4d4d;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 11px;
}

/* Status badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.badge-success {
    background-color: rgba(0, 210, 106, 0.2);
    color: #00d26a;
}

.badge-warning {
    background-color: rgba(255, 185, 0, 0.2);
    color: #FFB900;
}

.badge-danger {
    background-color: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 12px;
    color: #b0b0b0;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    background-color: #2d2d2d;
    border: 1px solid #3d3d3d;
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: #0078d4;
}

/* Upload area */
.upload-area {
    border: 2px dashed #3d3d3d;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    transition: all 0.2s;
}

.upload-area:hover {
    border-color: #0078d4;
    background-color: rgba(0, 120, 212, 0.1);
}

.upload-area input[type="file"] {
    display: none;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.alert-success {
    background-color: rgba(0, 210, 106, 0.2);
    color: #00d26a;
    border: 1px solid #00d26a;
}

.alert-danger {
    background-color: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
}

.alert-info {
    background-color: rgba(0, 120, 212, 0.2);
    color: #0078d4;
    border: 1px solid #0078d4;
}

/* Loading */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: #808080;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #3d3d3d;
    }

    .nav-menu {
        display: flex;
        overflow-x: auto;
        padding: 0;
    }

    .nav-menu li a {
        white-space: nowrap;
    }
}
