﻿/* =====================================================
   1. Base / Legacy ASP.NET MVC styles
   ===================================================== */

/* Basic page spacing */
body {
    padding-top: 50px;
    padding-bottom: 20px;
}

/* Keep content from touching edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Limit input widths (legacy MVC behavior) */
input:not([type="checkbox"]),
select,
textarea {
    max-width: 280px;
}

/* =====================================================
   2. Validation styles (ASP.NET MVC / jQuery Validation)
   ===================================================== */

.field-validation-error {
    color: #b94a48;
}

.field-validation-valid {
    display: none;
}

input.input-validation-error {
    border: 1px solid #b94a48;
}

input[type="checkbox"].input-validation-error {
    border: 0 none;
}

.validation-summary-errors {
    color: #b94a48;
}

.validation-summary-valid {
    display: none;
}

/* =====================================================
   3. Typography & Utility helpers
   ===================================================== */

.font-bold {
    font-weight: bold;
}

/* Custom text styling */
.myLatinNames {
    font-weight: bold;
    font-style: italic;
    color: blue;
}

/* =====================================================
   4. Bootstrap customizations
   ===================================================== */

/* Light Primary Navbar */
.bg-primary-light {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-bottom: 3px solid #0d6efd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-light .navbar-brand.text-primary {
    color: #0056b3 !important;
}

.navbar-light .navbar-brand:hover {
    color: #003d82 !important;
}

/* =====================================================
   5. Custom Components
   ===================================================== */

/* Bootstrap 5 replacement for removed Jumbotron */
.kpg-header {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem 0.5rem;
    margin-bottom: 1.5rem;
}

    .kpg-header h2 {
        font-size: 1.8rem;
        margin-bottom: 0.25rem;
        color: #0056b3;
    }

    .kpg-header h3 {
        font-size: 1.3rem;
        margin: 0;
        color: #333;
    }

/* =====================================================
   6. Layout (moved from _Layout.cshtml)
   ===================================================== */

/* Full-height layout with sticky footer support */
html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

/* Main content grows to fill available space */
.page-content {
    flex: 1;
}

/* =====================================================
   7. Responsive adjustments
   ===================================================== */

/* Make form inputs full width on mobile */
@media (max-width: 768px) {
    input:not([type="checkbox"]),
    select,
    textarea {
        max-width: 100%;
    }
}
