/* GENERIC.CSS - Renkler, Fontlar, Reset */
@import url('font.css');

:root {
    --brand-color: #9e0b0f;
    --brand-hover: #80090c;
    --brand-gradient-start: #9e0b0f;
    --brand-gradient-end: #6e0609;
    --body-bg: #fff;
    --text-color: #333;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --filter-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

body.dark-mode {
    --body-bg: #121212;
    --text-color: #e0e0e0;
    --card-bg: #1e1e1e;
    --border-color: #444;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--body-bg);
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    /* Login sayfasındaki flex yapısını buraya almıyoruz, o auth.css'de kalacak */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* =================================================================
   GLOBAL FORM ELEMENTLERİ (Tüm sayfalarda ortak input tasarımı)
   ================================================================= */

/* Genel Input ve Select Kutusu Yapısı */
.form-control, .form-select, textarea {
    background-color: #fff;
    padding: 12px 15px; /* Biraz daha ferah */

/* Hide default browser password reveal icon (Edge/IE) */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Hafif yuvarlak köşeler */
    transition: all 0.3s ease-in-out;
}

    /* Inputa tıklayınca (Focus) oluşan efekt */
    .form-control:focus, .form-select:focus, textarea:focus {
        border-color: var(--brand-color); /* Sadece çerçevenin rengi kırmızı olsun */
        box-shadow: none; /* <--- PARLAMAYI (GÖLGEYİ) KALDIRDIK */
        outline: none;
    }

/* Şifre inputlarının sağ köşelerindeki düzleşmeyi düzeltir */
#regPassword,
#regConfirmPassword,
#resetPassword,
#resetConfirmPassword,
#OldPassword,
#NewPassword,
#ConfirmPassword,
#loginPassword {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    border-right: 1px solid var(--border-color) !important;
}

/* Input focus olduğunda sağ kenarlığın rengini koruması için */
    #regPassword:focus,
    #regConfirmPassword:focus,
    #resetPassword:focus,
    #resetConfirmPassword:focus,
    #OldPassword:focus,
    #NewPassword:focus,
    #ConfirmPassword:focus,
    #loginPassword:focus {
        border-right-color: var(--brand-color) !important;
    }

/* Etiketler (Label) */
.form-label {
    display: block;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 6px;
}

/* --- Input Group (İkonlu Inputlar) İçin Özelleştirme --- */
.input-group {
    margin-bottom: 1rem;
}

.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-right: none; /* Sağ çizgiyi kaldır ki inputla birleşsin */
    color: #6c757d;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

/* İkonlu kullanımda Input'un sol çizgisini ve köşesini düzelt */
.input-group > .form-control,
.input-group > .form-select {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none; /* Sol çizgiyi kaldır */
}

/* Inputa tıklayınca İkonun da rengi değişsin */
.input-group:focus-within .input-group-text {
    border-color: var(--brand-color);
    color: var(--brand-color);
    background-color: #fff;
}

/* 1. KART GÖVDE VE GÖLGE */
.form-card {
    border: none;
    border-radius: 15px;
    /* Derinlik hissi veren gölge */
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    background: #fff;
    /* Üst tarafa markanın imzasını atıyoruz */
    border-top: 5px solid var(--brand-color);
    position: relative;
    overflow: hidden; /* Köşelerden taşmayı önle */
}

/* 2. KART BAŞLIĞI (HEADER) */
.card-header-custom {
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 30px;
}

    .card-header-custom h5 {
        color: #333;
        font-weight: 700;
        letter-spacing: 0.5px;
        margin: 0;
        display: flex;
        align-items: center;
    }

    .card-header-custom i {
        color: var(--brand-color);
        background: rgba(158, 11, 15, 0.1); /* İkon arkasına hafif kırmızı daire */
        padding: 10px;
        border-radius: 50%;
        margin-right: 15px;
    }

/* 3. BÖLÜM BAŞLIKLARI (Section Titles) */
.form-section-title {
    /* Sona doğru kaybolan şık gradyan */
    background: linear-gradient(to right, rgba(158, 11, 15, 0.05), transparent);
    padding: 10px 15px;
    border-left: 4px solid var(--brand-color);
    margin-top: 30px;
    margin-bottom: 20px;
    border-radius: 0 10px 10px 0;
    display: flex;
    align-items: center;
}

    .form-section-title h6 {
        margin: 0;
        font-weight: 700;
        color: var(--brand-color);
        text-transform: uppercase;
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .form-section-title i {
        margin-right: 10px;
        font-size: 1.1rem;
        color: var(--brand-color);
        opacity: 0.8;
    }

/* =================================================================
   WIZARD (ADIMLI FORM) SİSTEMİ (Multi-Step Form)
   ================================================================= */
.wizard-container {
    max-width: 900px;
    margin: 40px auto 60px auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
}

/* İlerleme Çubuğu (Progress) Alanı */
.wizard-header {
    background-color: #f8fafc;
    padding: 30px 40px;
    border-bottom: 1px solid #e2e8f0;
}

.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 10px;
}


/* Çizgilerin İçinde Akacağı Yol (Konteyner) */
.step-lines-container {
    position: absolute;
    top: 20px; /* 40px'lik yuvarlağın tam ortası */
    left: 12.5%; /* İlk yuvarlağın tam merkezi */
    width: 75%; /* Son yuvarlağın merkezine kadar olan mesafe (87.5 - 12.5) */
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

/* Kırmızı İlerleme Çizgisi */
.progress-bar-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--brand-color);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 0%; /* Javascript burayı otomatik dolduracak */
}

/* Adım Yuvarlakları */
.step-item {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 25%;
}

.step-circle {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #64748b;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.step-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    transition: all 0.3s ease;
}

/* Aktif Adım */
.step-item.active .step-circle {
    border-color: var(--brand-color);
    background: var(--brand-color);
    color: #fff;
    box-shadow: 0 0 15px rgba(158, 11, 15, 0.3);
}

.step-item.active .step-title {
    color: var(--brand-color);
}

/* Tamamlanmış Adım */
.step-item.completed .step-circle {
    border-color: var(--brand-color);
    background: #fff;
    color: var(--brand-color);
}

/* FORM ALANLARI KAYDIRMA MANTIĞI */
.wizard-body {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.step-content {
    display: none;
    padding: 40px;
    animation: fadeSlideIn 0.5s ease;
}

    .step-content.active {
        display: block;
    }

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Wizard Butonları */
.wizard-footer {
    padding: 20px 40px 40px 40px;
    display: flex;
    justify-content: space-between;
    background-color: #fff;
    border-top: 1px solid #f1f5f9;
}

.btn-wizard {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.btn-prev {
    background-color: #f1f5f9;
    color: #64748b;
    border: none;
}

    .btn-prev:hover {
        background-color: #e2e8f0;
        color: #334155;
    }

.btn-next, .btn-submit {
    background-color: var(--brand-color);
    color: #fff;
    border: none;
    box-shadow: 0 5px 15px rgba(158, 11, 15, 0.2);
}

    .btn-next:hover, .btn-submit:hover {
        background-color: var(--brand-hover);
        transform: translateY(-2px);
    }

/* =================================================================
   WIZARD (5 ADIMLI FORMLAR İÇİN VARYASYON - Beyaz Yaka)
   ================================================================= */
.step-lines-container-5 {
    position: absolute;
    top: 20px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.step-item-5 {
    width: 20%;
}
/* =================================================================
   WIZARD (6 ADIMLI FORMLAR İÇİN VARYASYON - STAJYER)
   ================================================================= */
.step-lines-container-6 {
    position: absolute;
    top: 20px;
    left: 8.33%;
    width: 83.33%;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.step-item-6 {
    width: 16.66%;
}

@media (max-width: 768px) {

    step-lines-container-6 {
        top: 15px;
    }
    .step-lines-container-5 {
        top: 15px;
    }
    .step-lines-container {
        top: 15px;
    }
    
    .step-title-6 {
        font-size: 0.6rem !important;
    }
    .step-title-5 {
        font-size: 0.65rem !important;
    }
    .step-title {
        font-size: 0.65rem !important;
    }
}

/* =================================================================
   ACCORDION (AKILLI ÇEKMECELER) SİSTEMİ - EDIT SAYFALARI İÇİN
   ================================================================= */
.accordion-wrapper {
    max-width: 800px;
    margin: 40px auto 80px auto;
}

/* Çekmece Kutusu */
.acc-item {
    background: #ffffff;
    border-radius: 16px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
}

    /* Açık Olan Çekmece */
    .acc-item.active {
        box-shadow: 0 15px 35px rgba(158, 11, 15, 0.08);
        border-color: rgba(158, 11, 15, 0.3);
        transform: translateY(-2px);
    }

/* Çekmece Başlığı (Header) */
.acc-header {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    cursor: pointer;
    user-select: none;
}

.acc-title-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.acc-icon {
    width: 45px;
    height: 45px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.acc-title {
    margin: 0;
    font-weight: 700;
    font-size: 1.15rem;
    color: #334155;
    transition: color 0.3s ease;
}

.acc-status-icon {
    color: #cbd5e1;
    font-size: 1.2rem;
    transition: all 0.3s;
}

/* Açık Çekmecenin Renkleri */
.acc-item.active .acc-icon {
    background: var(--brand-color);
    color: #fff;
    box-shadow: 0 0 15px rgba(158, 11, 15, 0.3);
}

.acc-item.active .acc-title {
    color: var(--brand-color);
}

.acc-item.active .acc-status-icon {
    transform: rotate(180deg);
    color: var(--brand-color);
}

/* Çekmece İçi (Body) */
.acc-body {
    padding: 0 25px 25px 25px;
    display: none; /* JS ile açılacak */
}

/* Edit Sayfası Sabit Kaydet Butonu Container'ı */
.edit-submit-container {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    text-align: center;
    margin-top: 30px;
}

.btn-massive-edit {
    background: linear-gradient(135deg, var(--brand-color), var(--brand-gradient-end));
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.3s;
    width: 100%;
    max-width: 400px; /* Mobilde tam genişlik, masaüstünde ortada şık durur */
}

    .btn-massive-edit:hover {
        box-shadow: 0 10px 20px rgba(158, 11, 15, 0.3);
        transform: translateY(-2px);
        color: #fff;
    }

/* Mobil için Wizard Düzenlemeleri */
@media (max-width: 768px) {
    .wizard-header {
        padding: 20px;
    }

    .step-circle {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .step-title {
        font-size: 0.7rem;
    }

    .step-content {
        padding: 20px;
    }

    .wizard-footer {
        padding: 20px;
    }

    .btn-wizard {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* =================================================================
   MOBİL ÖZEL ESNEK YAPI (Sadece Mobilde Çalışır)
   ================================================================= */
@media (max-width: 768px) {
    /* Giriş ve Anasayfa dışındaki standart form/profil sayfalarında Footer havada kalmasın diye */
    body:not(.auth-page):not(.home-page) {
        display: flex !important;
        flex-direction: column !important;
    }

    .main-content-spacing {
        flex: 1 0 auto !important;
    }
}