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

body {
    background: #0a0e14;
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    min-height: 100vh;
}

.admin-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Header */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(180deg, #1a1f2e 0%, #0f1318 100%);
    border-bottom: 2px solid #ff9900;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-btn {
    color: #ff9900;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 15px;
    border: 1px solid #ff9900;
    border-radius: 5px;
    transition: all 0.3s;
}

.back-btn:hover {
    background: #ff9900;
    color: #0a0e14;
}

.header-logo {
    height: 28px;
    width: auto;
    margin: 0 12px;
    filter: drop-shadow(0 0 8px rgba(255, 153, 0, 0.5));
}

.admin-title {
    font-size: 24px;
    font-weight: bold;
    color: #ff9900;
    text-shadow: 0 0 10px #ff990055;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-nav-links .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 153, 0, 0.1);
    border: 2px solid rgba(255, 153, 0, 0.3);
    border-radius: 8px;
    color: #ff9900;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.2s;
    cursor: pointer;
}

.admin-nav-links .nav-link:hover {
    background: rgba(255, 153, 0, 0.2);
    border-color: #ff9900;
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.3);
}

.admin-nav-links .nav-link.active {
    background: #ff9900;
    border-color: #ff9900;
    color: #0a0e14;
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.5);
}

.stats-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 15px;
    background: rgba(255, 153, 0, 0.1);
    border: 1px solid #ff990033;
    border-radius: 5px;
}

.stats-box.online {
    background: rgba(0, 255, 100, 0.1);
    border-color: #00ff6433;
}

.stats-box.online .stat-value {
    color: #00ff64;
}

.stat-label {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #ff9900;
}

/* Controls */
.controls-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    background: #12171f;
    border-bottom: 1px solid #2a3040;
}

.search-group, .filter-group, .sort-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label, .sort-group label {
    color: #888;
    font-size: 12px;
}

select, input[type="text"], input[type="number"] {
    background: #1a1f2e;
    border: 1px solid #2a3040;
    color: #e0e0e0;
    padding: 8px 12px;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
}

select:focus, input:focus {
    outline: none;
    border-color: #ff9900;
}

input[type="text"] {
    width: 250px;
}

.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s;
}

.refresh-btn {
    background: #ff9900;
    color: #0a0e14;
}

.refresh-btn:hover {
    background: #cc7a00;
    box-shadow: 0 0 15px #ff990055;
}

/* Table */
.table-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.users-table th {
    background: #1a1f2e;
    color: #ff9900;
    padding: 12px 10px;
    text-align: left;
    border-bottom: 2px solid #ff990033;
    position: sticky;
    top: 0;
}

.users-table td {
    padding: 10px;
    border-bottom: 1px solid #2a3040;
}

.users-table tr:hover {
    background: #12171f;
}

.users-table .loading {
    text-align: center;
    color: #666;
    padding: 50px;
}

/* Status indicators */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-dot.online { background: #00ff64; box-shadow: 0 0 8px #00ff64; }
.status-dot.offline { background: #666; }
.status-dot.banned { background: #ff3232; box-shadow: 0 0 8px #ff3232; }
.status-dot.admin { background: #ffaa00; box-shadow: 0 0 8px #ffaa00; }

.user-row.banned {
    background: rgba(255, 50, 50, 0.1);
}

.user-row.admin td:nth-child(3) {
    color: #ffaa00;
}

.action-btn {
    padding: 5px 10px;
    font-size: 11px;
    margin-right: 5px;
}

.action-btn.edit {
    background: #00f3ff;
    color: #0a0e14;
}

.action-btn.ban {
    background: #ff3232;
    color: white;
}

.action-btn.unban {
    background: #00ff64;
    color: #0a0e14;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #12171f;
    border: 2px solid #ff9900;
    border-radius: 10px;
    width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #2a3040;
}

.modal-header h2 {
    color: #ff9900;
    font-size: 18px;
}

.close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
}

.close-btn:hover {
    color: #ff3232;
}

.modal-body {
    padding: 20px;
}

.user-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.stat-card {
    background: #1a1f2e;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.stat-card label {
    display: block;
    font-size: 10px;
    color: #888;
    margin-bottom: 5px;
}

.stat-card span {
    color: #00f3ff;
    font-weight: bold;
}

.edit-section {
    margin-bottom: 20px;
}

.edit-section h3 {
    color: #ff9900;
    font-size: 14px;
    margin-bottom: 15px;
}

.edit-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.field-group label {
    font-size: 11px;
    color: #888;
}

.field-group input {
    width: 100%;
}

.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid #2a3040;
}

.save-btn {
    background: #00ff64;
    color: #0a0e14;
}

.save-btn:hover {
    background: #00cc50;
}

.ban-btn {
    background: #ff3232;
    color: white;
}

.ban-btn:hover {
    background: #cc2828;
}

.ban-btn.unban {
    background: #00ff64;
    color: #0a0e14;
}

/* Scrollbar */
.table-container::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.table-container::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track {
    background: #0a0e14;
}

.table-container::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb {
    background: #2a3040;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover {
    background: #3a4050;
}
