/*
/*****************************************************************
** COPYRIGHT NOTICE
**
** Copyright (C) 2025 Texas Facilities Commission (TFC)
** All rights reserved.
**
** This software is the confidential and proprietary information
** of Texas Facilities Commission ("Confidential Information").
** You shall not disclose such Confidential Information and shall
** use it only in accordance with the terms of the license agreement
** you entered into with Texas Facilities Commission.
**
** Unauthorized copying of this file, via any medium, is strictly
** prohibited.
**
** Proprietary and confidential.
**
** Author: Aquiles Mata
** Date: August 20, 2025
**
*****************************************************************/

/* TFC Account Request System - Custom Styles */

:root {
    --tfc-primary: #0066cc;
    --tfc-secondary: #6c757d;
    --tfc-success: #198754;
    --tfc-danger: #dc3545;
    --tfc-warning: #ffc107;
    --tfc-info: #0dcaf0;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 120px;
    /* Increased to accommodate taller footer */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    padding-bottom: 20px;
}

/* Main container to ensure content doesn't overlap footer */
.main-container {
    padding-bottom: 40px;
    min-height: calc(100vh - 180px);
}

.btn-primary {
    background-color: var(--tfc-primary);
    border-color: var(--tfc-primary);
    color: white !important;
}

.btn-primary:hover {
    background-color: #0052a3;
    border-color: #0052a3;
    color: white !important;
}

.bg-primary {
    background-color: var(--tfc-primary) !important;
}

.text-primary {
    color: var(--tfc-primary) !important;
}

.border-primary {
    border-color: var(--tfc-primary) !important;
}

.navbar-brand img {
    height: 30px;
    width: auto;
}

.card {
    border: none;
    border-radius: 0.5rem;
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
    font-weight: 600;
}

.form-label {
    font-weight: 600;
    color: #495057;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--tfc-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80px;
    /* Increased height to accommodate version info */
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    margin-top: 40px;
    padding: 10px 0;
}

.footer-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.footer-version {
    margin-top: 5px;
}

.footer-version .badge {
    font-size: 0.7rem;
}

.footer-links a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--tfc-primary);
    text-decoration: underline;
}

/* Custom alert styles */
.alert-info {
    background-color: #e7f3ff;
    border-color: #b8daff;
    color: #0c5460;
}

.alert-success {
    background-color: #e8f5e8;
    border-color: #c3e6c3;
    color: #0f5132;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #664d03;
}

.alert-danger {
    background-color: #ffe6e6;
    border-color: #ffb3b3;
    color: #721c24;
}

/* Form validation styles */
.field-validation-error {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--tfc-danger);
    font-weight: 600;
}

.input-validation-error {
    border-color: var(--tfc-danger) !important;
    border-width: 2px !important;
    background-color: #fef2f2;
}

.validation-summary-errors {
    color: var(--tfc-danger);
}

.validation-summary-errors ul {
    list-style-type: none;
    padding-left: 0;
}

.validation-summary-errors li {
    margin-bottom: 0.5rem;
}

/* Additional validation highlighting for invalid fields */
select:invalid,
input:invalid:not(:focus),
textarea:invalid:not(:focus) {
    border-color: #dee2e6;
    /* Keep default border until submit is clicked */
}

/* Show red border only when marked with error class */
select.validation-error-highlight,
input.validation-error-highlight,
textarea.validation-error-highlight {
    border-color: var(--tfc-danger) !important;
    border-width: 2px !important;
}

/* Loading states */
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive form improvements */
@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .card {
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
    }

    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* Accessibility improvements */
.form-control:focus,
.form-select:focus,
.btn:focus {
    outline: 2px solid var(--tfc-primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {

    .navbar,
    .footer,
    .btn {
        display: none !important;
    }

    .card {
        border: 1px solid #dee2e6;
        box-shadow: none;
    }

    .alert {
        border: 1px solid #dee2e6;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }

    .btn-primary {
        background-color: #000;
        border-color: #000;
        color: #fff;
    }

    .btn-primary:hover {
        background-color: #333;
        border-color: #333;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
