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

body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
}

.gov-header {
    background: #1a1a2e;
    color: #fff;
    padding: 8px 20px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gov-header .official {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gov-header .seal {
    width: 24px;
    height: 24px;
    background: #99002c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

.gov-header .links a {
    color: #ccc;
    text-decoration: none;
    margin-left: 15px;
    font-size: 11px;
}

.gov-header .links a:hover {
    color: #fff;
}

.main-nav {
    background: #fff;
    border-bottom: 3px solid #99002c;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.main-nav .logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #99002c, #6b001f);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
}

.main-nav .logo-text h1 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

.main-nav .logo-text span {
    font-size: 12px;
    color: #666;
}

.main-nav nav a {
    color: #333;
    text-decoration: none;
    margin-left: 25px;
    font-size: 14px;
    font-weight: 500;
}

.main-nav nav a:hover {
    color: #99002c;
}

.main-nav nav a.active {
    color: #99002c;
    border-bottom: 2px solid #99002c;
    padding-bottom: 2px;
}

.hero {
    background: #1a1a2e;
    color: #fff;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

.hero-text {
    padding: 60px 40px 60px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h2 {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero p {
    font-size: 16px;
    color: #aaa;
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero .alert-level {
    display: inline-block;
    background: #99002c;
    padding: 10px 24px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    width: fit-content;
}

.hero-image {
    position: relative;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.hero-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #1a1a2e 0%, transparent 30%);
    z-index: 1;
}

.content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.info-card {
    background: #fff;
    border-radius: 4px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.info-card h3 {
    font-size: 16px;
    color: #1a1a2e;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card h3 .icon {
    width: 30px;
    height: 30px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.info-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.info-card a {
    color: #99002c;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.info-card a:hover {
    text-decoration: underline;
}

.stats-bar {
    background: #1a1a2e;
    color: #fff;
    padding: 30px 20px;
    margin-top: 40px;
}

.stats-bar .stats-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stats-bar .stat h4 {
    font-size: 32px;
    font-weight: 300;
    color: #fff;
}

.stats-bar .stat span {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-page {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    padding: 40px 20px;
}

.login-container {
    display: flex;
    max-width: 900px;
    width: 100%;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.login-info {
    background: #1a1a2e;
    color: #fff;
    padding: 40px;
    width: 45%;
}

.login-info h2 {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 20px;
}

.login-info p {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 15px;
    line-height: 1.6;
}

.login-info .notice {
    background: rgba(153, 0, 44, 0.2);
    border-left: 3px solid #99002c;
    padding: 12px;
    margin-top: 25px;
    font-size: 12px;
}

.login-form {
    padding: 40px;
    width: 55%;
}

.login-form h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
}

.login-form .subtitle {
    font-size: 13px;
    color: #888;
    margin-bottom: 25px;
}

.login-form .form-group {
    margin-bottom: 18px;
}

.login-form label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
    font-weight: 500;
}

.login-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    font-family: inherit;
}

.login-form input:focus {
    outline: none;
    border-color: #99002c;
}

.login-form button {
    width: 100%;
    background: #99002c;
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 3px;
    cursor: pointer;
    font-family: inherit;
}

.login-form button:hover {
    background: #7a0023;
}

.login-form .error {
    color: #c00;
    font-size: 13px;
    margin-top: 15px;
    min-height: 20px;
}

.dashboard-page {
    min-height: 100vh;
    background: #f5f5f5;
}

.dashboard-header {
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h1 {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.dashboard-header .user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dashboard-header .user-badge {
    font-size: 13px;
    color: #666;
}

.dashboard-header .user-badge .role {
    background: #e0e0e0;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    margin-left: 8px;
    text-transform: uppercase;
}

.dashboard-header .user-badge .role.admin {
    background: #99002c;
    color: #fff;
}

.dashboard-header button {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 8px 15px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 3px;
    font-family: inherit;
}

.dashboard-header button:hover {
    background: #eee;
}

.dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px;
}

.flag-banner {
    background: linear-gradient(90deg, #0a3d0a, #0d4d0d);
    border: 1px solid #1a5c1a;
    border-radius: 4px;
    padding: 20px 25px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.flag-banner .icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.flag-banner .text .label {
    font-size: 11px;
    color: #7fc97f;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.flag-banner .text code {
    font-size: 16px;
    color: #fff;
    font-family: "Consolas", monospace;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.panel {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.panel-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h2 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.panel-header .status {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    background: #e8f5e9;
    color: #2e7d32;
}

.panel-header .status.warning {
    background: #fff3e0;
    color: #e65100;
}

.panel-header .status.critical {
    background: #ffebee;
    color: #c62828;
}

.panel-body {
    padding: 15px 20px;
}

.threat-list {
    list-style: none;
}

.threat-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.threat-list .name {
    font-size: 14px;
    color: #333;
}

.threat-list .level {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 3px;
    font-weight: 500;
}

.threat-list .level.high {
    background: #ffebee;
    color: #c62828;
}

.threat-list .level.medium {
    background: #fff3e0;
    color: #e65100;
}

.threat-list .level.low {
    background: #e8f5e9;
    color: #2e7d32;
}

.incident-list {
    list-style: none;
}

.incident-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.incident-list .date {
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
}

.incident-list .title {
    font-size: 14px;
    color: #333;
}

.incident-list .sector {
    font-size: 12px;
    color: #666;
    margin-top: 3px;
}

.query-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.query-form input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    font-family: inherit;
}

.query-form input:focus {
    outline: none;
    border-color: #99002c;
}

.query-form button {
    background: #99002c;
    color: #fff;
    border: none;
    padding: 10px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 3px;
    cursor: pointer;
    font-family: inherit;
}

.query-form button:hover {
    background: #7a0023;
}

.query-result {
    background: #1a1a2e;
    color: #7fc97f;
    padding: 15px;
    border-radius: 3px;
    font-family: "Consolas", monospace;
    font-size: 12px;
    overflow-x: auto;
    max-height: 250px;
    white-space: pre-wrap;
}

.site-footer {
    background: #1a1a2e;
    color: #888;
    padding: 30px 20px;
    margin-top: 50px;
}

.site-footer .footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-footer .copyright {
    font-size: 12px;
}

.site-footer .links a {
    color: #666;
    text-decoration: none;
    margin-left: 20px;
    font-size: 12px;
}

.site-footer .links a:hover {
    color: #fff;
}