:root {
    --primary-color: #0066ff;
    --primary-light: #4d94ff;
    --primary-dark: #0047b3;
    --secondary-color: #00b4ff;
    --secondary-light: #66d1ff;
    --secondary-dark: #0080cc;
    --accent-color: #00ff9d;
    --danger-color: #ff3860;
    --warning-color: #ffdd57;
    --info-color: #209cee;
    --success-color: #23d160;
    
    --text-primary: #f8f8f8;
    --text-secondary: #b8c2cc;
    --text-muted: #6c757d;
    
    --bg-primary: #0a0a1a;
    --bg-secondary: #15152b;
    --bg-tertiary: #1e1e3b;
    --bg-quaternary: #2a2a4a;
    
    --border-color: #2a2a4a;
    --shadow-color: rgba(0, 0, 0, 0.5);
    
    --font-main: 'Rajdhani', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    --font-display: 'Orbitron', monospace;
    
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 102, 255, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 180, 255, 0.03) 0%, transparent 25%);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

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

/* Language Modal */
#language-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 26, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#language-modal .modal-content {
    background-color: var(--bg-secondary);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.3);
    text-align: center;
    max-width: 600px;
    width: 90%;
    animation: modalFadeIn 0.5s ease-out;
}

.language-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.language-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-speed);
    background: var(--bg-tertiary);
}

.language-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.2);
}

.flag {
    width: 80px;
    height: 60px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.flag.small {
    width: 24px;
    height: 18px;
}

.us-flag {
    background-image: url('../images/flags/us.svg');
}

.ru-flag {
    background-image: url('../images/flags/ru.svg');
}

/* Main Header */
.main-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    position: relative;
    font-size: 2rem;
    color: var(--primary-color);
}

.pulse-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.3;
    z-index: -1;
    animation: pulse 2s infinite;
}

.logo-text {
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

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

.logo-secondary {
    color: var(--text-primary);
    font-weight: 400;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--danger-color);
}

.status-indicator.active {
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    animation: underline 0.3s ease-out;
}

.user-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    min-height: calc(100vh - 200px);
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

/* Cyber Intro */
.cyber-intro {
    text-align: center;
    margin: 3rem 0 4rem;
    position: relative;
}

.cyber-glitch {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    color: var(--primary-color);
    letter-spacing: 3px;
    margin-bottom: 1rem;
    animation: glitch 5s infinite;
    text-shadow: 0 0 10px rgba(0, 102, 255, 0.5);
}

.cyber-subtitle {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cyber-scanner {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    box-shadow: 0 0 20px var(--primary-color);
    animation: scan 3s infinite linear;
}

.intro-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Stats Overview */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 102, 255, 0.1), transparent);
    transform: translateX(-100%);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.stat-card:hover::before {
    animation: shine 1.5s;
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

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

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px var(--shadow-color);
}

.dashboard-card.wide {
    grid-column: span 2;
}

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

.card-header h2 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-weight: 600;
}

.status-badge.active {
    background-color: rgba(35, 209, 96, 0.2);
    color: var(--success-color);
}

.status-badge.inactive {
    background-color: rgba(255, 56, 96, 0.2);
    color: var(--danger-color);
}

.card-content {
    padding: 1rem;
}

/* System Status Card */
.system-metrics {
    margin-bottom: 1.5rem;
}

.metric {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.metric-label {
    width: 120px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.metric-bar {
    flex-grow: 1;
    height: 8px;
    background-color: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 1rem;
}

.metric-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 1s ease-in-out;
}

.metric-value {
    width: 40px;
    text-align: right;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.security-recommendations {
    background-color: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid var(--warning-color);
}

.security-recommendations h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--warning-color);
}

.security-recommendations ul {
    margin-left: 1.5rem;
}

.security-recommendations li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Global Threat Map */
#world-map {
    height: 400px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.map-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.threat-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.threat-point {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: translate(-50%, -50);
    animation: pulse 2s infinite;
}

.threat-point[data-severity="high"] {
    background-color: var(--danger-color);
    box-shadow: 0 0 0 rgba(255, 56, 96, 0.4);
}

.threat-point[data-severity="medium"] {
    background-color: var(--warning-color);
    box-shadow: 0 0 0 rgba(255, 221, 87, 0.4);
}

.threat-point[data-severity="low"] {
    background-color: var(--info-color);
    box-shadow: 0 0 0 rgba(32, 156, 238, 0.4);
}

.map-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.map-stats, .map-legend {
    background-color: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 6px;
}

.map-stats h3, .map-legend h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.stat-name {
    color: var(--text-secondary);
}

.stat-value {
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

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

.legend-color.high-risk {
    background-color: var(--danger-color);
}

.legend-color.medium-risk {
    background-color: var(--warning-color);
}

.legend-color.low-risk {
    background-color: var(--info-color);
}

/* Recent Alerts */
.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.alert-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 6px;
    align-items: flex-start;
    transition: all var(--transition-speed);
}

.alert-item.critical {
    border-left: 4px solid var(--danger-color);
    background-color: rgba(255, 56, 96, 0.1);
}

.alert-item.high {
    border-left: 4px solid var(--warning-color);
    background-color: rgba(255, 221, 87, 0.1);
}

.alert-item.medium {
    border-left: 4px solid var(--info-color);
    background-color: rgba(32, 156, 238, 0.1);
}

.alert-item.low {
    border-left: 4px solid var(--success-color);
    background-color: rgba(35, 209, 96, 0.1);
}

.alert-item:hover {
    transform: translateX(5px);
}

.alert-item i {
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.alert-item.critical i {
    color: var(--danger-color);
}

.alert-item.high i {
    color: var(--warning-color);
}

.alert-item.medium i {
    color: var(--info-color);
}

.alert-item.low i {
    color: var(--success-color);
}

.alert-content {
    flex: 1;
}

.alert-content p {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.alert-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.alert-action {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all var(--transition-speed);
}

.alert-action:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.1);
}

.alerts-actions {
    display: flex;
    justify-content: space-between;
}

/* Security Tips */
.tips-carousel {
    position: relative;
    min-height: 150px;
}

.tip-item {
    display: none;
}

.tip-item.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

.tip-item h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.tip-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.carousel-controls {
    display: flex;
    gap: 0.5rem;
}

.tip-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.progress-bar {
    flex-grow: 1;
    height: 4px;
    background-color: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
}

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

.progress-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Threat Prevention */
.prevention-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.prevention-metric {
    text-align: center;
}

.metric-circle {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 0.5rem;
}

.circular-chart {
    display: block;
    width: 100%;
    height: 100%;
}

.circle-bg {
    fill: none;
    stroke: var(--bg-tertiary);
    stroke-width: 2;
}

.circle {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    animation: progress 1s ease-out forwards;
}

.circle.malware {
    stroke: var(--primary-color);
}

.circle.phishing {
    stroke: var(--secondary-color);
}

.percentage {
    fill: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.5em;
    text-anchor: middle;
    font-weight: 600;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.prevention-tips {
    background-color: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

.prevention-tips p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Latest News */
.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.news-item {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    transition: all var(--transition-speed);
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.news-image {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.news-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-content h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.news-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.5;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.news-link {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-family: var(--font-main);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.primary-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 6px rgba(0, 102, 255, 0.3);
}

.primary-button:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 102, 255, 0.4);
}

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

.secondary-button:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.icon-button {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-button:hover {
    color: var(--primary-color);
    background-color: rgba(0, 102, 255, 0.1);
}

.icon-button.small {
    font-size: 1rem;
    padding: 0.4rem;
}

.small-button {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.full-width {
    width: 100%;
}

/* Footer */
.main-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    transition: color var(--transition-speed);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    transition: all var(--transition-speed);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.emergency-contact {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: rgba(255, 56, 96, 0.1);
    border-radius: 6px;
    border-left: 4px solid var(--danger-color);
}

.emergency-contact h5 {
    color: var(--danger-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.emergency-link {
    color: var(--danger-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    display: block;
}

.emergency-contact p {
    font-size: 0.8rem;
    margin-bottom: 0;
}

.system-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.system-info span {
    display: block;
}

.copyright {
    margin-top: 3rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 26, 0.9);
    z-index: 2000;
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-secondary);
    margin: 2rem auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-content.medium {
    max-width: 600px;
}

.modal-content.wide {
    max-width: 900px;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition-speed);
    z-index: 10;
}

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

.modal-body {
    padding: 2rem;
}

/* Auth Forms */
.auth-form {
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-main);
    transition: all var(--transition-speed);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.2);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 18px;
    height: 18px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.form-options a {
    color: var(--primary-color);
    font-size: 0.9rem;
    transition: color var(--transition-speed);
}

.form-options a:hover {
    color: var(--primary-light);
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--border-color);
}

.auth-divider span {
    position: relative;
    background-color: var(--bg-secondary);
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-alt {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.1; }
    100% { transform: scale(0.95); opacity: 0.3; }
}

@keyframes underline {
    from { width: 0; }
    to { width: 100%; }
}

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

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

@keyframes glitch {
    0% { text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.3), -0.05em -0.025em 0 rgba(0, 255, 0, 0.3), -0.025em 0.05em 0 rgba(0, 0, 255, 0.3); }
    14% { text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.3), -0.05em -0.025em 0 rgba(0, 255, 0, 0.3), -0.025em 0.05em 0 rgba(0, 0, 255, 0.3); }
    15% { text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.3), 0.025em 0.025em 0 rgba(0, 255, 0, 0.3), -0.05em -0.05em 0 rgba(0, 0, 255, 0.3); }
    49% { text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.3), 0.025em 0.025em 0 rgba(0, 255, 0, 0.3), -0.05em -0.05em 0 rgba(0, 0, 255, 0.3); }
    50% { text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.3), 0.05em 0 0 rgba(0, 255, 0, 0.3), 0 -0.05em 0 rgba(0, 0, 255, 0.3); }
    99% { text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.3), 0.05em 0 0 rgba(0, 255, 0, 0.3), 0 -0.05em 0 rgba(0, 0, 255, 0.3); }
    100% { text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.3), -0.025em -0.025em 0 rgba(0, 255, 0, 0.3), -0.025em -0.05em 0 rgba(0, 0, 255, 0.3); }
}

@keyframes scan {
    0% { left: -100%; }
    100% { left: 200%; }
}

@keyframes shine {
    to {
        transform: translateX(100%);
    }
}

@keyframes progress {
    0% {
        stroke-dasharray: 0, 100;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard-card.wide {
        grid-column: span 1;
    }
    
    .map-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .user-controls {
        margin-top: 1rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 0 1rem;
    }
    
    .cyber-glitch {
        font-size: 2.5rem;
    }
    
    .cyber-subtitle {
        font-size: 1.2rem;
    }
    
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .intro-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .prevention-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 1rem auto;
    }
}

@media (max-width: 480px) {
    .language-options {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cyber-glitch {
        font-size: 2rem;
    }
    
    .header-container {
        padding: 0 1rem;
    }
    
    .main-nav ul {
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
    
    .stats-overview {
        grid-template-columns: 1fr;
    }
    
    .alerts-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .alerts-actions button {
        width: 100%;
    }
}