* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Times New Roman', serif;
}

/* Login Page */
body {
    background: linear-gradient(135deg, #1a2b4a 0%, #2d4a7c 100%);
    min-height: 100vh;
}

.login-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    width: 400px;
}

.login-container h1 {
    color: #1a2b4a;
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    color: #333;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Times New Roman', serif;
}

input[type="text"]:focus, input[type="password"]:focus {
    outline: none;
    border-color: #1a2b4a;
}

button, .logout-btn, .back-btn, .view-btn {
    padding: 12px 20px;
    background: #1a2b4a;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Times New Roman', serif;
    text-decoration: none;
    display: inline-block;
}

button:hover, .logout-btn:hover, .back-btn:hover, .view-btn:hover {
    background: #2d4a7c;
}

button {
    width: 100%;
}

.alert {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Dashboard Pages */
body {
    background: #f5f5f5;
}

.header {
    background: #1a2b4a;
    color: white;
    padding: 20px 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 24px;
    color: white;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logout-btn, .back-btn {
    background: #2d4a7c;
    padding: 8px 16px;
    font-size: 14px;
}

.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.search-bar {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-bar input {
    width: 100%;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-label {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.stat-value {
    color: #1a2b4a;
    font-size: 32px;
    font-weight: bold;
}

.reports-section, .report {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-title {
    color: #1a2b4a;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a2b4a;
}

.report-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.2s;
}

.report-card:hover {
    border-color: #1a2b4a;
    box-shadow: 0 2px 8px rgba(26, 43, 74, 0.1);
}

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

.report-id {
    color: #1a2b4a;
    font-weight: bold;
    font-size: 16px;
}

.report-date {
    color: #666;
    font-size: 14px;
}

.threat-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.threat-critical { background: #dc3545; color: white; }
.threat-high { background: #fd7e14; color: white; }
.threat-medium { background: #ffc107; color: black; }
.threat-low { background: #28a745; color: white; }

.report-summary {
    color: #333;
    margin-top: 10px;
    line-height: 1.6;
}

.view-btn {
    margin-top: 10px;
    padding: 8px 16px;
    font-size: 14px;
}

.no-reports {
    text-align: center;
    color: #666;
    padding: 40px;
}

/* Report View Page */
.report-title {
    color: #1a2b4a;
    font-size: 24px;
    margin-bottom: 10px;
}

.report-meta {
    display: flex;
    gap: 30px;
    color: #666;
    font-size: 14px;
    padding-bottom: 20px;
    border-bottom: 3px solid #1a2b4a;
    margin-bottom: 30px;
}

.summary-box {
    background: #f8f9fa;
    border-left: 4px solid #1a2b4a;
    padding: 20px;
    margin-bottom: 30px;
}

.five-ws {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.w-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
}

.w-label {
    color: #1a2b4a;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
}

.w-content {
    color: #333;
    line-height: 1.6;
}

.sources {
    padding-top: 20px;
    border-top: 2px solid #ddd;
}

.source-item {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.confidence {
    color: #1a2b4a;
    font-weight: bold;
}