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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    color: #333;
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #9575cd 0%, #7e57c2 100%);
    padding: 24px;
}

.login-content {
    width: 100%;
    max-width: 500px;
}

.login-header {
    text-align: center;
    margin-bottom: 48px;
}

.admin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-bottom: 32px;
}

.login-header h1 {
    color: white;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 8px;
}

.login-header p {
    color: white;
    font-size: 18px;
    font-weight: 300;
}

.login-form-container {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #673ab7;
    box-shadow: 0 0 0 3px rgba(103, 58, 183, 0.1);
}

.error-message {
    background: #ffebee;
    border: 1px solid #ef5350;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    color: #c62828;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-button {
    width: 100%;
    padding: 16px;
    background: #673ab7;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-button:hover {
    background: #5e35b1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(103, 58, 183, 0.3);
}

.login-button:disabled {
    background: #9e9e9e;
    cursor: not-allowed;
    transform: none;
}

.loader {
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: white;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 24px;
    background: linear-gradient(135deg, #673ab7 0%, #9575cd 100%);
    color: white;
    text-align: center;
}

.admin-avatar {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.sidebar-header h2 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 4px;
}

.sidebar-header p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    word-break: break-all;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
    cursor: pointer;
}

.nav-item svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.nav-item:hover {
    background: #f5f5f5;
}

.nav-item.active {
    background: rgba(103, 58, 183, 0.1);
    border-left: 4px solid #673ab7;
    color: #673ab7;
}

.nav-title {
    font-weight: 600;
    font-size: 15px;
}

.nav-subtitle {
    font-size: 12px;
    color: #999;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.top-bar {
    height: 64px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title h1 {
    font-size: 20px;
    font-weight: bold;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-button {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.icon-button:hover {
    background: #f5f5f5;
}

/* Content Area */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

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

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-count {
    font-size: 32px;
    font-weight: bold;
}

.stat-title {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.filter-title {
    font-size: 14px;
    font-weight: bold;
    color: #666;
    margin-bottom: 12px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-chip {
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-chip:hover {
    background: #e0e0e0;
}

.filter-chip.active {
    background: rgba(103, 58, 183, 0.1);
    border-color: #673ab7;
    color: #673ab7;
    font-weight: bold;
}

/* Reports List */
.reports-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.reports-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.report-card {
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.report-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

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

.report-badges {
    display: flex;
    gap: 12px;
    align-items: center;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-pending {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
    border: 1.5px solid #ff9800;
}

.badge-reviewing {
    background: rgba(33, 150, 243, 0.1);
    color: #2196f3;
    border: 1.5px solid #2196f3;
}

.badge-resolved {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1.5px solid #4caf50;
}

.badge-dismissed {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1.5px solid #f44336;
}

.badge-reason {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.report-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.report-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #999;
    font-size: 14px;
}

.report-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

.empty-state svg {
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 18px;
}

/* Search Bar */
.search-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #673ab7;
    box-shadow: 0 0 0 3px rgba(103, 58, 183, 0.1);
}

/* User Cards */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 16px;
}

.user-card {
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
}

.user-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.user-card::after {
    content: 'Click to view details';
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-size: 10px;
    color: #999;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.user-card:hover::after {
    opacity: 0.6;
}

.user-header {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(103, 58, 183, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #673ab7;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    color: white;
}

.user-status-badge.suspended {
    background: #ff9800;
}

.user-status-badge.deleted {
    background: #f44336;
}

.user-email {
    color: #999;
    font-size: 14px;
    margin-bottom: 4px;
}

.user-joined {
    color: #999;
    font-size: 12px;
}

.user-stats {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.user-stat {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: #673ab7;
    color: white;
}

.btn-primary:hover {
    background: #5e35b1;
}

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

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

.btn-success {
    background: #4caf50;
    color: white;
}

.btn-success:hover {
    background: #43a047;
}

.btn-warning {
    background: #ff9800;
    color: white;
}

.btn-warning:hover {
    background: #fb8c00;
}

.btn-outline {
    background: transparent;
    border: 1px solid currentColor;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

/* Confirmation modals appear above regular modals */
.modal-overlay .modal-overlay {
    z-index: 1100;
    background: rgba(0, 0, 0, 0.7);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-title {
    flex: 1;
    font-size: 20px;
    font-weight: bold;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal textarea,
.modal input[type="text"],
.modal input[type="number"],
.modal select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: all 0.3s;
}

.modal textarea {
    min-height: 100px;
}

.modal textarea:focus,
.modal input:focus,
.modal select:focus {
    outline: none;
    border-color: #673ab7;
    box-shadow: 0 0 0 3px rgba(103, 58, 183, 0.1);
}

.modal label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

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

.modal-section:last-child {
    margin-bottom: 0;
}

.warning-box {
    background: #fff3e0;
    border: 1px solid #ffb74d;
    border-radius: 8px;
    padding: 12px;
    margin-top: 16px;
    display: flex;
    gap: 12px;
}

.warning-box svg {
    flex-shrink: 0;
}

.warning-box-content {
    flex: 1;
}

.warning-box-title {
    font-weight: bold;
    color: #f57c00;
    margin-bottom: 4px;
}

.warning-box-text {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

.danger-box {
    background: #ffebee;
    border: 1px solid #ef5350;
    border-radius: 8px;
    padding: 12px;
    margin-top: 16px;
    display: flex;
    gap: 12px;
}

.danger-box svg {
    flex-shrink: 0;
}

.danger-box-content {
    flex: 1;
}

.danger-box-title {
    font-weight: bold;
    color: #d32f2f;
    margin-bottom: 4px;
}

.danger-box-text {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

.info-box {
    background: #e3f2fd;
    border: 1px solid #64b5f6;
    border-radius: 8px;
    padding: 12px;
    margin-top: 16px;
    display: flex;
    gap: 12px;
}

.info-box svg {
    flex-shrink: 0;
}

.info-box-content {
    flex: 1;
}

.info-box-title {
    font-weight: bold;
    color: #1976d2;
    margin-bottom: 4px;
}

.info-box-text {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.char-counter {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.btn-cancel {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.btn-cancel:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #673ab7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Info Row */
.info-row {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

/* Video Container */
video {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .users-grid {
        grid-template-columns: 1fr;
    }
    
    .modal {
        width: 95% !important;
        max-width: 95% !important;
    }
}
