/*
 * Script:      stylesheet.css
 * Modified:    03-24-2026
 * Frontend:    HTML5 & CSS3
 * Backend:     PHP 8.3
 * Database:    MariaDB 11.2
 * Author:      Autorisk Solutions, LLC
 * Copyright:   Autorisk Solutions, LLC
 * Email:       webmaster@autoriskreports.com
 * URL:         https://www.autoriskreports.com
*/

/* This script:
 - is the sign up script for the application.
 - calls the configuration script.
 - redirects invalid users.
 - opens the database connection.
 - displays, validates and processes the sign up form.
*/
/* ===============================
 * GLOBAL STYLES
 * =============================== */

/* Text Selection Highlight */
::selection {
    color: #ffffff;
    background-color: red;
}

/* Bootstrap Dark Mode Secondary Color */
:root {
    --bs-secondary: #6c757d; /* light mode */
    --bs-focus-ring-color: none; /* Disable default focus ring */
    --bs-checked-fill-color: none; /* Prevent default checked color */
}

[data-bs-theme="dark"] {
    --bs-secondary: #adb5bd; /* dark mode */
}

/* Container Full Width Override */
.container {
    max-width: 100% !important;
}

/* ===============================
 * TYPOGRAPHY
 * =============================== */

/* User Icon */
.user-icon {
    font-size: 1.25em;
    font-weight: 700;
    padding: 0.35em;
    text-transform: uppercase;
}

/* User Info */
.user-name {
    font-size: 1em;
    font-weight: 500;
    text-transform: capitalize;
}

.user-email {
    font-size: 0.875em;
    text-transform: lowercase;
    line-height: 0.6em;
}

/* Bootstrap Icons Sizing */
.bi-1 {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-block;
    vertical-align: -0.125em;
    fill: currentColor;
}

.bi-2 {
    width: 0.75rem;
    height: 0.75rem;
    display: inline-block;
    vertical-align: -0.125em;
    fill: currentColor;
}

.bi-3 {
    width: 2.5rem;
    height: 2.5rem;
    fill: currentColor;
}

.bi-4 {
    width: 4rem;
    height: 4rem;
    fill: currentColor;
}

.bi-5 {
    width: 5rem;
    height: 5rem;
    fill: #dc3545;
}

/* Dropdown Menu Icon Opacity */
.dropdown-item.active svg.me-2 {
    fill: white !important;
    color: white !important;
    opacity: 1 !important;
}

.dropdown-item:not(.active) svg.me-2 {
    opacity: 0.5;
}

/* ===============================
 * LAYOUT ELEMENTS
 * =============================== */

/* Icon Square Sizing */
.icon-square {
    width: 2.1rem;
    height: 2.1rem;
}

/* Example Dividers */
.b-example-divider {
    width: 100%;
    height: 3rem;
    background-color: rgba(0, 0, 0, 0.1);
    border-width: 1px 0;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: inset 0 0.5em 1.5em rgba(0, 0, 0, 0.1),
                inset 0 0.125em 0.5em rgba(0, 0, 0, 0.15);
}

.b-example-vr {
    flex-shrink: 0;
    width: 1.5rem;
    height: 100vh;
}

/* Card Cover Background */
.card-cover {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* ===============================
 * NAVIGATION
 * =============================== */

/* Sidebar */
.sidebar .nav-link { font-size: 0.875rem; font-weight: 500; }
.sidebar .nav-item .nav-link:hover:not(.active) { background-color: #eee !important; }
.sidebar-heading { font-size: 0.875rem; }

/* Sidebar Sticky Positioning (Large Screens) */
@media (min-width: 768px) {
    .sidebar .offcanvas-lg {
        position: sticky;
        top: 48px;
    }
    .navbar-search { display: block; }
}

/* Navbar */
.navbar-brand {
    padding: 0.75rem 0;
}

.navbar .form-control {
    padding: 0.75rem 1rem;
}

/* Navigation Scroller */
.nav-scroller {
    position: relative;
    z-index: 1000;
    height: 2.75rem;
    overflow-y: hidden;
}

.nav-scroller .nav {
    display: flex;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    margin-top: -1px;
    overflow-x: auto;
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

/* ===============================
 * BUTTONS
 * =============================== */

/* Secondary Button Dark Mode */
.btn-secondary {
    background-color: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
}

/* ===============================
 * FORMS
 * =============================== */

/* Remove Bootstrap Default Focus Ring */
.form-control:focus,
.form-select:focus,
.input-group-text:focus,
.form-check-input:focus,
.page-link:focus,
textarea:focus,
button:focus {
    box-shadow: none !important;
}

/* Checkbox / Radio Custom Checked */
.form-check-input:checked {
    background-color: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
}

/* Search Form */
.input-group .form-control { border-left: 0; }
.input-group .btn { border-right: 0; }

/* Dropdown List States */
.dropdown-item:focus, 
.dropdown-item:focus-visible, 
.dropdown-item.active, 
.dropdown-item:active {
    background-color: #6c757d !important;
    color: white !important;
}

/* Form Widths */
.signin-form {
    max-width: 350px;
    width: 100%;
    z-index: 1;
}

.signup-form {
    max-width: 400px;
    width: 100%;
}

.reset-password-form {
    max-width: 400px;
    width: 100%;
}

/* Form Alerts */
.alert {
    max-width: 100%;
}

/* Invalid Inputs */
.form-control.is-invalid {
    border-color: red !important;
}

/* Pointer Cursors for Form Elements */
form button,
form input[type="submit"],
form input[type="radio"],
form label,
form select {
    cursor: pointer;
}

/* ===============================
 * UTILITIES
 * =============================== */

/* Text Shadows */
.text-shadow-1 {
    text-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.25);
}

.text-shadow-2 {
    text-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.25);
}

.text-shadow-3 {
    text-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.25);
}

/* Button Group Z-Index */
.bd-mode {
    z-index: 1100;
}

/* Card Text */
.card-text {
    font-size: 0.95em !important;
}

.text-muted {
    color: color-mix(in srgb, var(--bs-secondary) 75%, transparent) !important;
}

/* Custom Upload Field */
.input-group .upload-icon-link svg { color: #6c757d; }
.input-group .upload-icon-link {
    display: flex;
    align-items: center;
    padding-left: 0.75rem;
    pointer-events: auto;
}

/* Flatpickr Calendar Styling */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: #e9ecef !important;
    color: #212529 !important;
    border-color: #dee2e6 !important;
}

.flatpickr-day:hover {
    background: #e9ecef !important;
    color: #212529 !important;
}

/* ===============================
 * LISTS
 * =============================== */

/* Ordered Lists with Counters */
ol {
    list-style: none;
    counter-reset: section;
}

ol > li {
    counter-increment: section;
    position: relative;
    padding-left: 0.75em;
}

ol > li::before {
    content: counters(section, ".") ".";
    position: absolute;
    left: -2em;
    top: -0.15em;
    width: 1.75em;
    text-align: right;
}

ol > li > ol {
    counter-reset: section;
}

ol > li > ol > li {
    counter-increment: section;
    position: relative;
    left: 0.5em;
}

ol > li > ol > li::before {
    content: counters(section, ".") ".";
    position: absolute;
    left: -1.75em;
    top: -0.15em;
    width: 1.5em;
    text-align: right;
}

/* Unordered Lists */
ul {
    list-style-type: disc;
}

/* ===============================
 * INTERACTIVITY
 * =============================== */

/* Cursor for Cards */
.cursor-pointer  {
    cursor: pointer !important;
}

/* Bootstrap Tooltip Customization */
.custom-tooltip {
    --bs-tooltip-bg: var(--bs-secondary) !important;
    --bs-tooltip-color: #fff !important;
    border-radius: 2px !important;
}