/* ===============================
   TRUE BOND ADMIN PANEL - MODERN UI
   =============================== */

:root {
    --primary-color: #522C7D;
    --secondary-color: #F4B7C8;
    --accent-color: #667eea;
    --background-color: #f7fafc;
    --sidebar-bg: #1a1043;
    --text-light: #edf2f7;
    --text-dark: #2d3748;
    --danger-color: #e53e3e;
    --success-color: #38a169;
    --warning-color: #d69e2e;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body, html {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-color);
    color: var(--text-dark);
    height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- LOGIN VIEW --- */
#login-view {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--sidebar-bg) 0%, var(--primary-color) 100%);
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    animation: slideUp 0.5s ease;
}

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

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

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

.login-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.login-header p {
    color: #718096;
    font-size: 14px;
}

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

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

.input-group label i {
    margin-right: 8px;
    color: var(--primary-color);
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    font-family: inherit;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.error-message {
    color: var(--danger-color);
    font-size: 14px;
    margin-bottom: 16px;
    padding: 12px;
    background: #fed7d7;
    border-radius: 8px;
    display: none;
}

.error-message:not(:empty) {
    display: block;
}

#login-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#login-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

#login-button i {
    margin-right: 8px;
}

/* --- DASHBOARD VIEW --- */
#dashboard-view {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* --- SIDEBAR --- */
.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo i {
    font-size: 28px;
    color: var(--secondary-color);
}

.logo h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.sidebar nav {
    flex-grow: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 15px;
}

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

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-link.active {
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    color: white;
    border-left: 4px solid var(--secondary-color);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.admin-info i {
    font-size: 20px;
}

#logout-button {
    width: 100%;
    padding: 10px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

#logout-button:hover {
    background: #c53030;
}

#logout-button i {
    margin-right: 8px;
}

/* --- CONTENT AREA --- */
.content {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    background: var(--background-color);
}

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

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

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

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header h1 i {
    color: var(--primary-color);
}

.subtitle {
    color: #718096;
    font-size: 16px;
}

/* --- STATS GRID --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.analytics-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    min-height: 320px;
    position: relative;
}

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

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f8f9ff;
    border: 1px solid var(--border-color);
}

.leaderboard-item strong {
    color: var(--text-dark);
}

.leaderboard-count {
    font-weight: 700;
    color: var(--primary-color);
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4a5568;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.stat-icon.male {
    background: linear-gradient(135deg, #4299e1, #3182ce);
}

.stat-icon.female {
    background: linear-gradient(135deg, #f687b3, #ed64a6);
}

.stat-icon.total {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.stat-icon.new {
    background: linear-gradient(135deg, var(--success-color), #2f855a);
}

.stat-icon.matches {
    background: linear-gradient(135deg, #fc8181, #f56565);
}

.stat-icon.reports {
    background: linear-gradient(135deg, var(--warning-color), #c05621);
}

.stat-info h4 {
    font-size: 14px;
    font-weight: 500;
    color: #718096;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

/* --- SEARCH & FILTERS --- */
.search-filters {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.search-box {
    position: relative;
    margin-bottom: 16px;
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
}

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

.filters select {
    flex: 1;
    min-width: 150px;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
}

.btn-primary {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    padding: 10px 20px;
    background: var(--sidebar-bg);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: #251657;
}

/* --- DATA TABLES --- */
.data-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

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

.data-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

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

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

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

.badge.success {
    background: #c6f6d5;
    color: #22543d;
}

.badge.warning {
    background: #fefcbf;
    color: #744210;
}

.badge.danger {
    background: #fed7d7;
    color: #742a2a;
}

.badge.secondary {
    background: #e2e8f0;
    color: #4a5568;
}

/* --- BUTTONS --- */
.btn-sm {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    margin: 0 4px;
    transition: all 0.2s;
}

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

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

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

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

.btn-sm:hover {
    transform: scale(1.05);
}

/* --- FILTER TABS --- */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-tab:hover {
    border-color: var(--accent-color);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-color: transparent;
}

/* --- TABS --- */
.subscription-tabs,
.notification-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
}

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

.tab-btn:hover {
    color: var(--text-dark);
}

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

.tab-content {
    margin-top: 24px;
}

.tab-pane {
    display: none;
}

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

/* --- FORM CARDS --- */
.form-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-card h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.info-text {
    color: #718096;
    line-height: 1.6;
}

/* --- MESSAGES / CHAT --- */
.chat-tabs-container {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.chat-tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #718096;
    transition: all 0.2s;
}

.chat-tab-btn:hover {
    color: var(--text-dark);
}

.chat-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.messages-container {
    display: flex;
    height: calc(100vh - 250px);
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.conversation-list {
    width: 320px;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    background: #f7fafc;
}

.all-users-list {
    width: 380px;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    background: #f7fafc;
    display: flex;
    flex-direction: column;
}

.search-box-chat {
    position: relative;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    background: white;
}

.search-box-chat i {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
}

.search-box-chat input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
}

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

.users-list-content {
    flex: 1;
    overflow-y: auto;
}

.user-item-chat {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
    background: white;
    margin: 4px;
    border-radius: 8px;
}

.user-item-chat:hover {
    background: #edf2f7;
}

.user-item-chat.active {
    background: #e6f3ff;
    border: 2px solid var(--primary-color);
}

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

.user-item-header strong {
    font-size: 15px;
    color: var(--text-dark);
}

.verified-badge-small {
    display: inline-block;
    padding: 2px 6px;
    background: var(--success-color);
    color: white;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
}

.user-item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #718096;
    margin-bottom: 8px;
}

.user-item-details span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-item-details i {
    font-size: 10px;
    width: 14px;
}

.tbo-id-small {
    font-weight: 600;
    color: var(--primary-color);
}

.user-item-status {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.conversation-item {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
}

.conversation-item:hover {
    background: white;
}

.conversation-item.active {
    background: white;
    border-left: 4px solid var(--primary-color);
}

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

.convo-header strong {
    font-size: 15px;
    color: var(--text-dark);
}

.unread-badge {
    background: var(--danger-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.convo-tbo-id {
    font-size: 12px;
    color: #718096;
    margin-bottom: 4px;
}

.convo-preview {
    font-size: 13px;
    color: #4a5568;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.convo-time {
    font-size: 11px;
    color: #a0aec0;
}

.chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    background: white;
    font-weight: 600;
    color: var(--text-dark);
}

.user-chat-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-chat-header strong {
    font-size: 18px;
    color: var(--text-dark);
}

.tbo-id {
    font-size: 14px;
    color: #718096;
    font-weight: normal;
}

.verified-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--success-color);
    color: white;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.user-details-small {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #718096;
}

.user-details-small span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.user-details-small i {
    font-size: 10px;
}

.sender-name {
    font-size: 11px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 4px;
}

.message.user .sender-name {
    color: rgba(0, 0, 0, 0.7);
}

.chat-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background: #f7fafc;
}

.message {
    display: flex;
    margin-bottom: 16px;
}

.message.admin {
    justify-content: flex-end;
}

.message.user {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
}

.message.admin .message-bubble {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-bottom-right-radius: 4px;
}

.message.user .message-bubble {
    background: white;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}

.message-text {
    margin-bottom: 4px;
    line-height: 1.5;
}

.message-time {
    font-size: 11px;
    opacity: 0.7;
}

.chat-reply {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    background: white;
}

#reply-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 24px;
    font-size: 14px;
}

#reply-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

#send-reply-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

#send-reply-button:hover {
    transform: scale(1.1);
}

/* --- NOTIFICATION CENTER --- */
.notification-center {
    margin-top: 32px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.notification-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.notification-card {
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 20px;
    background: #fdfaff;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notification-card h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.notification-card button {
    width: 100%;
    justify-content: center;
}

.notification-status {
    margin-top: 16px;
    font-weight: 600;
    min-height: 24px;
}

.notification-status.success {
    color: var(--success-color);
}

.notification-status.error {
    color: var(--danger-color);
}

/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 32px;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #718096;
    cursor: pointer;
    transition: color 0.2s;
}

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

.user-details {
    margin-top: 24px;
}

.detail-row {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
}

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

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.user-photo {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.user-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.user-meta {
    background: #f7fafc;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    color: #4a5568;
}

.user-detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.user-detail-actions button {
    flex: 1;
    min-width: 160px;
}

.reports-timeline {
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.report-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.report-meta {
    font-size: 12px;
    color: #718096;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.pill.success {
    background: #c6f6d5;
    color: #22543d;
}

.pill.danger {
    background: #fed7d7;
    color: #742a2a;
}

.pill.warning {
    background: #fefcbf;
    color: #744210;
}

.reports-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 20px;
}

.reports-wrapper h3 {
    margin-bottom: 16px;
}

/* --- UTILITY --- */
.loading {
    text-align: center;
    padding: 40px;
    color: #718096;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.error {
    padding: 20px;
    background: #fed7d7;
    color: #742a2a;
    border-radius: 8px;
    margin: 20px;
}

.action-bar {
    margin-bottom: 24px;
}

/* --- RESPONSIVE --- */
/* --- MOBILE OPTIMIZATION (ONLY FOR PHONE) --- */
/* --- MOBILE OPTIMIZATION (ONLY FOR PHONE) --- */
/* --- MOBILE OPTIMIZATION (ONLY FOR PHONE) --- */
@media (max-width: 768px) {
    /* Sidebar ko Bottom Nav mein convert karna */
    .sidebar {
        width: 100%;
        height: 60px;
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 1000;
        flex-direction: row;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .sidebar-header, .sidebar-footer, .admin-info {
        display: none; /* Phone par logo aur email hide */
    }

    .sidebar nav {
        display: flex;
        width: 100%;
        padding: 0;
        justify-content: space-around;
        align-items: center;
    }

    .nav-link {
        flex-direction: column;
        gap: 4px;
        padding: 8px;
        font-size: 10px;
        flex: 1;
        text-align: center;
        border-left: none !important;
    }

    .nav-link i {
        font-size: 20px;
        margin: 0;
    }

    /* Content area ko adjust karna taaki bottom nav ke piche na chhup jaye */
    .content {
        padding: 15px;
        padding-bottom: 80px; 
    }

    #dashboard-view {
        flex-direction: column;
    }

    /* Chat/Messages Optimization */
    .messages-container {
        flex-direction: column;
        height: calc(100vh - 180px);
    }

    .all-users-list, .conversation-list {
        width: 100%;
        max-height: 40%; /* List ko upar rakha hai */
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .chat-window {
        height: 60%; /* Chat area niche */
    }

    .chat-messages {
        padding: 12px;
    }

    .message-bubble {
        max-width: 85%; /* Phone par bubble thoda bada */
    }

    /* Stats Cards */
    .stats-grid {
        grid-template-columns: 1fr 1fr; /* Ek line mein do cards */
        gap: 10px;
    }

    .stat-card {
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    /* Tables scrollable banana */
    .data-table-container {
        overflow-x: auto;
    }

    .page-header h1 {
        font-size: 22px;
    }
}
/* PC par ye button nahi dikhega */
#mobile-menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    #mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 2000;
        background: var(--primary-color);
        color: white;
        border: none;
        padding: 10px 15px;
        border-radius: 8px;
        font-size: 20px;
        box-shadow: var(--shadow-lg);
    }

    /* Sidebar ki initial position (hidden) */
    .sidebar {
        position: fixed;
        left: -100%; /* Screen se bahar */
        top: 0;
        height: 100vh;
        width: 250px;
        z-index: 1500;
        transition: left 0.3s ease;
    }

    /* Jab 'active' class add hogi tab sidebar dikhega */
    .sidebar.active {
        left: 0;
    }

    /* Content ko full width rakhenge mobile par */
    .content {
        width: 100% !important;
        margin-left: 0 !important;
    }
}