/* Ana renkler */
:root {
    --primary-color: #FA4318;
    --secondary-color: #120600;
    --accent-color-1: #00A2E8;
    --accent-color-2: #020033;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Stilleri */
.navbar {
    padding: 1rem 0;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    padding: 0.5rem 1rem;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
}

/* Ana İçerik Stilleri */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
    font-weight: bold;
    color: white;
    background-color: var(--primary-color);
}

.card-body {
    padding: 1.25rem;
}

/* Form Elemanları */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(250, 67, 24, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #de3a15;
    border-color: #de3a15;
}

/* Footer Stilleri */
footer {
    background-color: var(--secondary-color);
    color: white;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 8px;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Hesaplama Formu Stilleri */
.calculation-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* Sabit Profil Diyagramı Stilleri */
.profile-diagram-container {
    position: relative;
    width: 100%;
    padding: 0;
}

#profileDiagramFixed {
    position: sticky;
    top: 20px;
    width: 100%;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: top 0.3s ease;
    height: 100%;
}

/* Large ekranlarda (lg) */
@media (min-width: 992px) {
    .profile-diagram-container {
        height: 100%;
        padding-right: 0;
    }

    #profileDiagramFixed {
        height: auto;
        position: sticky;
        top: 20px;
    }

    .row.no-gutters {
        margin-left: 0;
        margin-right: 0;
    }

    .no-gutters>[class*="col-"] {
        padding-left: 0;
        padding-right: 0;
    }

    .col-lg-9 {
        padding-left: 15px;
    }

    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Medium ekranlarda (md) */
@media (max-width: 991px) and (min-width: 768px) {
    #profileDiagramFixed {
        position: static;
        width: 100%;
        max-width: 100%;
        margin: 0 0 20px 0;
    }

    .profile-diagram-container {
        height: auto;
        padding: 0;
    }

    .row.no-gutters>[class*="col-"] {
        padding: 0;
    }
}

/* Küçük ekranlarda (sm ve xs) */
@media (max-width: 767px) {
    #profileDiagramFixed {
        position: static;
        width: 100%;
        max-width: 100%;
        margin: 0 0 20px 0;
    }

    .profile-diagram-container {
        height: auto;
        padding: 0;
    }

    #profileSvg {
        width: 100%;
        height: auto;
        max-width: 280px;
        margin: 0 auto;
        display: block;
    }

    .row.no-gutters>[class*="col-"] {
        padding: 0;
    }
}

.calculation-form label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.calculation-form .form-control {
    padding: 0.75rem;
}

.calculation-result {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Responsive için ek stiller */
@media (max-width: 768px) {
    .calculation-form {
        padding: 1.5rem;
    }
}

/* Animasyon Efektleri */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Select2 özelleştirmeleri */
.select2-container {
    width: 100% !important;
}

.select2-container--bootstrap-5 .select2-selection {
    border-color: #ced4da;
    height: calc(3.5rem + 2px);
    padding: 0.75rem 0.5rem;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    padding-left: 0;
    line-height: 1.5;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    height: calc(3.5rem + 2px);
}

.select2-container--bootstrap-5 .select2-dropdown {
    border-color: var(--primary-color);
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
    border-color: #ced4da;
    padding: 0.5rem;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary-color);
}

/* Input group içindeki Select2 düzeltmeleri */
.input-group .select2-container {
    flex: 0 1 auto;
    width: auto !important;
    max-width: 80px !important;
}

.input-group .select2-container .select2-selection {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 0;
    height: calc(3.5rem + 2px) !important;
    padding: 0.75rem 0.1rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-group .select2-container .select2-selection__rendered {
    text-align: center;
    padding-left: 2px !important;
    padding-right: 15px !important;
    width: 100%;
    line-height: 1 !important;
}

.input-group .select2-container .select2-selection__arrow {
    width: 15px !important;
    right: 2px !important;
}

/* Select2 dropdown pozisyon düzeltmesi */
.select2-dropdown {
    z-index: 1056 !important;
    /* Bootstrap modal z-index'inden daha yüksek olsun */
}

/* Mobil cihazlar için düzeltmeler */
@media (max-width: 768px) {
    .input-group .select2-container {
        min-width: 80px;
        max-width: 80px !important;
    }

    .modern-dropdown {
        min-width: 160px !important;
    }
}

/* Select2 dropdown birimler için özel stil */
.select2-dropdown-sm {
    min-width: 80px !important;
    max-width: 100px !important;
}

.select2-container-sm .select2-selection__rendered {
    font-size: 14px !important;
    padding: 0 5px !important;
    text-align: center !important;
}