/* === Base === */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    background-color: #f5f6fa;
}

/* === Focus states === */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #2E74B5;
}

/* === Card-based sections === */
.form-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    overflow: hidden;
}

.section-header {
    background: #2E74B5;
    color: #fff;
    padding: 12px 20px;
    font-size: 13pt;
    font-weight: 600;
    display: flex;
    align-items: center;
    width: 100%;
    letter-spacing: 0.5px;
}

.section-header i {
    font-size: 16pt;
    opacity: 0.85;
}

.section-header .bi-chevron-down {
    transition: transform 0.25s ease;
}

.section-header.collapsed .bi-chevron-down {
    transform: rotate(-90deg);
}

.section-body {
    padding: 16px 20px 20px;
}

.section-divider {
    display: none;
}

.section-footer {
    display: none;
}

/* === Form inputs === */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #2E74B5;
    box-shadow: 0 0 0 3px rgba(46, 116, 181, 0.15);
}

input[readonly] {
    background-color: #f8f9fa;
}

/* === Labels in form rows === */
.indent1 {
    padding-left: 12px;
    display: flex;
    align-items: center;
}

/* === Results === */
.result-success {
    color: #fff;
    background-color: #28a745;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.result-failure {
    color: #fff;
    background-color: #dc3545;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px 16px;
    margin: 12px 0;
    border-radius: 8px;
    text-align: center;
}

.failure-message {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 16px;
    margin: 12px 0;
    border-radius: 8px;
    text-align: center;
}

/* === Buttons === */
.btn {
    border-radius: 8px;
}

.btn-logout {
    padding: 6px 12px;
}

.form-buttons {
    text-align: center;
    margin: 20px 0;
}

/* === Text alignment === */
.alignRight {
    text-align: right;
}

/* === Navbar enhancements === */
header.fixed-top {
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

/* === Footer === */
footer.fixed-bottom {
    font-size: 0.85rem;
}
