/* Admin Panel Specific Styles */

.tabs {
    display: flex;
    gap: 8px;
    margin: 32px 0 24px 0;
    border-bottom: 2px solid #e2e8f0;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #718096;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #2a5298;
    background: #f7fafc;
}

.tab-btn.active {
    color: #2a5298;
    border-bottom-color: #2a5298;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.panel-header h2 {
    color: #1e3c72;
    font-size: 24px;
}

/* Data Table */
.data-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.data-table thead {
    background: #f7fafc;
}

.data-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #2c3e50;
    font-size: 14px;
}

.data-table tr:hover {
    background: #f7fafc;
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* Action Buttons in Table */
.action-btn {
    padding: 6px 12px;
    margin-right: 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.action-btn.edit {
    background: #3182ce;
    color: white;
}

.action-btn.edit:hover {
    background: #2c5282;
}

.action-btn.delete {
    background: #e53e3e;
    color: white;
}

.action-btn.delete:hover {
    background: #c53030;
}

.action-btn.approve {
    background: #48bb78;
    color: white;
}

.action-btn.approve:hover {
    background: #38a169;
}

.action-btn.reject {
    background: #f56565;
    color: white;
}

.action-btn.reject:hover {
    background: #e53e3e;
}

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

.status-badge.online {
    background: #c6f6d5;
    color: #22543d;
}

.status-badge.offline {
    background: #fed7d7;
    color: #742a2a;
}

.status-badge.unknown {
    background: #e2e8f0;
    color: #4a5568;
}

.status-badge.pending {
    background: #feebc8;
    color: #7c2d12;
}

.status-badge.approved {
    background: #c6f6d5;
    color: #22543d;
}

.status-badge.rejected {
    background: #fed7d7;
    color: #742a2a;
}

.status-badge.expired {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-small {
    padding: 4px 8px;
    font-size: 12px;
    margin-right: 5px;
}

.btn-success {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-danger:hover {
    background: #c82333;
}

.text-muted {
    color: #6c757d;
    font-size: 12px;
}

.stats-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    min-width: 120px;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #2d3748;
}

.stat-label {
    font-size: 12px;
    color: #718096;
    text-transform: uppercase;
    margin-top: 5px;
}

/* Analytics */
.analytics-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.analytics-controls select {
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

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

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

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

.stat-label {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
}

.analytics-section {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.analytics-section h3 {
    color: #1e3c72;
    font-size: 18px;
    margin-bottom: 16px;
}

/* Audit Filters */
.audit-filters {
    display: flex;
    gap: 12px;
    align-items: center;
}

.audit-filters input,
.audit-filters select {
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
}

.audit-filters input[type="text"] {
    flex: 1;
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-height: 200px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-grid input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .analytics-controls,
    .audit-filters {
        flex-direction: column;
        width: 100%;
    }
    
    .analytics-controls select,
    .audit-filters input,
    .audit-filters select {
        width: 100%;
    }
}

/* Profile Container */
.profile-container {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
}

.profile-picture-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.profile-picture-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e2e8f0;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
    color: #4a5568;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .profile-container {
        grid-template-columns: 1fr;
    }
}

/* Video Settings */
.video-settings-container {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    max-width: 800px;
}

.video-preview-section {
    background: #f7fafc;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

#videoPreviewPlayer {
    width: 640px;
    height: 360px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto;
}

@media (max-width: 768px) {
    #videoPreviewPlayer {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}
