/* Custom Styles for Support System */

/* --- RENK TANIMLAMALARI --- */
:root {
    --ana-renk: #008491;
    /* Senin Turkuaz Rengin */
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* --- NAVBAR ÖZELLEŞTİRMESİ --- */
/* HTML'de inline style yazmak yerine bu sınıfı kullanabilirsin: class="navbar ... bg-custom-primary" */
.bg-custom-primary {
    background-color: var(--ana-renk) !important;
    color: white;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.3rem;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: none;
}

.card-header {
    border-bottom: 2px solid #dee2e6;
}

.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

.badge {
    font-size: 0.85rem;
    padding: 0.35em 0.65em;
}

.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Login/Register Pages */
.card.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Dashboard Cards */
.display-4 {
    font-weight: 300;
}

/* Ticket Detail */
.border-bottom:last-child {
    border-bottom: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .display-4 {
        font-size: 2rem;
    }
}

#wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    min-height: calc(100vh - 56px);
    /* Navbar yüksekliği kadar çıkar */
}

#sidebar-wrapper {
    min-height: 100vh;
    margin-left: -250px;
    transition: margin .25s ease-out;
    border-right: 1px solid #dee2e6;
    background-color: #f8f9fa;
    width: 250px;
    overflow: visible !important;
    position: relative !important;
    z-index: 100;
}

#sidebar-wrapper .sidebar-heading {
    padding: 0.875rem 1.25rem;
    font-size: 1.2rem;
}

#sidebar-wrapper .list-group {
    width: 250px;
}

#page-content-wrapper {
    min-width: 100vw;
    flex: 1;
}

body.sb-sidenav-toggled #wrapper #sidebar-wrapper {
    margin-left: 0;
}

@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
    }

    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }

    body.sb-sidenav-toggled #wrapper #sidebar-wrapper {
        margin-left: -250px;
    }
}

/* --- Ayarlar Kartları --- */
.settings-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e9ecef;
    height: 100%;
}

.settings-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--ana-renk);
    /* Hoverda turkuaz olsun */
}

.settings-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #495057;
}

.settings-card:hover .settings-icon {
    color: var(--ana-renk);
    /* İkon da turkuaz olsun */
}



/* --- Jira Tarzı (Yarım Daire) Toggle Butonu --- */
#sidebar-toggle-btn {
    position: absolute !important;
    top: 50px;
    right: -24px !important;
    width: 24px;
    height: 48px;

    /* NORMAL DURUM (İstediğin Gibi) */
    background-color: #fff;
    /* Arka plan Beyaz */
    border: 1px solid var(--ana-renk);
    /* Çerçeve Turkuaz */
    border-left: 0;
    border-radius: 0 50% 50% 0;

    /* Hizalama ve Gölge */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 4px 0 5px rgba(0, 0, 0, 0.05);
    z-index: 1000;

    /* Animasyon */
    transition: all 0.3s ease;
    color: var(--ana-renk);
    /* İkon Rengi Turkuaz */
}

/* HOVER (ÜZERİNE GELİNCE) DURUMU */
#sidebar-toggle-btn:hover {
    background-color: var(--ana-renk);
    /* Arka plan Turkuaz olsun */
    color: white;
    /* İkon Beyaz olsun */
    width: 32px;
    right: -32px !important;
}

/* --- SIDEBAR MENÜ (SABİT BOYUTLU & YUVARLAK) --- */

/* 1. TÜM MENÜ ÖĞELERİ İÇİN ORTAK AYARLAR */
/* Aktif olsun olmasın hepsi aynı boyutta ve şekilde olacak */
#sidebar-wrapper .list-group-item {
    border: none !important;
    border-radius: 10px !important;
    /* Hepsi yuvarlak köşeli */
    margin: 5px 10px !important;
    /* Hepsi kenarlardan 10px içeride */
    width: auto;
    /* Genişlik otomatik ayarlansın */
    transition: all 0.2s ease-in-out;
    /* Renk değişimi yumuşak olsun */
}

/* 2. AKTİF (SEÇİLİ) OLAN MENÜ */
/* Sadece rengi değiştiriyoruz, boyutu zaten yukarıda ayarlandı */
#sidebar-wrapper .list-group-item.active {
    background-color: var(--ana-renk) !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    /* Aktif olana hafif gölge */
}

/* 3. ÜZERİNE GELİNCE (HOVER) */
#sidebar-wrapper .list-group-item:not(.active):hover {
    background-color: rgba(0, 132, 145, 0.1) !important;
    /* Açık turkuaz zemin */
    color: var(--ana-renk) !important;
    transform: translateX(3px);
    /* Üzerine gelince çok hafif sağa kaysın (Hoş bir efekt) */
}

/* --- Hover Elevate Effect --- */
.hover-elevate {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}
.hover-elevate:hover {
    transform: translateY(-3px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}
/* --- MANDATORY FIELD STYLES --- */
.asteriskField {
    color: #dc3545 !important;
    font-weight: bold !important;
    margin-left: 4px;
    font-size: 1.1rem;
}

.required-field-highlight {
    border-left: 4px solid #dc3545;
    padding-left: 12px;
    background-color: #fff9f9;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin-bottom: 1rem;
    padding-top: 5px;
    padding-bottom: 5px;
}

.required-field-highlight:hover {
    background-color: #fff0f0;
    border-left-color: #bd2130;
}

.required-field-highlight .form-label {
    font-weight: 600;
    color: #b02a37;
}