/* === General === */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* === Navbar === */
.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.navbar .nav-link {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.navbar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* === Hero Section === */
.hero-section h1 {
    letter-spacing: 2px;
}

/* === Feature Cards === */
.feature-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 1rem;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15) !important;
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* === Risk Badges === */
.risk-badge {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.risk-high {
    background-color: #fde8e8;
    color: #c81e1e;
    border: 2px solid #c81e1e;
}

.risk-medium {
    background-color: #fef3c7;
    color: #b45309;
    border: 2px solid #b45309;
}

.risk-low {
    background-color: #d1fae5;
    color: #065f46;
    border: 2px solid #065f46;
}

/* === Upload Area === */
.upload-area {
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
    border: 2px dashed #dee2e6 !important;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #0d6efd !important;
    background-color: #f0f7ff !important;
}

/* === Knowledge Cards === */
.knowledge-card {
    border-radius: 0.75rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.knowledge-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1) !important;
}

/* === Article Content === */
.article-content p {
    text-indent: 2em;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* === Loading Spinner === */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loading-overlay.show {
    display: flex;
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .risk-badge {
        font-size: 0.9rem;
        padding: 0.5rem 1.5rem;
    }
}
