/* Reusable Modern Search Form Styles */
.search-container {
    max-width: 950px;
    margin: 0 auto;
    padding-top: 20px;
}

.search-title {
    color: #003366 !important;
    font-weight: bold;
    font-size: 24px; /* X-Large */
    text-decoration: underline;
    margin-bottom: 25px;
    display: inline-block;
}

.search-label {
    font-weight: 600;
    color: #475569;
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
}

/* Modernized Reusable Action Buttons */
.search-btn {
    font-family: FontAwesome, sans-serif !important;
    font-weight: bold !important;
    height: 38px !important;
    border: none !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04) !important;
}

.search-btn:hover {
    transform: translateY(-1.5px) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.06) !important;
}

.search-btn:active {
    transform: translateY(0.5px) !important;
}

/* Search (Submit) Button - Vibrant Orange Theme Gradient */
.search-btn-submit {
    min-width: 120px;
    background: linear-gradient(135deg, #ff7a1a 0%, #ff983f 100%) !important;
}

.search-btn-submit:hover {
    background: linear-gradient(135deg, #ff8b35 0%, #ffa858 100%) !important;
}

/* Reset Button - Professional Slate Gray Gradient */
.search-btn-reset {
    width: 100px;
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
}

.search-btn-reset:hover {
    background: linear-gradient(135deg, #7889a4 0%, #5b6c85 100%) !important;
}

/* Print Button - Executive Navy Blue Gradient */
.search-btn-print {
    width: 100px;
    background: linear-gradient(135deg, #0b2a5b 0%, #153e7e 100%) !important;
}

.search-btn-print:hover {
    background: linear-gradient(135deg, #123e80 0%, #1e55a4 100%) !important;
}

/* Success (Save) Button - Vibrant Green Theme Gradient */
.search-btn-save {
    min-width: 100px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.search-btn-save:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%) !important;
}

/* Danger (Exit/Logout) Button - Vibrant Red Theme Gradient */
.search-btn-exit {
    width: 100px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

.search-btn-exit:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%) !important;
}

/* Modern Form Layout Rules */
.form-card-container {
    max-width: 1100px;
    margin: 20px auto;
}

.form-row-spacing {
    margin-bottom: 18px !important;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.form-label-bold {
    font-weight: 600 !important;
    color: #334155 !important;
    font-size: 13px !important;
    display: inline-block !important;
}

/* Enhancing inputs globally in our cards */
.modern-card-body .form-control {
    border-radius: 6px !important;
    border: 1px solid #cbd5e1 !important;
    height: 36px !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    color: #1e293b !important;
    background-color: #ffffff !important;
    transition: all 0.2s ease-in-out !important;
}

.modern-card-body .form-control:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
    outline: 0 !important;
}

.modern-card-body .form-control[readonly] {
    background-color: #f1f5f9 !important;
    color: #64748b !important;
    border-color: #e2e8f0 !important;
}

/* Precise Checkbox Alignment System */
.checkbox-align-container {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    height: 36px !important; /* Matches standard row input height */
}

.checkbox-align-container label {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    font-weight: 600 !important;
    color: #334155 !important;
    font-size: 13px !important;
    display: inline-block !important;
}

.checkbox-align-container input[type="checkbox"] {
    margin: 0 !important;
    width: 18px !important;
    height: 18px !important;
    cursor: pointer !important;
    vertical-align: middle !important;
}

.checkbox-align-container span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Reusable Pseudo-icons for ASP.NET Buttons (maintaining Text property values) */
.search-btn-submit::before {
    content: "\f002" !important;
    font-family: FontAwesome !important;
    margin-right: 8px !important;
}

.search-btn-reset::before {
    content: "\f0e2" !important;
    font-family: FontAwesome !important;
    margin-right: 8px !important;
}

.search-btn-print::before {
    content: "\f02f" !important;
    font-family: FontAwesome !important;
    margin-right: 8px !important;
}

.search-btn-save::before {
    content: "\f0c7" !important;
    font-family: FontAwesome !important;
    margin-right: 8px !important;
}

.search-btn-exit::before {
    content: "\f00d" !important;
    font-family: FontAwesome !important;
    margin-right: 8px !important;
}

.search-btn-reprocess::before {
    content: "\f021" !important; /* fa-refresh */
    font-family: FontAwesome !important;
    margin-right: 8px !important;
}

/* Reprocess Button - Amber/Warning Gradient */
.search-btn-reprocess {
    min-width: 120px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.search-btn-reprocess:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
}

/* Modern Segmented Control Toggle (iOS-style Switch for RadioButtonLists) */
.modern-radio-list {
    border: none !important;
    margin-bottom: 0;
    display: inline-block;
}
.modern-radio-list tbody, 
.modern-radio-list tr {
    display: flex !important;
    flex-direction: row;
}
.modern-radio-list tbody {
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.modern-radio-list td {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.modern-radio-list input[type="radio"] {
    display: none !important; /* Hide original radio input */
}
.modern-radio-list label {
    display: inline-block;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin: 0 !important;
    user-select: none;
    text-align: center;
}
/* Style label when sibling radio is checked */
.modern-radio-list input[type="radio"]:checked + label {
    background: #003366 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}
/* Hover effect for unselected items */
.modern-radio-list input[type="radio"]:not(:checked) + label:hover {
    color: #334155;
    background: rgba(0, 0, 0, 0.02);
}

/* Styling for SchemewiseCodeList top summary labels */
.summary-meta-label {
    display: inline-block !important;
    padding: 6px 16px !important;
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    color: #0f172a !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    margin: 5px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    text-decoration: none !important;
}
.summary-meta-label b {
    color: #003366 !important;
    font-weight: 700 !important;
}

/* Premium Eye-Catching Header Buttons */
.premium-btn {
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    border: none !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04) !important;
}

.premium-btn:hover {
    transform: translateY(-1.5px) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.06) !important;
}

.premium-btn i {
    font-size: 14px !important;
}

.premium-login-btn {
    color: #ffffff !important;
    background: linear-gradient(135deg, #ff7a1a 0%, #ff983f 100%) !important; /* Theme Orange */
}

.premium-logout-btn {
    color: #ffffff !important;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important; /* Theme Red */
}
