html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.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 #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}


:root {
    --apple-primary: #0071E3;
    --apple-primary-hover: #0077ED;
    --apple-primary-active: #0062C4;
    --apple-secondary: #E8E8ED;
    --apple-secondary-hover: #D8D8DC;
    --apple-secondary-active: #C8C8CC;
    --apple-text: #1D1D1F;
    --apple-text-secondary: #86868B;
    --apple-border: #D2D2D7;
    --apple-background: #F5F5F7;
    --apple-card-bg: #FFFFFF;
    --apple-error: #FF3B30;
}

body {
    background-color: var(--apple-background);
    color: var(--apple-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.5;
}

.apple-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.apple-form-container {
    background-color: var(--apple-card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.apple-form-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--apple-border);
}

.apple-form-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--apple-text);
}

.apple-form-subtitle {
    font-size: 0.875rem;
    color: var(--apple-text-secondary);
    margin-top: 0.25rem;
}

.apple-form {
    padding: 2rem;
}

.apple-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.apple-form-fullwidth {
    margin-bottom: 1.5rem;
}

.apple-form-group {
    margin-bottom: 1.25rem;
}

.apple-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--apple-text);
}

.apple-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    border: 1px solid var(--apple-border);
    border-radius: 8px;
    background-color: var(--apple-card-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .apple-input:focus {
        outline: none;
        border-color: var(--apple-primary);
        box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
    }

    .apple-input::placeholder {
        color: var(--apple-text-secondary);
        opacity: 0.6;
    }

.apple-select-container {
    position: relative;
}

.apple-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    border: 1px solid var(--apple-border);
    border-radius: 8px;
    background-color: var(--apple-card-bg);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .apple-select:focus {
        outline: none;
        border-color: var(--apple-primary);
        box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
    }

.apple-select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.apple-date-container {
    position: relative;
}

.apple-date-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.apple-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--apple-border);
    margin-top: 1.5rem;
}

.apple-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6875rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    border: none;
    text-decoration: none;
}

.apple-button-primary {
    background-color: var(--apple-primary);
    color: white;
}

    .apple-button-primary:hover {
        background-color: var(--apple-primary-hover);
    }

    .apple-button-primary:active {
        background-color: var(--apple-primary-active);
        transform: scale(0.98);
    }

.apple-button-secondary {
    background-color: var(--apple-secondary);
    color: var(--apple-text);
}

    .apple-button-secondary:hover {
        background-color: var(--apple-secondary-hover);
    }

    .apple-button-secondary:active {
        background-color: var(--apple-secondary-active);
        transform: scale(0.98);
    }

.apple-alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.apple-alert-error {
    background-color: rgba(255, 59, 48, 0.1);
    color: var(--apple-error);
    border: 1px solid rgba(255, 59, 48, 0.2);
}

.apple-validation {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--apple-error);
}

/* Custom date input styling */
input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .apple-form-grid {
        grid-template-columns: 1fr;
    }

    .apple-form-actions {
        flex-direction: column-reverse;
    }

    .apple-button {
        width: 100%;
    }
}

.apple-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
    box-sizing: border-box; /* ensures padding doesn't affect width */
    min-height: 100px; /* gives it some initial height */
    resize: vertical; /* allows user to resize vertically only */
}

    /* Optional: to match exactly your input field height when single line */
    .apple-textarea:not([rows]) {
        height: calc(2.25rem + 2px); /* matches typical input height */
    }
/* Add to your site.css */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.badge-success {
    background-color: #28a745;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.select2-container--default .select2-selection--single {
    height: calc(1.5em + 0.75rem + 2px);
    border: 1px solid #ced4da;
}

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: calc(1.5em + 0.75rem + 2px);
    }

.card-header h5 {
    margin-bottom: 0;
}

.centered-logo-text {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    gap: 1rem; /* Space between logo and text */
}

.logo-img {
    height: 50px; /* Adjust as needed */
}

.brand-text {
    font-size: 2.5rem; /* h1 size (~40px) */
    font-weight: bold;
    line-height: 1.2;
}

/* Ensures full-width centering */
.navbar-brand-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none; /* Allows clicks on the link */
}

    /* Re-enable pointer events for the clickable brand */
    .navbar-brand-wrapper .navbar-brand {
        pointer-events: auto;
    }

/* Logo and text alignment */
.navbar-brand {
    display: inline-flex !important; /* Override Bootstrap */
}

/* Optional: Adjust spacing for mobile */
@media (max-width: 768px) {
    .brand-text {
        font-size: 1.75rem !important;
    }

    .logo-img {
        height: 40px !important;
    }
}

/* Enhanced Home Button with Text */
.home-btn-group {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    padding: 6px 10px 6px 8px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.home-btn-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #007AFF;
    letter-spacing: -0.2px;
    transition: color 0.2s ease;
}

.apple-home-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.home-btn-group:hover {
    background: rgba(0, 125, 250, 0.08);
}

    .home-btn-group:hover .home-btn-text {
        color: #0063CC;
    }

    .home-btn-group:hover .apple-home-icon {
        transform: scale(1.05);
    }

.home-btn-group:active {
    background: rgba(0, 125, 250, 0.15);
    transform: translateY(0.5px);
}

.apple-home-icon {
    fill: #007AFF;
    transition: transform 0.2s ease;
}