* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #0f0f0f;
    --bg-card: #141414;
    --bg-surface: #1a1a1a;
    --border-color: #222222;
    --border-light: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-tertiary: #a0a0a0;
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --purple: #8b5cf6;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInDown 0.8s ease;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo i {
    font-size: 3rem;
    color: var(--text-primary);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-tertiary);
    margin-bottom: 2rem;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    background: var(--bg-surface);
    padding: 1rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    min-width: 140px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-tertiary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-button {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--card-shadow);
    margin: 0 0.5rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    border-color: #444;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.admin-btn {
    background: var(--bg-card);
    border-color: var(--purple);
}

.admin-btn:hover {
    border-color: var(--purple);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.8s ease backwards;
}

.info-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2) { animation-delay: 0.2s; }
.info-card:nth-child(3) { animation-delay: 0.3s; }

.info-card:hover {
    transform: translateY(-5px);
    border-color: #444;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.info-card p {
    color: var(--text-tertiary);
    line-height: 1.6;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    border: 1px solid var(--border-light);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.admin-modal {
    max-width: 800px;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--danger);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: 70vh;
}

.report-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover {
    background: var(--bg-surface);
    border-color: var(--purple);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--purple);
    border-color: var(--purple);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.reports-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.report-item {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--status-color);
    animation: slideIn 0.3s ease;
}

.report-item:hover {
    transform: translateX(4px);
    border-color: var(--border-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.report-info {
    flex: 1;
}

.report-details h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.report-details p {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-top: 0.25rem;
}

.report-details a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-all;
}

.report-details a:hover {
    color: var(--purple);
    text-decoration: underline;
}

.report-status {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--status-bg);
    color: var(--status-color);
}

.modal-footer {
    padding: 1rem 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.admin-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.admin-section h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.admin-input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
}

.admin-input:focus {
    outline: none;
    border-color: var(--purple);
}

.form-row {
    margin-bottom: 1rem;
}

.form-row label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

select.admin-input {
    cursor: pointer;
}

textarea.admin-input {
    resize: vertical;
}

.error-message {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    text-align: center;
}

.active-case-item {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.active-case-item:hover {
    border-color: var(--purple);
    transform: translateX(4px);
}

.active-case-info h4 {
    margin-bottom: 0.25rem;
}

.active-case-info p {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-top: 0.25rem;
}

.active-case-info a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-all;
}

.active-case-info a:hover {
    color: var(--purple);
    text-decoration: underline;
}

.manage-report-item {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.manage-report-item:hover {
    border-color: var(--purple);
    transform: translateX(4px);
}

.manage-report-info {
    flex: 1;
}

.manage-report-info h4 {
    margin-bottom: 0.25rem;
}

.manage-report-info p {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-top: 0.25rem;
}

.manage-report-info small {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    display: inline-block;
    margin-top: 0.5rem;
}

.manage-report-info a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-all;
}

.manage-report-info a:hover {
    color: var(--purple);
    text-decoration: underline;
}

.manage-report-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.resolve-select {
    padding: 0.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.resolve-select:hover {
    border-color: var(--purple);
}

.resolve-select-manage {
    padding: 0.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.resolve-select-manage:hover {
    border-color: var(--purple);
}

.resolve-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--success);
    color: var(--success);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.resolve-btn:hover {
    background: var(--success);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.resolve-manage-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--success);
    color: var(--success);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.resolve-manage-btn:hover {
    background: var(--success);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.delete-report-btn {
    background: none;
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-report-btn:hover {
    background: var(--danger);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.secondary {
    border-color: var(--text-tertiary);
    color: var(--text-tertiary);
    margin-right: 0.5rem;
}

.secondary:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .stats {
        gap: 1rem;
    }
    
    .stat {
        padding: 0.75rem 1rem;
        min-width: 100px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .report-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cta-button {
        margin: 0.5rem;
    }
    
    .hero {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .manage-report-item {
        flex-direction: column;
    }
    
    .manage-report-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat {
        width: 100%;
        max-width: 200px;
    }
    
    .active-case-item {
        flex-direction: column;
        align-items: stretch;
    }
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}