body {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    font-family: Verdana, Geneva, sans-serif;
}

.main-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    min-height: 100vh;
    padding: 1.5rem 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.05);
    width: 100%;
}

h1 {
    font-weight: bold;
    text-align: center;
    margin-bottom: 0.75rem;
    color: #1e293b;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 2rem;
}

.nav-tabs {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0.5rem;
}

.nav-tabs .nav-link {
    color: #003A70;
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    font-weight: 600;
    font-size: 0.85rem; 
    padding: 0.4rem 0.7rem; 
    border-radius: 6px 6px 0 0; 
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    background: rgba(8, 145, 178, 0.05);
    transform: translateY(-1px); 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, #003A70 0%, #0056a3 100%);
    color: white;
    border: none;
    border-radius: 8px 8px 0 0; 
    transform: translateY(-1px); 
    box-shadow: 0 4px 8px rgba(8, 145, 178, 0.3);
}

/* Enhanced form controls - FURTHER REDUCED SIZE */
.form-control, .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-control:focus, .form-select:focus {
    border-color: #0056a3;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #94a3b8;
}

/* Enhanced search button - FURTHER REDUCED SIZE */
.search-btn {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(8, 145, 178, 0.3);
}

.search-btn:hover {
    background: linear-gradient(135deg, #0e7490 0%, #155e75 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(8, 145, 178, 0.4);
}

.search-btn:active {
    transform: translateY(-1px);
}

/* Optional labels styling - REDUCED SIZE */
.optional-text {
    color: #059669;
    font-size: 0.75rem; 
    font-weight: 600;
    background: rgba(5, 150, 105, 0.1);
    padding: 0.2rem 0.6rem; 
    border-radius: 16px;
    position: absolute;
    top: -10px;
    right: 8px;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.form-label {
    color: #475569;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Tab content animation */
.tab-pane {
    animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px); /* Reduced from 30px */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects for form groups */
.position-relative:hover .optional-text {
    background: rgba(5, 150, 105, 0.2);
    transform: scale(1.03);
}

/* Focus within styling */
.position-relative:focus-within .optional-text {
    background: rgba(5, 150, 105, 0.3);
    color: #047857;
}

/* Grid improvements - REDUCED SPACING */
.row {
    --bs-gutter-x: 1rem;
}

.col-md-4, .col-md-6, .col-md-8 {
    margin-bottom: 0.75rem;
}

/* Additional spacing reductions */
.row.g-3 {
    --bs-gutter-y: 0.75rem;
}

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

