/* Strifteroi Admin Panel - Styles */
/* ================================ */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #64748b;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border-color: #334155;
    --border-radius: 12px;
    --border-radius-sm: 8px;

    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);

    --sidebar-width: 260px;
    --header-height: 70px;

    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ================================ */
/* LOGIN SCREEN */
/* ================================ */

.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    padding: 20px;
}

.login-container {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border-color);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 10px;
}

.login-logo h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.login-logo p {
    color: var(--text-secondary);
    font-size: 14px;
}

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

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

.login-form input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.error-message {
    color: var(--danger);
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
}

/* ================================ */
/* MAIN APP LAYOUT */
/* ================================ */

.main-app {
    display: flex;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* ================================ */
/* SIDEBAR */
/* ================================ */

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-darker);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: var(--transition);
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .sidebar-header span,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .sidebar-footer .btn span {
    display: none;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header i {
    font-size: 28px;
    color: var(--primary);
}

.sidebar-header span {
    font-size: 20px;
    font-weight: 700;
}

.sidebar-nav {
    flex: 1;
    padding: 15px 10px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    margin-bottom: 5px;
    transition: var(--transition);
    position: relative;
}

.nav-item:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--primary);
    color: white;
}

.nav-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.sidebar-footer {
    padding: 15px;
    border-top: 1px solid var(--border-color);
}

/* ================================ */
/* MAIN CONTENT */
/* ================================ */

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: var(--transition);
}

.sidebar.collapsed ~ .main-content {
    margin-left: 70px;
}

/* ================================ */
/* HEADER */
/* ================================ */

.header {
    height: var(--header-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 50;
}

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

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.admin-info i {
    color: var(--primary);
}

/* ================================ */
/* PAGE CONTENT */
/* ================================ */

.page-content {
    padding: 30px;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* ================================ */
/* STATS CARDS */
/* ================================ */

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

.stat-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-info h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ================================ */
/* CARDS */
/* ================================ */

.card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h2 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h2 i {
    color: var(--primary);
}

.card-body {
    padding: 24px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* ================================ */
/* LISTS */
/* ================================ */

.list-container {
    max-height: 350px;
    overflow-y: auto;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.list-item:hover {
    background: var(--bg-card-hover);
}

.list-item-info {
    flex: 1;
}

.list-item-info h4 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 3px;
}

.list-item-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

.list-item-date {
    font-size: 12px;
    color: var(--text-muted);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

/* ================================ */
/* TABLES */
/* ================================ */

.page-header {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-group select {
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.table-container {
    overflow-x: auto;
}

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

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    font-size: 14px;
}

tr:hover {
    background: var(--bg-card-hover);
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-cell {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ================================ */
/* BADGES */
/* ================================ */

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success, .badge-active {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.badge-warning, .badge-started {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.badge-danger, .badge-cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.badge-info, .badge-completed {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

.badge-secondary {
    background: rgba(100, 116, 139, 0.15);
    color: var(--secondary);
}

.badge-easy {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.badge-medium {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.badge-hard {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.badge-extreme {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

/* ================================ */
/* BUTTONS */
/* ================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--secondary);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--bg-card-hover);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* ================================ */
/* FORMS */
/* ================================ */

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-group input[readonly] {
    background: var(--bg-darker);
    cursor: not-allowed;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ================================ */
/* MODALS */
/* ================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.modal-large {
    max-width: 800px;
}

.modal-small {
    max-width: 400px;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h2 i {
    color: var(--primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
}

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

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* User Modal */
.user-detail-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
}

.user-profile-section {
    text-align: center;
}

.user-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--primary);
}

.user-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.user-stats .stat {
    text-align: center;
}

.user-stats .stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.user-stats .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.user-info-section h3 {
    margin: 20px 0 15px 0;
    font-size: 16px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info-section h3 i {
    color: var(--danger);
}

/* Ride/Route Details */
.ride-detail-grid,
.route-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.detail-section {
    background: var(--bg-dark);
    padding: 20px;
    border-radius: var(--border-radius-sm);
}

.detail-section.full-width {
    grid-column: span 2;
}

.detail-section h3 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section h3 i {
    color: var(--primary);
}

.detail-section p {
    margin-bottom: 8px;
    font-size: 14px;
}

.detail-section p strong {
    color: var(--text-secondary);
}

/* ================================ */
/* SOS ALERTS */
/* ================================ */

.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--warning);
    color: var(--warning);
}

.sos-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sos-card {
    background: var(--bg-dark);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid var(--border-color);
}

.sos-card.sos-active {
    border-color: var(--danger);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

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

.sos-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sos-user h3 {
    font-size: 16px;
    margin-bottom: 2px;
}

.sos-user p {
    font-size: 13px;
    color: var(--text-secondary);
}

.sos-body {
    margin-bottom: 15px;
}

.sos-body > p {
    margin-bottom: 15px;
    font-size: 15px;
}

.sos-emergency-info {
    background: var(--bg-card);
    padding: 15px;
    border-radius: var(--border-radius-sm);
}

.sos-emergency-info p {
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sos-emergency-info p i {
    color: var(--danger);
    width: 20px;
}

.sos-footer {
    display: flex;
    gap: 10px;
}

.sos-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: var(--border-radius-sm);
    background: var(--bg-dark);
}

.sos-item.sos-active {
    border: 1px solid var(--danger);
}

.sos-icon {
    width: 40px;
    height: 40px;
    background: rgba(239, 68, 68, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger);
}

.sos-info {
    flex: 1;
}

.sos-info h4 {
    font-size: 15px;
    margin-bottom: 3px;
}

.sos-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

.sos-info small {
    font-size: 12px;
    color: var(--text-muted);
}

/* ================================ */
/* MESSAGES */
/* ================================ */

.messages-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 20px;
    height: calc(100vh - 200px);
}

.conversations-list {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.conversations-list .card-body {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.conversation-item:hover {
    background: var(--bg-card-hover);
}

.conversation-info h4 {
    font-size: 14px;
    margin-bottom: 3px;
}

.conversation-info p {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.conversation-date {
    font-size: 12px;
    color: var(--text-muted);
}

.messages-view {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message-item {
    background: var(--bg-dark);
    padding: 15px;
    border-radius: var(--border-radius-sm);
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.message-header strong {
    color: var(--primary-light);
}

.message-header span {
    color: var(--text-muted);
}

.message-item p {
    font-size: 14px;
}

/* ================================ */
/* TAGS & RATINGS */
/* ================================ */

.tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-dark);
    border-radius: 20px;
    font-size: 12px;
    margin: 3px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--warning);
}

.star-filled {
    color: var(--warning);
}

.star-empty {
    color: var(--text-muted);
}

/* ================================ */
/* RIDE ICON */
/* ================================ */

.ride-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.ride-icon.status-active {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.ride-icon.status-started {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

/* ================================ */
/* PHOTOS GRID */
/* ================================ */

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.route-photo {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.route-photo:hover {
    transform: scale(1.05);
}

/* ================================ */
/* TOAST */
/* ================================ */

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-card);
    padding: 15px 25px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transform: translateX(150%);
    transition: transform 0.3s ease;
    z-index: 2000;
}

.toast.show {
    transform: translateX(0);
}

.toast-success i {
    color: var(--success);
}

.toast-error i {
    color: var(--danger);
}

/* ================================ */
/* LOADING & EMPTY STATES */
/* ================================ */

.loading {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.error {
    text-align: center;
    padding: 30px;
    color: var(--danger);
}

/* ================================ */
/* NOTIFICATION FORM */
/* ================================ */

#notificationForm {
    max-width: 600px;
}

#notifBody {
    resize: vertical;
    min-height: 100px;
}

.notif-icon {
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

/* ================================ */
/* SCROLLBAR */
/* ================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* ================================ */
/* RESPONSIVE */
/* ================================ */

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .user-detail-grid {
        grid-template-columns: 1fr;
    }

    .user-profile-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .messages-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .conversations-list {
        max-height: 300px;
    }

    .ride-detail-grid,
    .route-detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-section.full-width {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .page-content {
        padding: 20px;
    }

    .header {
        padding: 0 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
    }

    .search-box {
        min-width: 100%;
    }

    .modal-content {
        margin: 10px;
    }

    .modal-footer {
        flex-wrap: wrap;
    }

    .modal-footer .btn {
        flex: 1;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
    }

    .stat-info h3 {
        font-size: 22px;
    }
}

/* ================================ */
/* ENHANCED USER FEATURES */
/* ================================ */

/* User Quick Actions */
.user-quick-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-quick-actions .btn {
    width: 100%;
}

/* ID Field Styling */
.id-field {
    font-family: 'Courier New', monospace;
    font-size: 12px !important;
    color: var(--text-muted) !important;
    background: var(--bg-darker) !important;
}

/* Warning Button */
.btn-warning {
    background: var(--warning);
    color: #000;
}

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

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-success:hover {
    background: #16a34a;
}

/* Filter Group with Button */
.filter-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* SOS Realtime Popup */
.sos-popup {
    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: 3000;
    animation: fadeIn 0.3s ease;
}

.sos-popup.hidden {
    display: none;
}

.sos-popup-content {
    background: var(--bg-card);
    border: 3px solid var(--danger);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    max-width: 400px;
    animation: shake 0.5s ease-in-out, pulseGlow 2s infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.5); }
    50% { box-shadow: 0 0 40px rgba(239, 68, 68, 0.8); }
}

.sos-popup-content i {
    font-size: 60px;
    color: var(--danger);
    margin-bottom: 20px;
    animation: pulse 1s infinite;
}

.sos-popup-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--danger);
}

.sos-popup-content p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.sos-popup-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Modal Header Badge */
.modal-header .badge {
    margin-left: 10px;
}

/* Banned Status Badge */
.badge-banned {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

/* User ID Short Display */
.id-short {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-dark);
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
}

.id-short:hover {
    background: var(--bg-card-hover);
}

/* Copy Button Inline */
.copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 6px;
    margin-left: 5px;
    font-size: 12px;
    transition: var(--transition);
}

.copy-btn:hover {
    color: var(--primary);
}

/* Status Indicator */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.active {
    background: var(--success);
}

.status-dot.banned {
    background: var(--danger);
}

.status-dot.inactive {
    background: var(--text-muted);
}

/* Last Active Text */
.last-active-text {
    font-size: 12px;
    color: var(--text-muted);
}

/* ================================ */
/* BACKUP & RESTORE PAGE */
/* ================================ */

.backup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.backup-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.export-options,
.import-options {
    margin-bottom: 20px;
}

.export-options h4 {
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 14px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: var(--bg-dark);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.checkbox-label:hover {
    background: var(--bg-card-hover);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.export-actions,
.import-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.progress-container {
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-dark);
    border-radius: var(--border-radius-sm);
}

.progress-bar {
    height: 8px;
    background: var(--bg-card-hover);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    width: 0%;
    transition: width 0.3s ease;
}

.progress-container p {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
}

.file-input {
    width: 100%;
    padding: 15px;
    background: var(--bg-dark);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.file-input:hover {
    border-color: var(--primary);
}

.import-preview {
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-dark);
    border-radius: var(--border-radius-sm);
    max-height: 200px;
    overflow-y: auto;
}

.import-preview h4 {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.preview-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.preview-item .collection-name {
    font-weight: 500;
}

.preview-item .collection-count {
    color: var(--primary);
    font-weight: 600;
}

.backup-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-dark);
    border-radius: var(--border-radius-sm);
}

.stat-item .stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.stat-item .stat-name {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--danger);
    color: var(--danger);
}

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

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .export-actions,
    .import-actions {
        flex-direction: column;
    }
}

/* ================================ */
/* NAV DIVIDER */
/* ================================ */

.nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 15px 10px;
}

/* ================================ */
/* ANALYTICS PAGE */
/* ================================ */

.analytics-period {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.analytics-period select {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 14px;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.chart-card .card-body {
    height: 300px;
    position: relative;
}

.analytics-summary {
    margin-top: 20px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.summary-stat {
    text-align: center;
    padding: 20px;
    background: var(--bg-dark);
    border-radius: var(--border-radius-sm);
}

.summary-stat .summary-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.summary-stat .summary-label {
    font-size: 13px;
    color: var(--text-secondary);
}

@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================ */
/* VERIFICATION PAGE */
/* ================================ */

.verification-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card.mini {
    padding: 15px 20px;
}

.stat-card.mini .stat-icon {
    width: 45px;
    height: 45px;
    font-size: 18px;
}

.stat-card.mini .stat-info h3 {
    font-size: 24px;
}

.verification-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.verification-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-dark);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.verification-card:hover {
    background: var(--bg-card-hover);
}

.verification-user {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.verification-user h4 {
    margin-bottom: 3px;
}

.verification-user p {
    font-size: 13px;
    color: var(--text-secondary);
}

.verification-type {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.verification-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.verification-meta .date {
    font-size: 12px;
    color: var(--text-muted);
}

.verification-doc-image {
    max-width: 100%;
    border-radius: var(--border-radius-sm);
    margin-top: 10px;
}

/* ================================ */
/* REPORTS PAGE */
/* ================================ */

.report-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ================================ */
/* LEADERBOARDS PAGE */
/* ================================ */

.leaderboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.leaderboard-period {
    margin-bottom: 20px;
}

.leaderboard-period select {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: var(--bg-dark);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.leaderboard-item:hover {
    background: var(--bg-card-hover);
}

.leaderboard-item .rank {
    font-size: 20px;
    font-weight: 700;
    width: 40px;
    text-align: center;
    color: var(--text-muted);
}

.leaderboard-item.medal-1 .rank {
    color: #ffd700;
}

.leaderboard-item.medal-2 .rank {
    color: #c0c0c0;
}

.leaderboard-item.medal-3 .rank {
    color: #cd7f32;
}

.leaderboard-item.medal-1,
.leaderboard-item.medal-2,
.leaderboard-item.medal-3 {
    border: 1px solid var(--border-color);
}

.leaderboard-user-info {
    flex: 1;
}

.leaderboard-user-info h4 {
    margin-bottom: 3px;
}

.leaderboard-user-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

.leaderboard-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

/* ================================ */
/* EVENTS PAGE */
/* ================================ */

.events-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.event-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.event-card.past {
    opacity: 0.6;
}

.event-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.event-content {
    padding: 20px;
}

.event-type {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    border-radius: 20px;
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.event-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.event-date,
.event-location,
.event-participants {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.event-date i,
.event-location i,
.event-participants i {
    color: var(--primary);
    width: 16px;
}

.event-actions {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

/* ================================ */
/* FEATURE FLAGS PAGE */
/* ================================ */

.feature-flags-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-flag-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-dark);
    border-radius: var(--border-radius-sm);
}

.flag-info {
    flex: 1;
}

.flag-info code {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-card);
    border-radius: 4px;
    font-size: 14px;
    color: var(--primary-light);
    margin-bottom: 5px;
}

.flag-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-card-hover);
    transition: 0.3s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--success);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Changelog */
.changelog-list {
    max-height: 300px;
    overflow-y: auto;
}

.changelog-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.changelog-action {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.changelog-item code {
    flex: 1;
    font-size: 13px;
    color: var(--text-secondary);
}

.changelog-by {
    font-size: 12px;
    color: var(--text-muted);
}

.changelog-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* ================================ */
/* SUPPORT TICKETS PAGE */
/* ================================ */

.support-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.priority-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.priority-high {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.priority-medium {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.priority-low {
    background: rgba(100, 116, 139, 0.15);
    color: var(--secondary);
}

.ticket-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.ticket-subject {
    padding: 15px 20px;
    background: var(--bg-dark);
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
}

.ticket-subject h4 {
    margin: 0;
}

.ticket-messages {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.ticket-message {
    padding: 15px;
    border-radius: var(--border-radius-sm);
}

.ticket-message.user-message {
    background: var(--bg-dark);
    margin-right: 40px;
}

.ticket-message.admin-message {
    background: rgba(99, 102, 241, 0.15);
    margin-left: 40px;
}

.ticket-message .message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.ticket-message .message-header strong {
    color: var(--primary-light);
}

.ticket-message p {
    font-size: 14px;
}

.ticket-reply-section {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.ticket-reply-section h4 {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.ticket-reply-section textarea {
    width: 100%;
    padding: 15px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    resize: vertical;
}

.ticket-reply-section textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Modal Footer with Select */
.modal-footer select {
    padding: 10px 15px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
}

/* ================================ */
/* RESPONSIVE FOR NEW FEATURES */
/* ================================ */

@media (max-width: 1024px) {
    .verification-stats,
    .support-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .verification-stats,
    .support-stats {
        grid-template-columns: 1fr;
    }

    .leaderboard-tabs,
    .events-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
        min-width: 100px;
        justify-content: center;
    }

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

    .verification-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .verification-meta {
        align-items: flex-start;
        flex-direction: row;
        gap: 10px;
    }

    .ticket-info-grid,
    .report-detail-grid {
        grid-template-columns: 1fr;
    }

    .ticket-message.user-message,
    .ticket-message.admin-message {
        margin-left: 0;
        margin-right: 0;
    }
}

/* ================================ */
/* LIVE ACTIVITY PAGE */
/* ================================ */

.live-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--danger);
}

.live-dot {
    width: 12px;
    height: 12px;
    background: var(--danger);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.live-dot.paused {
    animation: none;
    background: var(--secondary);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    margin-left: 8px;
    animation: pulse 2s ease-in-out infinite;
}

.live-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
    margin-bottom: 20px;
}

.live-feed-card {
    height: 500px;
    display: flex;
    flex-direction: column;
}

.live-feed-card .card-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.activity-feed {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg-dark);
    border-radius: var(--border-radius-sm);
    margin-bottom: 10px;
    border-left: 3px solid var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.activity-item:hover {
    background: var(--bg-card-hover);
}

.activity-item.type-ride { border-left-color: var(--success); }
.activity-item.type-user { border-left-color: var(--info); }
.activity-item.type-photo { border-left-color: var(--warning); }
.activity-item.type-message { border-left-color: var(--primary); }
.activity-item.type-sos { border-left-color: var(--danger); }
.activity-item.type-report { border-left-color: #f97316; }

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.activity-icon.ride { background: rgba(34, 197, 94, 0.2); color: var(--success); }
.activity-icon.user { background: rgba(59, 130, 246, 0.2); color: var(--info); }
.activity-icon.photo { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.activity-icon.message { background: rgba(99, 102, 241, 0.2); color: var(--primary); }
.activity-icon.sos { background: rgba(239, 68, 68, 0.2); color: var(--danger); }
.activity-icon.report { background: rgba(249, 115, 22, 0.2); color: #f97316; }

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.activity-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.activity-time {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

.activity-actions {
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: var(--transition);
}

.activity-item:hover .activity-actions {
    opacity: 1;
}

/* Live Stats Panel */
.live-stats-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.active-now-stats {
    display: flex;
    gap: 20px;
}

.stat-mini {
    text-align: center;
    flex: 1;
}

.stat-value-lg {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

/* Photos Grid */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.photo-thumb {
    aspect-ratio: 1;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.photo-thumb:hover img {
    transform: scale(1.1);
}

.photo-thumb .photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.photo-thumb:hover .photo-overlay {
    opacity: 1;
}

/* Pending Actions */
.pending-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-dark);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.pending-item:hover {
    background: var(--bg-card-hover);
}

.pending-item i {
    font-size: 18px;
}

.pending-item span:first-of-type {
    flex: 1;
}

/* Moderation Section */
.moderation-section {
    margin-bottom: 20px;
}

.moderation-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.moderation-content {
    min-height: 300px;
}

.moderation-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.moderation-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.moderation-card {
    background: var(--bg-dark);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.moderation-card-preview {
    height: 150px;
    overflow: hidden;
}

.moderation-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.moderation-card-preview.text-content {
    padding: 15px;
    background: var(--bg-card);
    font-size: 13px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
}

.moderation-card-info {
    padding: 12px;
}

.moderation-card-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.moderation-card-user img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.moderation-card-user span {
    font-size: 13px;
    font-weight: 500;
}

.moderation-card-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.moderation-card-actions {
    display: flex;
    gap: 8px;
}

.moderation-card-actions .btn {
    flex: 1;
    font-size: 12px;
    padding: 6px 10px;
}

/* Photo Modal */
.photo-review-container {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 20px;
}

.photo-preview-large {
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--bg-dark);
}

.photo-preview-large img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.photo-info {
    background: var(--bg-dark);
    padding: 20px;
    border-radius: var(--border-radius);
}

.photo-info .info-row {
    margin-bottom: 15px;
}

.photo-info label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.photo-info span {
    font-weight: 500;
}

/* Audit Log Table */
#auditLogTable {
    width: 100%;
}

#auditLogTable td:first-child {
    white-space: nowrap;
    font-size: 12px;
    color: var(--text-muted);
}

#auditLogTable td:nth-child(2) {
    color: var(--primary-light);
}

#auditLogTable td:nth-child(3) {
    font-weight: 500;
}

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

    .live-stats-panel {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .live-stats-panel .card {
        flex: 1;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .live-header {
        flex-direction: column;
        gap: 15px;
    }

    .live-controls {
        flex-wrap: wrap;
        justify-content: center;
    }

    .photo-review-container {
        grid-template-columns: 1fr;
    }

    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
