/* Tabs Styling */
.main-tabs-container {
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-top: -113px;
    position: relative;
    z-index: 1110;
    background-color: white;
}


.main-tabs {
    border-bottom: none;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.main-tabs .nav-link {
    color: var(--text-secondary, #495057);
    font-weight: 600;
    padding: 14px 24px;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-right: 8px;
    position: relative;
    overflow: hidden;
}

.main-tabs .nav-link i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.main-tabs .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary-base) 0%, var(--color-primary-dark) 100%);
    box-shadow: 0 4px 10px rgba(78, 115, 223, 0.3);
    transform: translateY(-2px);
}

.main-tabs .nav-link:hover:not(.active) {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.main-tabs .nav-link:hover i {
    transform: translateY(-2px);
}

/* Form Styling */
.search-mode-selector {
    padding: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,249,250,0.9) 100%);
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.search-mode-selector .form-check-inline {
    margin-right: 15px;
    position: relative;
}

.search-mode-selector .form-check-input {
    cursor: pointer;
}

.search-mode-selector .form-check-label {
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 20px;
}

.search-mode-selector .form-check-input:checked + .form-check-label {
    color: var(--primary, #1976D2);
    font-weight: 600;
}

.search-mode-fields {
    transition: all 0.4s ease;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Elements Styling */
.search-form-modern {
    background-color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
}

.search-form-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #4e73df, #224abe);
}

.search-form-modern .form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.search-form-modern .form-group label {
    font-weight: 500;
    color: var(--text-secondary, #495057);
    margin-bottom: 0.5rem;
    display: block;
}

.search-form-modern .form-control {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    font-size: 1rem;
}

.search-form-modern .form-control:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
    background-color: #fff;
}

.search-form-modern .form-control::placeholder {
    color: #adb5bd;
    font-size: 0.9rem;
}

.search-form-modern .form-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

.btn-search {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(78, 115, 223, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(78, 115, 223, 0.4);
}

.btn-search:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(78, 115, 223, 0.3);
}

.btn-search i {
    transition: transform 0.3s ease;
}

.btn-search:hover i {
    transform: translateX(3px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .main-tabs .nav-link {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .main-tabs .nav-link i {
        margin-right: 5px;
    }
    
    .search-mode-selector {
        padding: 12px;
        gap: 8px;
    }
    
    .form-check-inline {
        margin-right: 5px;
        margin-bottom: 8px;
    }
    
    .search-form-modern {
        padding: 1.2rem;
    }
    
    .btn-search {
        width: 100%;
        padding: 10px 20px;
    }
}

/* Validation Styling */
.is-invalid {
    border-color: #dc3545;
    border-width: 2px;
    padding-right: calc(1.5em + 0.75rem);
    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);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
    transition: all 0.3s ease;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.85em;
    color: #dc3545;
    font-weight: 500;
    padding-left: 0.5rem;
    position: relative;
    animation: fadeInUp 0.3s ease;
}

.invalid-feedback.show {
    display: block;
}

.invalid-feedback::before {
    content: '⚠️';
    margin-right: 5px;
    font-size: 0.9em;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Styling */
.is-valid {
    border-color: #28a745;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%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);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.15);
}

/* Calendar Active Styling */
.calendar-container.active {
    animation: calendarFadeIn 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(78, 115, 223, 0.3);
    transform: translateY(0);
    opacity: 1;
}

@keyframes calendarFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}