/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: #000;
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-email {
    font-size: 0.9rem;
    color: #ccc;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #000;
}

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

.tab-content {
    display: none;
}

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

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.filter-controls,
.search-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn:hover {
    opacity: 0.9;
}

.btn-primary {
    background: #000;
    color: #fff;
}

.btn-secondary {
    background: #fff;
    color: #000;
    border: 1px solid #ccc;
}

.btn-warning {
    background: #ffc107;
    color: #000;
}

.btn-orange {
    background: #ff9800;
    color: #fff;
}

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

.btn-block {
    width: 100%;
}

/* Forms */
.form-control,
.search-input,
select {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
}

.search-input {
    min-width: 300px;
}

textarea.form-control {
    width: 100%;
    resize: vertical;
}

/* Reports List */
.reports-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.report-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.report-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.report-card.urgent {
    border-left: 4px solid #f44336;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.report-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.report-meta {
    font-size: 0.85rem;
    color: #666;
}

.report-time {
    font-size: 0.85rem;
    color: #999;
    text-align: right;
}

.time-warning {
    color: #f44336;
    font-weight: 600;
}

.report-reasons {
    margin: 1rem 0;
}

.reason-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f0f0f0;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.reason-tag.harassment {
    background: #ffebee;
    color: #c62828;
}

.reason-tag.hate-speech {
    background: #fce4ec;
    color: #880e4f;
}

.reason-tag.spam {
    background: #fff3e0;
    color: #e65100;
}

.reason-tag.fake-profile {
    background: #e3f2fd;
    color: #01579b;
}

.reason-tag.inappropriate-photos {
    background: #f3e5f5;
    color: #4a148c;
}

.report-details-text {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0.5rem;
}

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

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
}

.close-btn:hover {
    color: #000;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.detail-row {
    margin-bottom: 1rem;
}

.detail-label {
    font-weight: 600;
    color: #666;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 1rem;
}

.warning-text {
    padding: 1rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    margin-bottom: 1rem;
}

/* User Details */
.user-details {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
}

.user-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.user-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.active {
    background: #c8e6c9;
    color: #2e7d32;
}

.status-badge.suspended {
    background: #ffe0b2;
    color: #e65100;
}

.status-badge.banned {
    background: #ffcdd2;
    color: #c62828;
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #000 0%, #333 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-box {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.login-box h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.error-message {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #ffebee;
    border: 1px solid #ef5350;
    border-radius: 4px;
    color: #c62828;
    font-size: 0.9rem;
}

/* Loading and Placeholder */
.loading {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.placeholder {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .filter-controls,
    .search-controls {
        width: 100%;
    }

    .search-input {
        min-width: 0;
        flex: 1;
    }

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

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

    .modal-content {
        width: 95%;
    }

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

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

.form-group input[type="file"] {
    padding: 0.5rem;
    border: 2px dashed #ccc;
    border-radius: 4px;
    width: 100%;
    cursor: pointer;
    transition: border-color 0.2s;
}

.form-group input[type="file"]:hover {
    border-color: #999;
}

.form-group input[type="file"]:focus {
    outline: none;
    border-color: #000;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
}

/* Additional Styles for New Sections */
code {
    background: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

pre {
    margin: 0;
}
