/* ========================================
   Admin Dashboard - Black/Cyan Theme
   ======================================== */

body {
    background: linear-gradient(135deg, #000000, #1a1a1a);
    color: #ffffff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* ========================================
   Container
   ======================================== */
.admin-container {
    max-width: 1400px;
    margin: 80px auto 40px;
    padding: 20px;
}

/* ========================================
   Header
   ======================================== */
.admin-header {
    margin-bottom: 30px;
    text-align: center;
}

.admin-header h1 {
    font-size: 32px;
    margin: 0 0 10px 0;
    color: #00ffcc;
}

.admin-subtitle {
    color: #999;
    font-size: 16px;
    margin: 0;
}

/* ========================================
   Tabs Navigation
   ======================================== */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.admin-tab {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-tab:hover {
    border-color: #00ffcc;
    background: rgba(0, 255, 204, 0.1);
    transform: translateY(-2px);
}

.admin-tab.active {
    background: rgba(0, 255, 204, 0.2);
    border-color: #00ffcc;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
}

/* ========================================
   Tab Panels
   ======================================== */
.admin-content {
    min-height: 500px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.panel-header h2 {
    margin: 0;
    font-size: 24px;
    color: #00ffcc;
}

.panel-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ========================================
   Form Controls
   ======================================== */
.admin-search,
.admin-select {
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.admin-search {
    min-width: 250px;
}

.admin-search:focus,
.admin-select:focus {
    border-color: #00ffcc;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

.admin-select {
    cursor: pointer;
}

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

.stat-card {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #00ffcc;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.2);
    transform: translateY(-2px);
}

.stat-card.alert {
    border-color: rgba(255, 68, 68, 0.5);
}

.stat-card.alert:hover {
    border-color: #ff4444;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.3);
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #00ffcc;
    margin-bottom: 8px;
}

.stat-card.alert .stat-value {
    color: #ff4444;
}

.stat-label {
    font-size: 14px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   Tables
   ======================================== */
.table-container {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
}

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

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 255, 204, 0.1);
}

.admin-table th {
    background: rgba(0, 255, 204, 0.1);
    color: #00ffcc;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.admin-table tr:hover {
    background: rgba(0, 255, 204, 0.05);
}

.admin-table td {
    color: #ffffff;
    font-size: 14px;
}

/* ========================================
   Badges
   ======================================== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-admin {
    background: rgba(0, 255, 204, 0.2);
    color: #00ffcc;
    border: 1px solid #00ffcc;
}

.badge-banned {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border: 1px solid #ff4444;
}

.badge-active {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid #00ff00;
}

/* ========================================
   Action Buttons
   ======================================== */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-action {
    padding: 6px 12px;
    border: 1px solid rgba(0, 255, 204, 0.3);
    background: transparent;
    color: #00ffcc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-action:hover {
    background: rgba(0, 255, 204, 0.2);
    border-color: #00ffcc;
}

.btn-danger {
    border-color: rgba(255, 68, 68, 0.5);
    color: #ff4444;
}

.btn-danger:hover {
    background: rgba(255, 68, 68, 0.2);
    border-color: #ff4444;
}

/* ========================================
   Content List
   ======================================== */
.content-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.content-item {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.content-item:hover {
    border-color: #00ffcc;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.1);
}

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

.content-meta {
    font-size: 13px;
    color: #999;
}

.content-body {
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 10px;
}

.content-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 255, 204, 0.1);
}

/* ========================================
   Activity List
   ======================================== */
.activity-list {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 12px;
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
}

.activity-item {
    padding: 15px;
    border-bottom: 1px solid rgba(0, 255, 204, 0.1);
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

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

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 255, 204, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ffcc;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.activity-time {
    font-size: 12px;
    color: #999;
}

/* ========================================
   Modal
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: #1a1a1a;
    border: 2px solid rgba(0, 255, 204, 0.5);
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #999;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ffffff;
}

/* ========================================
   Buttons
   ======================================== */
.waino-btn-secondary {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.waino-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

.waino-btn-danger {
    padding: 10px 20px;
    background: #ff4444;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.waino-btn-danger:hover {
    background: #ff6666;
    transform: translateY(-1px);
}

/* ========================================
   Loading State
   ======================================== */
.loading {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

/* ========================================
   User Name in Navbar
   ======================================== */
.admin-user-name {
    margin-right: 15px;
    color: #00ffcc;
    font-weight: 600;
}

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

    .admin-tab {
        min-width: 100%;
    }

    .panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .panel-controls {
        width: 100%;
        flex-direction: column;
    }

    .admin-search,
    .admin-select {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}
