/* MARBEFES Tool Evaluation Questionnaire - Custom Styles */

/* Color palette */
:root {
    --marbefes-blue: #1a5276;
    --marbefes-teal: #148f77;
    --marbefes-light: #d4e6f1;
}

/* Override Bootstrap primary */
.bg-primary {
    background-color: var(--marbefes-blue) !important;
}

.btn-primary {
    background-color: var(--marbefes-blue);
    border-color: var(--marbefes-blue);
}

.btn-primary:hover {
    background-color: #154360;
    border-color: #154360;
}

.text-primary {
    color: var(--marbefes-blue) !important;
}

/* Navbar logo */
.navbar-logo {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Hero logo on landing page */
.hero-logo {
    max-width: 280px;
    height: auto;
}

/* Question cards */
.card {
    border-left: 4px solid var(--marbefes-blue);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.card-title {
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

/* Likert/radio scale styling */
.form-check {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.15s;
}

.form-check:last-child {
    border-bottom: none;
}

.form-check:hover {
    background-color: #f8f9fa;
}

.form-check-input:checked + .form-check-label {
    font-weight: 600;
    color: var(--marbefes-blue);
}

/* Progress bar section badges */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* Navbar brand */
.navbar-brand {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Form section headings */
h2 {
    color: var(--marbefes-blue);
    font-size: 1.5rem;
    font-weight: 600;
}

/* Required field indicator */
.text-danger {
    font-weight: bold;
}

/* Textarea styling */
textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Table styling in review/admin */
.table-sm td {
    padding: 0.4rem 0.6rem;
    vertical-align: top;
}

/* Admin dashboard stats cards */
.card.text-center .card-title {
    font-size: 2rem;
    font-weight: 700;
}

/* Footer */
footer {
    font-size: 0.85rem;
}

/* Resume code display */
.resume-code-display {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 8px;
    color: var(--marbefes-blue);
    font-family: 'Courier New', monospace;
    padding: 0.5rem 0;
    user-select: all;
}

/* Resume code input */
.resume-code-input {
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
}

/* Tool gateway card */
.tool-gateway-card {
    border-left: 6px solid var(--marbefes-teal);
}

.tool-gateway-card .card-title {
    font-size: 1.3rem;
    color: var(--marbefes-blue);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h2 {
        font-size: 1.3rem;
    }

    .card-title {
        font-size: 0.95rem;
    }

    .form-check {
        padding: 0.4rem 0.8rem 0.4rem 2.2rem;
    }

    .btn-lg {
        font-size: 1rem;
        padding: 0.5rem 1.5rem;
    }

    .resume-code-display {
        font-size: 1.8rem;
        letter-spacing: 5px;
    }

    .hero-logo {
        max-width: 200px;
    }

    .navbar-logo {
        height: 28px;
    }
}

/* Validation styles */
.was-validated .form-check-input:invalid ~ .form-check-label {
    color: #dc3545;
}

.was-validated .form-select:invalid {
    border-color: #dc3545;
}

/* Category badge colors */
.bg-purple {
    background-color: #6f42c1 !important;
}
