/* Frontend Pages Styling - Dark Theme */

/* Import Inter font with all weights */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* Import Google Material Symbols */
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

/* Global frontend styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 100 !important;
    background: #000000 !important;
    color: rgb(237, 237, 237) !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Typography with Inter font-weight 100 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 100 !important;
    color: rgb(237, 237, 237) !important;
}

/* Override Bootstrap's fw-bold class */
.fw-bold {
    font-weight: 400 !important;
}

/* Specific heading weights and sizes */
h1 {
    font-size: 1.8rem !important;
    font-weight: 400 !important;
    line-height: 1.1 !important;
    margin-bottom: 1.8rem !important;
    letter-spacing: 0.3px !important;
}

h2 {
    font-size: 2.5rem !important;
    font-weight: 100 !important;
    line-height: 1.2 !important;
    margin-bottom: 1.25rem !important;
}

h3 {
    font-size: 2rem !important;
    font-weight: 100 !important;
    line-height: 1.3 !important;
    margin-bottom: 1rem !important;
}

h4 {
    font-size: 1.5rem !important;
    font-weight: 100 !important;
    line-height: 1.4 !important;
    margin-bottom: 0.75rem !important;
}

h5 {
    font-size: 1.25rem !important;
    font-weight: 300 !important;
    line-height: 1.5 !important;
    margin-bottom: 0.5rem !important;
}

h6 {
    font-size: 1rem !important;
    font-weight: 100 !important;
    line-height: 1.6 !important;
    margin-bottom: 0.5rem !important;
}

/* Secondary text with 60% opacity */
.text-secondary, .form-text, .small {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Card styling */
.frontend-card {
    background-color: #1a1a1a !important;
    border: 1px solid #333 !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.frontend-card-header {
    background: #000000 !important;
    border-bottom: 1px solid #333 !important;
}

.frontend-card-header h3 {
    color: rgb(237, 237, 237) !important;
    font-weight: 100 !important;
}

.frontend-card-header p {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Info cards */
.frontend-info-card {
    background-color: #1a1a1a !important;
    border: 1px solid #333 !important;
}

.frontend-info-card h5 {
    color: rgb(237, 237, 237) !important;
    font-weight: 100 !important;
}

.frontend-info-card p {
    color: rgba(255, 255, 255, 0.6) !important;
}

.frontend-info-card ul li {
    color: rgba(255, 255, 255, 0.6) !important;
    margin-bottom: 0.5rem !important;
}

/* Progress bar styling */
.frontend-progress {
    background-color: #2a2a2a !important;
}

.frontend-progress-bar {
    background: rgba(255, 255, 255, 0.12) !important;
}

/* Form styling */
.form-control {
    background-color: #333333 !important;
    border: 1px solid #555555 !important;
    color: rgb(237, 237, 237) !important;
    caret-color: rgba(255, 255, 255, 0.8) !important;
}

.form-control:focus {
    background-color: #333333 !important;
    border-color: #666666 !important;
    color: rgb(237, 237, 237) !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 102, 102, 0.25) !important;
    outline: none !important;
    caret-color: rgba(255, 255, 255, 0.8) !important;
}

/* File input styling */
input[type="file"] {
    background-color: #333333 !important;
    border: 1px solid #555555 !important;
    color: rgb(237, 237, 237) !important;
}

input[type="file"]:focus {
    background-color: #333333 !important;
    border-color: #666666 !important;
    color: rgb(237, 237, 237) !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 102, 102, 0.25) !important;
    outline: none !important;
}

/* File input button styling */
input[type="file"]::-webkit-file-upload-button {
    background-color: #555555 !important;
    color: rgb(237, 237, 237) !important;
    border: 1px solid #666666 !important;
    border-radius: 4px !important;
    padding: 6px 12px !important;
    margin-right: 8px !important;
    cursor: pointer !important;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background-color: #666666 !important;
    border-color: #777777 !important;
}

input[type="file"]::-webkit-file-upload-button:focus {
    background-color: #666666 !important;
    border-color: #777777 !important;
    outline: none !important;
}

/* Firefox file input button styling */
input[type="file"]::-moz-file-upload-button {
    background-color: #555555 !important;
    color: rgb(237, 237, 237) !important;
    border: 1px solid #666666 !important;
    border-radius: 4px !important;
    padding: 6px 12px !important;
    margin-right: 8px !important;
    cursor: pointer !important;
}

input[type="file"]::-moz-file-upload-button:hover {
    background-color: #666666 !important;
    border-color: #777777 !important;
}

.frontend-form-control {
    background-color: #2a2a2a !important;
    border: 1px solid #444 !important;
    color: rgb(237, 237, 237) !important;
    caret-color: rgba(255, 255, 255, 0.8) !important;
}

.frontend-form-control:focus {
    background-color: #2a2a2a !important;
    border-color: #444 !important;
    color: rgb(237, 237, 237) !important;
    box-shadow: none !important;
    outline: none !important;
    caret-color: rgba(255, 255, 255, 0.8) !important;
}

.frontend-form-control::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.frontend-form-label {
    color: rgb(237, 237, 237) !important;
}

.frontend-form-text {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Checkbox styling */
.form-check-input {
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.form-check-input:checked {
    background-color: #000000 !important;
    border-color: #000000 !important;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25) !important;
}

.form-check-input:checked:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25) !important;
}

.frontend-form-check-input {
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.frontend-form-check-input:checked {
    background-color: #000000 !important;
    border-color: #000000 !important;
}

.frontend-form-check-label {
    color: rgb(237, 237, 237) !important;
}

/* Button styling */
.frontend-btn-primary {
    color: rgb(237, 237, 237) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    font-weight: 100 !important;
    border: none !important;
}

.frontend-btn-primary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: rgb(237, 237, 237) !important;
}

.frontend-btn-outline {
    border-color: rgb(237, 237, 237) !important;
    color: rgb(237, 237, 237) !important;
    font-weight: 100 !important;
}

.frontend-btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.12) !important;
    color: rgb(237, 237, 237) !important;
}

/* Alert styling */
.frontend-alert {
    background-color: #2a2a2a !important;
    border: 1px solid #444 !important;
    color: rgb(237, 237, 237) !important;
}

/* Success alert - dark green */
.frontend-alert.alert-success,
.alert-success.frontend-alert {
    background-color: #155724 !important;
    border-color: #1e7e34 !important;
    color: #d4edda !important;
}

.frontend-alert h5,
.frontend-alert h6 {
    color: rgb(237, 237, 237) !important;
    font-weight: 100 !important;
}

.frontend-alert.alert-success h5,
.frontend-alert.alert-success h6 {
    color: #d4edda !important;
}

.frontend-alert ul {
    color: rgba(255, 255, 255, 0.6) !important;
}

.frontend-alert.alert-success ul {
    color: #d4edda !important;
}

.frontend-alert ul li {
    color: rgba(255, 255, 255, 0.6) !important;
    margin-bottom: 0.5rem !important;
}

.frontend-alert.alert-success ul li {
    color: #d4edda !important;
}

/* Icon styling */
.frontend-icon {
    vertical-align: middle !important;
}

.frontend-icon-large {
    font-size: 4rem !important;
}

.frontend-icon-medium {
    font-size: 2rem !important;
}

.frontend-icon-small {
    font-size: 1rem !important;
}

/* Icon colors */
.frontend-icon-primary {
    color: rgb(237, 237, 237) !important;
}

.frontend-icon-success {
    color: #28a745 !important;
}

.frontend-icon-info {
    color: #17a2b8 !important;
}

.frontend-icon-warning {
    color: #ffc107 !important;
}

.frontend-icon-secondary {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Divider styling */
.frontend-divider {
    border-color: #333 !important;
}

/* Text styling */
.frontend-text-primary {
    color: rgb(237, 237, 237) !important;
}

.frontend-text-secondary {
    color: rgba(255, 255, 255, 0.6) !important;
}

.frontend-text-center {
    text-align: center !important;
}

.frontend-text-start {
    text-align: start !important;
}

/* Link styling */
.frontend-link {
    color: rgb(237, 237, 237) !important;
}

.frontend-link:hover {
    color: #f8f9fa !important;
}

/* Small info cards */
.frontend-small-card {
    background-color: #2a2a2a !important;
    border: 1px solid #444 !important;
}

.frontend-small-card h6 {
    color: rgb(237, 237, 237) !important;
    font-weight: 100 !important;
}

.frontend-small-card p {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Autocomplete styling to match application font */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #2a2a2a inset !important;
    -webkit-text-fill-color: rgb(237, 237, 237) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Force Inter font on all input elements */
input {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Style autocomplete dropdown suggestions */
input[list]::-webkit-calendar-picker-indicator {
    display: none !important;
}

/* Style datalist dropdown options */
datalist {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

datalist option {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 100 !important;
    background-color: #000 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 8px 12px !important;
}

/* Browser autocomplete dropdown styling */
input:-webkit-autofill {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Target autocomplete dropdown specifically */
input[autocomplete] {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Override browser default styling for autocomplete */
input::-webkit-input-placeholder {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

input::-moz-placeholder {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

input:-ms-input-placeholder {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

input::placeholder {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Ensure all form inputs use Inter font */
input[type="email"],
input[type="password"],
input[type="text"],
input[type="search"],
input[list] {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Additional autocomplete styling for Firefox */
input:-moz-autofill {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Style autocomplete suggestions dropdown */
input[autocomplete] {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Override browser default autocomplete styling */
input[list] + datalist {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Ensure consistent font rendering */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Additional autocomplete styling attempts */
input[type="email"]::-webkit-textfield-decoration-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

input[type="email"]::-webkit-credentials-auto-fill-button {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Try to style autocomplete dropdown */
input[type="email"]:focus::-webkit-credentials-auto-fill-button {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Force font on autocomplete suggestions */
input[autocomplete="email"] {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Additional specificity for email inputs */
input[type="email"][autocomplete] {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Margin and padding utilities */
.frontend-mb-2 {
    margin-bottom: 0.5rem !important;
}

.frontend-mb-3 {
    margin-bottom: 1rem !important;
}

.frontend-mb-4 {
    margin-bottom: 1.5rem !important;
}

.frontend-mb-5 {
    margin-bottom: 3rem !important;
}

.frontend-mt-2 {
    margin-top: 0.5rem !important;
}

.frontend-mt-4 {
    margin-top: 1.5rem !important;
}

.frontend-me-1 {
    margin-right: 0.25rem !important;
}

.frontend-me-2 {
    margin-right: 0.5rem !important;
}

.frontend-me-3 {
    margin-right: 1rem !important;
}
