/* core_app/static/css/custom-dashboard.css */
/* ==================================================================
 * DANIŞMAN PANELİ STILLERİ (consultant_dashboard.html)
 * ================================================================== */
 .consultant-dashboard .page-header h1 {
    font-weight: 600;
  }
  .consultant-dashboard .page-header p {
    font-size: 0.95rem;
  }
  
  /* Danışman Paneli Profil Kartı */
  .consultant-dashboard .profile-card .progress {
    height: 8px;
    border-radius: var(--radius-2026-btn, 14px);
    background-color: #e5e7eb;
  }
  .consultant-dashboard .profile-card .progress-bar {
    border-radius: var(--radius-2026-btn, 14px);
  }
  .consultant-dashboard .avatar-lg {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-2026-btn, 14px);
    object-fit: cover;
    box-shadow: var(--shadow-soft, 0 12px 36px rgba(15, 23, 42, 0.03));
  }
  .consultant-dashboard .stats-list .list-group-item {
    border: 0;
    padding-left: 0;
    padding-right: 0;
  }
  
  /* Pastel Renkli Kart Başlıkları
     (marka paletine yaslı yumuşak başlık barları) */
  .card-soft .soft-header-primary {
    background-color: rgba(106, 147, 176, 0.12); /* pastel mavi: #6a93b0 */
    color: var(--primary);
  }
  .card-soft .soft-header-primary h5,
  .card-soft .soft-header-primary h6,
  .card-soft .soft-header-primary i {
    color: var(--primary);
  }
  .card-soft .soft-header-secondary {
    background-color: rgba(104, 130, 91, 0.1); /* pastel yeşil: #68825b */
    color: #2f3d2b;
  }
  .card-soft .soft-header-secondary h5,
  .card-soft .soft-header-secondary h6,
  .card-soft .soft-header-secondary i {
    color: #2f3d2b;
  }
  
  /* Pastel Hızlı Erişim Butonları */
  .consultant-dashboard .quick-actions .btn,
  .btn-quick-action {
    border-radius: var(--radius-2026-btn, 14px);
    font-size: 0.95rem;
    padding: 0.55rem 1.25rem;
    border: 1px solid #e2e8f0;
    background-color: #f1f5f9;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    will-change: transform;
  }
  .consultant-dashboard .quick-actions .btn:hover,
  .btn-quick-action:hover {
    background-color: #e2e8f0;
    color: #23313b;
    border-color: #cbd5e1;
    text-decoration: none;
    transform: translateY(-1px);
  }
  .btn-brand-soft {
    background-color: var(--primary);
    color: #ffffff;
    border-radius: var(--radius-2026-btn, 14px);
    border: none;
  }
  .btn-brand-soft:hover {
    background-color: var(--sky-blue);
    color: #ffffff;
  }
  .btn-brand-outline {
    border-radius: var(--radius-2026-btn, 14px);
    border: 1px solid var(--primary);
    color: var(--primary);
    background-color: transparent;
  }
  .btn-brand-outline:hover {
    background-color: var(--primary);
    color: #ffffff;
  }
  
  /* 360 Bilgi Tablo Stilleri */
  .knowledge-table .badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-2026-btn, 14px);
  }
  
  /* ==================================================================
   * MÜTEAHHİT KONTROL PANELİ STILLERİ (contractor dashboard)
   * ================================================================== */
  .sticky-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
  }
  
  /* Logo (Kare, Ölçekli, Boşluklu ve Beyaz Arka Plan) */
  .contractor-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background-color: white;
    border-radius: var(--radius-2026, 20px);
    padding: 5px;
  }
  
  /* Müteahhit Paneli Hızlı Eylem Buton Stili */
  .btn-quick-action {
    border-radius: var(--radius-2026-btn, 14px);
    font-size: 0.9rem;
    padding: 0.45rem 1.1rem;
    border: 1px solid #e2e8f0;
    background-color: #f1f5f9;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.18s ease-in-out;
    text-decoration: none;
    font-weight: 500;
  }
  .btn-quick-action:hover {
    background-color: #e2e8f0;
    color: #23313b;
    border-color: #cbd5e1;
  }
  
  /* Favori butonu için stil */
  .btn-favorite {
    color: #ffc107;
  }
  .btn-favorite.active i::before {
    content: "\f586";
    font-weight: bold;
  }
  .btn-favorite i::before {
    content: "\f588";
  }
  
  /* ==================================================================
   * PROJE PAZARYERİ STILLERİ (tender_list.html)
   * ================================================================== */
  .tender-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  }
  .tender-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft, 0 12px 36px rgba(15, 23, 42, 0.03)) !important;
  }
  .filter-card.sticky-top {
    top: 20px;
  }
  .tender-card .card-title a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
  }
  .tender-card .card-title a:hover {
    color: var(--accent) !important;
  }
  
  /* Müteahhit/Danışman Kartı Stilleri */
  .profile-list-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  }
  .profile-list-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft, 0 12px 36px rgba(15, 23, 42, 0.03)) !important;
  }
  .profile-list-card .profile-avatar {
    width: 80px;
    height: 80px;
    object-fit: contain;
  }
  .profile-list-card .card-title {
    font-size: 1.1rem;
  }
  .profile-list-card .card-title a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
  }
  .profile-list-card .card-title a:hover {
    color: var(--accent);
  }
  
  /* Ana Güven Rozeti Stili */
  .badge-guven {
    display: inline-flex;
    align-items: center;
    padding: 0.35em 0.65em;
    font-size: 0.78em;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
    text-decoration: none;
  }
  .badge-guven i {
    margin-right: 0.35rem;
    font-size: 0.9em;
  }
  
  /* 🥉 BRONZ */
  .badge-bronz {
    color: #854d0e;
    background-color: #fefce8;
    border: 1px solid #fde047;
  }
  /* 🥈 GÜMÜŞ */
  .badge-gumus {
    color: #374151;
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
  }
  /* 🥇 ALTIN */
  .badge-altin {
    color: #b45309;
    background-color: #fffbeb;
    border: 1px solid #f59e0b;
  }
  /* 💎 PLATİN */
  .badge-platin {
    color: #4338ca;
    background-color: #eef2ff;
    border: 1px solid #a5b4fc;
  }
  
  /* Bilgilendirme "i" ikonu */
  .badge-info-icon {
    display: inline-block;
    width: 1.1rem;
    height: 1.1rem;
    font-size: 0.75rem;
    line-height: 1.1rem;
    text-align: center;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #757575;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  .badge-info-icon:hover {
    background-color: #c0c0c0;
    color: #000;
  }
  
  /* ==================================================================
   * Abonelik Plan Kartları (manage_subscription.html)
   * ================================================================== */
  .pricing-card {
    transition: all 0.3s ease;
    border-width: 2px;
  }
  .pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  }
  .pricing-card.current-plan {
    border-color: var(--primary, #142b48);
    background-color: rgba(40, 116, 178, 0.08); /* soft sky blue */
  }
  .pricing-card.current-plan .card-header {
    background-color: var(--primary, #142b48);
    color: white;
  }
  
  /* Abonelik kartı içi özellik listesi */
  .feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
  }
  .feature-list i {
    margin-top: 0.25rem;
  }
  .feature-list span {
    margin-left: 0.5rem;
  }
  
  /* ==================================================================
   * TEDARİKÇİ PROFİL FORMU (supplier_profile_form.html)
   * ================================================================== */
  .ts-control {
    min-height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
  }
  .supplier-welcome-icon {
    font-size: 2.5rem;
  }
  .supplier-logo-thumbnail {
    max-height: 120px;
  }
  #bio-counter {
    font-size: 0.8rem;
  }
  
  /* ==================================================================
   * UZMAN REHBERİ PROFİL FORMU (expert_profile_form.html)
   * ================================================================== */
  .district-checkbox-group {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    padding: 10px;
    border-radius: 0.375rem;
    background-color: #fff;
  }
  .form-check-inline {
    margin-right: 0.5rem;
  }
  
  /* Seçilen illerin (İlçe yönetimi) blokları için */
  .province-district-block {
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    background-color: #f8f9fa;
  }
  
  /* ==================================================================
   * CONSULTANT PROFILE & DETAIL PAGES
   * ================================================================== */
  .consultant-manage-page {
    width: 100%;
  }
  .consultant-manage-page .page-header h1 {
    font-weight: 600;
  }
  .consultant-manage-page .page-header p {
    font-size: 0.95rem;
  }
  .consultant-manage-page .card {
    border-radius: var(--radius-2026, 20px);
  }
  
  /* Tom-select form-control gibi görünmesi için */
  .ts-control {
    min-height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    border-radius: 0.375rem;
  }
  /* Hatalı Tom-Select */
  .was-validated .ts-control.invalid,
  .ts-control.is-invalid {
    border-color: #dc3545;
  }
  
  /* consultant_detail.html */
  .consultant-detail-page {
    width: 100%;
  }
  .consultant-detail-page .card {
    border-radius: var(--radius-2026, 20px);
  }
  .consultant-detail-page .profile-header-avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
  }
  .consultant-detail-page .progress {
    height: 20px;
    border-radius: var(--radius-2026, 20px);
  }
  .consultant-detail-page .progress-bar {
    border-radius: var(--radius-2026, 20px);
    transition: width 0.5s ease-in-out;
  }
  .consultant-detail-page .sticky-sidebar {
    top: 20px;
  }
  .consultant-detail-page .page-header h1 {
    font-weight: 600;
  }
  .consultant-detail-page .page-header p {
    font-size: 0.95rem;
  }

  /* ==================================================================
   * FIELD STAFF DASHBOARD (field_staff_dashboard.html)
   * ================================================================== */
  .fsd-z-2 {
    z-index: 2;
  }

  .fsd-icon-lg {
    width: 48px;
    height: 48px;
  }

  .fsd-icon-md {
    width: 40px;
    height: 40px;
  }

  .fsd-welcome-copy {
    max-width: 600px;
  }

  .fsd-welcome-shape {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1));
    -webkit-clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  }

  .fsd-progress-slim {
    height: 8px;
  }

  .fsd-timestamp {
    font-size: 0.7rem;
  }

  .dashboard-mission-icon {
    width: 40px;
    height: 40px;
    line-height: 40px;
  }

  .dashboard-mission-progress-track {
    height: 6px;
  }
  

/* ==================================================================
 * MOBİL UYUMLULUK — TÜM PANEL SAYFALARI
 * ================================================================== */
@media (max-width: 767.98px) {
    .consultant-dashboard .avatar-lg,
    .consultant-detail-page .profile-header-avatar,
    .contractor-logo {
        width: 80px;
        height: 80px;
    }

    .consultant-dashboard .page-header h1,
    .consultant-manage-page .page-header h1,
    .consultant-detail-page .page-header h1 {
        font-size: 1.35rem;
    }

    .sticky-sidebar {
        position: static !important;
    }

    .profile-list-card .profile-avatar {
        width: 56px;
        height: 56px;
    }

    .btn-quick-action {
        font-size: 0.82rem;
        padding: 0.4rem 0.85rem;
        min-height: 44px;
    }

    .fsd-welcome-copy {
        max-width: 100%;
    }

    .fsd-icon-lg {
        width: 40px;
        height: 40px;
    }

    .roadmap-header-form {
        min-width: auto;
        width: 100%;
    }

    .pricing-card:hover {
        transform: none;
    }

    .floor-label {
        flex: 0 0 80px;
        font-size: 0.78rem;
        padding: 0.5rem;
    }

    .units-container {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }

    #legalModal .modal-dialog {
        max-width: 100%;
        margin: 0.5rem;
    }

    #legalModal .legal-content-wrapper {
        max-height: 55vh;
        max-height: 55dvh;
        padding: 1rem;
        -webkit-overflow-scrolling: touch;
    }

    .district-checkbox-group {
        max-height: 180px;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 575.98px) {
    .consultant-dashboard .avatar-lg,
    .consultant-detail-page .profile-header-avatar,
    .contractor-logo {
        width: 64px;
        height: 64px;
    }

    .profile-list-card .profile-avatar {
        width: 48px;
        height: 48px;
    }

    .floor-label {
        flex: 0 0 60px;
        font-size: 0.72rem;
    }

    .units-container {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }

    .unit-cell {
        padding: 0.5rem;
        font-size: 0.78rem;
    }
}
