/* Aggressive Form Spacing Override - Label ve Input arası minimum boşluk */

/* Tüm label'lar için kesin override */
label.form-label,
.form-label,
label {
    margin-bottom: 0 !important;
    padding-bottom: 1px !important;
    display: block !important;
}

/* Form grupları için sıkı spacing */
.mb-3:has(.form-label) {
    margin-bottom: 0.5rem !important;
}

/* Label + Input kombinasyonları */
.form-label + .input-group,
.form-label + .form-control,
.form-label + .form-select,
.form-label + input,
.form-label + select,
.form-label + textarea,
label + .input-group,
label + .form-control,
label + input {
    margin-top: 0 !important;
    position: relative;
    top: -2px; /* Label'a daha da yaklaştır */
}

/* Input group içindeki form-control */
.input-group .form-control,
.input-group input {
    margin: 0 !important;
}

/* Direkt label-input ilişkisi */
.form-group .form-label,
.form-group label {
    margin-bottom: 0 !important;
}

.form-group .form-control,
.form-group input {
    margin-top: 0 !important;
}

/* Col içindeki formlar */
.col .form-label,
.col-12 .form-label,
.col-sm-6 .form-label,
.col-md-6 .form-label {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Signup ve Login specific */
#signupForm .form-label,
#loginForm .form-label,
form .form-label {
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 1px !important;
}

#signupForm .input-group,
#loginForm .input-group,
form .input-group {
    margin-top: 0 !important;
}

/* Helper text altında biraz boşluk */
small.text-muted {
    display: block;
    margin-top: 2px !important;
    margin-bottom: 4px !important;
}

/* Section başlıkları */
h5.mb-3 {
    margin-bottom: 0.75rem !important;
    margin-top: 1rem !important;
}

h5.mb-3:first-child {
    margin-top: 0 !important;
}

/* Responsive - Mobile'da bile sıkı tut */
@media (max-width: 576px) {
    .form-label,
    label {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .form-label + .input-group,
    .form-label + .form-control,
    label + input {
        margin-top: 0 !important;
        top: -1px;
    }
    
    .mb-3 {
        margin-bottom: 0.5rem !important;
    }
}