html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

/* ===== Navbar ===== */
.site-navbar {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    padding: 0.8rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.site-navbar .navbar-brand {
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.site-navbar .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

.site-navbar .nav-link.active {
    opacity: 1;
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
    padding: 2rem 0 4rem;
    min-height: 70vh;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.85;
    max-width: 500px;
    margin-top: 1.25rem;
    line-height: 1.7;
}

.hero-btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hero-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    max-height: 420px;
}

/* ===== Stats Section ===== */
.stats-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
}

.stat-number-lg {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.stat-label-lg {
    font-size: 0.95rem;
    opacity: 0.75;
    margin-top: 0.25rem;
}

/* ===== Features Section ===== */
.features-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.section-title {
    font-weight: 700;
    font-size: 2rem;
    color: #1a1a2e;
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
}

.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: #2c5364;
    margin-bottom: 1.25rem;
}

.feature-card h4 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1a1a2e;
}

.feature-card p {
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 5rem 0;
    background: #fff;
}

.cta-title {
    font-weight: 700;
    font-size: 2rem;
    color: #1a1a2e;
}

.cta-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ===== About Page ===== */
.about-hero {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
}

.about-section {
    padding: 5rem 0;
}

.about-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.stat-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.75rem;
    text-align: center;
    border: 1px solid #e9ecef;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2c5364;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.values-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.value-card {
    text-align: center;
    padding: 2rem;
}

.value-icon {
    font-size: 2.5rem;
    color: #2c5364;
    margin-bottom: 1rem;
}

.value-card h4 {
    font-weight: 700;
    color: #1a1a2e;
}

.value-card p {
    color: #6c757d;
    line-height: 1.7;
}

/* ===== Login Page ===== */
.login-page {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    min-height: 100vh;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-logo {
    font-size: 3rem;
    color: #2c5364;
    margin-bottom: 0.5rem;
}

.login-title {
    font-weight: 700;
    color: #1a1a2e;
}

.login-btn {
    padding: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    font-size: 1.05rem;
}

/* ===== Footer ===== */
.site-footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.6);
    padding: 2rem 0;
    font-size: 0.9rem;
}

a, .btn-link {
    color: #006bb3;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* ===== Rich text message input ===== */
.message-input {
    min-height: 38px;
    max-height: 120px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.message-input:empty:before {
    content: attr(data-placeholder);
    color: #6c757d;
    pointer-events: none;
}

.message-input:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: #86b7fe;
}

.message-input a {
    color: #0d6efd;
    text-decoration: underline;
}

/* Links in chat messages */
.mb-2 a {
    color: #0d6efd;
    text-decoration: underline;
}

.mb-2 a:hover {
    text-decoration: none;
}

.messages-container {
    scroll-behavior: smooth;
}

.messages-container.drag-over {
    border: 3px dashed #1b6ec2 !important;
    background-color: #e3f2fd !important;
}

.drop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(27, 110, 194, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

.drop-overlay-content {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    border: 3px dashed #1b6ec2;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.drop-overlay-content h4 {
    margin: 0;
    color: #1b6ec2;
}

.file-message {
    background-color: #e3f2fd;
    padding: 0.5rem;
    border-radius: 0.25rem;
}

.file-message .card {
    background-color: white;
}
