/* ============================================
   BCIA Intelligence Agency - Complete CSS
   Dark Theme with Red Accents & Cyber Styling
   ============================================ */

/* ===== CSS Variables ===== */
:root {
    --primary-red: #dc143c;
    --dark-red: #8b0000;
    --light-red: #ff4757;
    --bg-primary: #0a0a0a;
    --bg-secondary: #121212;
    --bg-tertiary: #1a1a1a;
    --bg-card: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #fff;
    --border-color: #2a2a2a;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 10px 40px rgba(220, 20, 60, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glow-red: 0 0 20px rgba(220, 20, 60, 0.6);
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(220, 20, 60, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 20, 60, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

a {
    text-decoration: none;
    color: var(--primary-red);
    transition: var(--transition);
}

a:hover {
    color: var(--light-red);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

::selection {
    background: var(--primary-red);
    color: white;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 5px;
}

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

/* ===== Preloader ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s, visibility 0.5s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.cyber-loader {
    width: 80px;
    height: 80px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
    box-shadow: var(--glow-red);
}

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

/* ===== Glitch Effect ===== */
.glitch-text {
    position: relative;
    font-weight: 900;
    letter-spacing: 2px;
    animation: glitch-skew 3s infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 var(--primary-red);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 #00ffff;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(7px, 9999px, 94px, 0);
    }

    5% {
        clip: rect(73px, 9999px, 28px, 0);
    }

    10% {
        clip: rect(50px, 9999px, 81px, 0);
    }

    15% {
        clip: rect(42px, 9999px, 70px, 0);
    }

    20% {
        clip: rect(28px, 9999px, 35px, 0);
    }

    25% {
        clip: rect(89px, 9999px, 16px, 0);
    }

    30% {
        clip: rect(64px, 9999px, 95px, 0);
    }

    100% {
        clip: rect(49px, 9999px, 44px, 0);
    }
}

@keyframes glitch-skew {
    0% {
        transform: skew(0deg);
    }

    10% {
        transform: skew(-2deg);
    }

    20% {
        transform: skew(2deg);
    }

    30% {
        transform: skew(-2deg);
    }

    40% {
        transform: skew(2deg);
    }

    50% {
        transform: skew(0deg);
    }

    100% {
        transform: skew(0deg);
    }
}

/* ===== Navigation ===== */
.cyber-nav {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.cyber-nav.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(220, 20, 60, 0.3);
}

.cyber-brand {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-primary) !important;
    display: flex;
    align-items: center;
}

.cyber-brand i {
    color: var(--primary-red);
    margin-right: 10px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    padding: 8px 16px !important;
    transition: var(--transition);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transform: translateX(-50%);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red) !important;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.emergency-btn {
    background: var(--primary-red);
    color: white !important;
    border-radius: 25px;
    padding: 8px 20px !important;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 5px var(--primary-red);
    }

    50% {
        box-shadow: 0 0 20px var(--primary-red);
    }
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(220, 20, 60, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(220, 20, 60, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 50px 50px;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(220, 20, 60, 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.badge-pill {
    display: inline-block;
    background: rgba(220, 20, 60, 0.1);
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.glitch-title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.text-light-grey {
    color: var(--text-secondary);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-red);
    margin-bottom: 0;
    text-shadow: var(--glow-red);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cyber-btn {
    position: relative;
    overflow: hidden;
    border: 2px solid currentColor;
    transition: var(--transition);
}

.cyber-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cyber-btn:hover::before {
    width: 300px;
    height: 300px;
}

.hero-graphic {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rotating-badge {
    width: 300px;
    height: 300px;
    border: 3px solid var(--primary-red);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: rotate 20s linear infinite;
    box-shadow: var(--glow-red);
    position: relative;
}

.rotating-badge::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(220, 20, 60, 0.3);
    border-radius: 50%;
    animation: rotate 15s linear infinite reverse;
}

.rotating-badge i {
    font-size: 8rem;
    color: var(--primary-red);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.scan-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            rgba(220, 20, 60, 0.1) 0px,
            transparent 2px,
            transparent 4px);
    animation: scan 5s linear infinite;
    pointer-events: none;
}

@keyframes scan {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(20px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-red);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===== Sections ===== */
.section-padding {
    padding: 100px 0;
}

.bg-dark-variant {
    background: var(--bg-secondary);
}

.section-header {
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: rgba(220, 20, 60, 0.1);
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, var(--primary-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ===== Wanted Cards ===== */
.wanted-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.wanted-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-red);
}

.danger-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
    letter-spacing: 1px;
}

.danger-low {
    background: rgba(255, 193, 7, 0.9);
    color: #000;
}

.danger-medium {
    background: rgba(255, 152, 0, 0.9);
    color: #fff;
}

.danger-high {
    background: rgba(244, 67, 54, 0.9);
    color: #fff;
}

.danger-extreme {
    background: rgba(139, 0, 0, 0.9);
    color: #fff;
    animation: pulse-glow 1.5s infinite;
}

.wanted-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

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

.wanted-card:hover .wanted-image img {
    transform: scale(1.1);
}

.no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-card) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.no-image i {
    font-size: 5rem;
    color: #fff
}

.wanted-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(220, 20, 60, 0.8) 100%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.wanted-card:hover .wanted-overlay {
    opacity: 1;
}

.wanted-stamp {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    transform: rotate(-15deg);
}

.wanted-info {
    padding: 25px;
}

.wanted-info h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.alias {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 15px;
}

.criminal-details {
    margin: 15px 0;
}

.detail-item {
    display: flex;
    align-items: start;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.detail-item i {
    color: var(--primary-red);
    margin-right: 10px;
    margin-top: 3px;
}

.reward-amount {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(220, 20, 60, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    font-weight: 700;
    margin-top: 15px;
}

/* ===== Feature Cards ===== */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 20, 60, 0.1), transparent);
    transition: left 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-red);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border: 3px solid var(--primary-red);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary-red);
    transform: scale(1.1) rotate(360deg);
    box-shadow: var(--glow-red);
}

.feature-icon i {
    font-size: 2rem;
    color: var(--primary-red);
    transition: var(--transition);
}

.feature-card:hover .feature-icon i {
    color: white;
}

.feature-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== Case Cards ===== */
.case-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-red);
}

.case-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(220, 20, 60, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.case-content {
    padding: 25px;
}

.case-content h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.case-number {
    color: var(--primary-red);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.case-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.case-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.case-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.case-meta i {
    color: var(--primary-red);
}

/* ===== Report Form ===== */
.report-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.report-form-card h4 {
    color: var(--text-primary);
    margin-bottom: 30px;
}

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

.form-control,
.form-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 8px;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    background: var(--bg-tertiary);
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(220, 20, 60, 0.25);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: #fff
}

.form-check-input {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

.form-check-input:checked {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

.form-check-label {
    color: var(--text-secondary);
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
}

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

.info-list i {
    font-size: 1.2rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-secondary);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-title i {
    color: var(--primary-red);
}

.footer-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-red);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link:hover {
    border-color: var(--primary-red);
    background: var(--primary-red);
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--glow-red);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 15px;
}

.contact-item i {
    color: var(--primary-red);
    font-size: 1.5rem;
    width: 40px;
}

.contact-item strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.contact-item span,
.contact-item a {
    color: var(--text-secondary);
    display: block;
}

.footer-divider {
    border-color: var(--border-color);
    margin: 40px 0 20px;
    opacity: 0.5;
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--glow-red);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--light-red);
    transform: translateY(-5px);
}

/* ===== Alerts ===== */
.alert-floating {
    position: fixed;
    top: 100px;
    right: 30px;
    z-index: 9999;
    min-width: 350px;
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert {
    border: none;
    border-left: 4px solid;
    background: var(--bg-card);
    color: var(--text-primary);
}

.alert-success {
    border-left-color: #28a745;
}

.alert-danger {
    border-left-color: var(--primary-red);
}

.alert-warning {
    border-left-color: #ffc107;
}

.alert-info {
    border-left-color: #17a2b8;
}

.btn-close {
    filter: invert(1);
}

/* ===== Buttons ===== */
.btn-danger {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

.btn-danger:hover {
    background: var(--dark-red);
    border-color: var(--dark-red);
}

.btn-outline-danger {
    color: var(--primary-red);
    border-color: var(--primary-red);
}

.btn-outline-danger:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

.btn-outline-light {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

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

/* ===== Tables ===== */
.table {
    color: var(--text-primary);
}

.table-dark {
    background: var(--bg-card);
    border-color: var(--border-color);
}

.table-dark th {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

.table-dark td {
    border-color: var(--border-color);
}

.table-hover tbody tr:hover {
    background: rgba(220, 20, 60, 0.1);
}

/* ===== Pagination ===== */
.pagination .page-link {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.pagination .page-link:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

.pagination .page-item.active .page-link {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

/* ===== Badges ===== */
.badge {
    padding: 6px 12px;
    font-weight: 600;
}

.badge.bg-danger {
    background-color: var(--primary-red) !important;
}

.badge.bg-success {
    background-color: #28a745 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000;
}

.badge.bg-info {
    background-color: #17a2b8 !important;
}

/* ===== Cards ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.card-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

/* ===== Modals ===== */
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

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

/* ===== Admin Specific Styles ===== */
.admin-sidebar {
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    min-height: calc(100vh - 80px);
    position: sticky;
    top: 80px;
}

.admin-nav-item {
    padding: 15px 20px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.admin-nav-item:hover,
.admin-nav-item.active {
    background: rgba(220, 20, 60, 0.1);
    color: var(--primary-red);
    border-left-color: var(--primary-red);
}

.admin-nav-item i {
    font-size: 1.2rem;
    width: 25px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-red);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

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

.stat-card-icon {
    width: 70px;
    height: 70px;
    background: rgba(220, 20, 60, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.stat-card-icon i {
    font-size: 2rem;
    color: var(--primary-red);
}

.stat-card-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.stat-card-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Login Page ===== */
.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 50px;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

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

.login-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    box-shadow: var(--glow-red);
}

.login-icon i {
    font-size: 2.5rem;
    color: white;
}

.login-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.login-subtitle {
    color: var(--text-secondary);
}

/* ===== Responsive Design ===== */
@media (max-width: 1199px) {
    .glitch-title {
        font-size: 3rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 991px) {
    .section-title {
        font-size: 2.5rem;
    }

    .glitch-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-graphic {
        height: 400px;
        margin-top: 50px;
    }

    .rotating-badge {
        width: 250px;
        height: 250px;
    }

    .rotating-badge i {
        font-size: 6rem;
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .glitch-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .wanted-stamp {
        font-size: 2rem;
    }

    .alert-floating {
        min-width: auto;
        right: 15px;
        left: 15px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .login-card {
        padding: 30px;
    }

    .report-form-card {
        padding: 25px;
    }
}

@media (max-width: 575px) {
    .nav-link {
        padding: 10px !important;
    }

    .cyber-brand {
        font-size: 1.5rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-item {
        flex: 1 1 100%;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .case-card,
    .wanted-card {
        margin-bottom: 20px;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .social-links {
        justify-content: center;
    }
}

/* ===== Print Styles ===== */
@media print {

    .navbar,
    .hero-section,
    .back-to-top,
    .alert-floating,
    .footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .section-padding {
        padding: 20px 0;
    }
}

/* ===== Accessibility ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

/* ===== Custom Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== Loading States ===== */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ===== Utility Classes ===== */
.text-danger {
    color: var(--primary-red) !important;
}

.bg-danger {
    background-color: var(--primary-red) !important;
}

.border-danger {
    border-color: var(--primary-red) !important;
}

.cursor-pointer {
    cursor: pointer;
}

.user-select-none {
    user-select: none;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-75 {
    opacity: 0.75;
}

.hover-scale:hover {
    transform: scale(1.05);
    transition: var(--transition);
}