/* ========================================
   STRATA ENERGY ADVISORS BRAND COLORS
   ======================================== */

:root {
    /* Primary Brand Colors */
    --strata-deep-slate: #3F4B55;
    --strata-sage-green: #9EBBAA;
    --strata-warm-cream: #F0EAD8;
    --strata-pale-sage: #DCE7DF;
    --strata-light-stone: #F7F4EC;

    /* Secondary & Accent Colors */
    --strata-blue-gray: #738692;
    --strata-dusty-rose: #C9A8A1;
    --strata-slate-gray: #5F686E;

    /* Fonts */
    --strata-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
  font-size: 14px;
  font-family: var(--strata-font-primary);
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* Apply Inter font to all text including headings */
body,
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--strata-font-primary);
    color: var(--strata-deep-slate);
}

/* Make headings bold with Inter */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 600;
}

/* Brand-styled buttons */
.btn-primary {
    background-color: var(--strata-sage-green);
    border-color: var(--strata-sage-green);
    color: var(--strata-deep-slate);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #8aab9a;
    border-color: #8aab9a;
    color: var(--strata-deep-slate);
}

.btn-secondary {
    background-color: var(--strata-blue-gray);
    border-color: var(--strata-blue-gray);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--strata-slate-gray);
    border-color: var(--strata-slate-gray);
}

/* Brand-styled cards */
.card-header.bg-primary {
    background-color: var(--strata-deep-slate) !important;
    color: white;
}

.card-header.bg-success {
    background-color: var(--strata-sage-green) !important;
    color: var(--strata-deep-slate);
}

/* Brand-styled badges */
.badge.bg-secondary {
    background-color: var(--strata-blue-gray) !important;
}

.badge.bg-info {
    background-color: var(--strata-pale-sage) !important;
    color: var(--strata-deep-slate);
}

/* Navigation and header styling */
.navbar {
    background-color: var(--strata-deep-slate) !important;
}

.navbar-brand,
.nav-link {
    color: var(--strata-warm-cream) !important;
}

.nav-link:hover {
    color: var(--strata-sage-green) !important;
}

/* Logo styling */
.navbar-logo {
    height: 40px;
    width: auto;
    /* Since the logo has a white background and we have a dark navbar, 
       we'll add some padding and background to make it stand out */
    background: white;
    padding: 5px 15px;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

/* Page background */
body {
    background-color: var(--strata-light-stone);
    color: var(--strata-deep-slate);
}

/* Table styling */
.table thead {
    background-color: var(--strata-pale-sage);
    color: var(--strata-deep-slate);
}

/* Focus states with brand color */
.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 var(--strata-sage-green);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ========================================
   FORM VALIDATION STYLES
   ======================================== */

/* Required field indicator */
label.required::after,
.form-label.required::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
    margin-left: 2px;
}

/* Enhanced validation error messages */
.text-danger {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Validation summary styling */
.validation-summary-errors {
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #dc3545;
    background-color: #f8d7da;
    border-radius: 0.25rem;
}

.validation-summary-errors ul {
    margin-bottom: 0;
    padding-left: 1.5rem;
}

.validation-summary-errors li {
    color: #721c24;
}

/* Invalid field styling */
.input-validation-error,
.form-control.input-validation-error,
.form-select.input-validation-error {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: calc(1.5em + 0.75rem);
}

.form-control.input-validation-error:focus,
.form-select.input-validation-error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Valid field styling */
.form-control.valid,
.form-select.valid {
    border-color: #198754;
}

/* Submit button validation state */
button[type="submit"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Field group spacing for better readability */
.form-group {
    margin-bottom: 1rem;
}

/* Help text for validation */
.field-validation-hint {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
    display: block;
}

/* Highlight required sections */
.required-section {
    position: relative;
}

.required-section::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #dc3545;
    opacity: 0.3;
}

/* ========================================
   TAB NAVIGATION STYLING
   ======================================== */

/* Style tabs on bg-primary headers */
.card-header.bg-primary .nav-tabs .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    border: none !important;
    background-color: transparent !important;
    transition: color 0.2s ease;
}

.card-header.bg-primary .nav-tabs .nav-link:hover {
    color: rgba(255, 255, 255, 0.9) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
}

.card-header.bg-primary .nav-tabs .nav-link.active,
.card-header.bg-primary .nav-tabs .nav-link[aria-selected="true"] {
    color: var(--strata-deep-slate) !important;
    background-color: white !important;
    border: none !important;
    font-weight: 600 !important;
}

/* Badge styling within tabs */
.card-header.bg-primary .nav-tabs .nav-link .badge {
    margin-left: 0.5rem;
}


