/* ========== DEĞİŞKENLER ========== */
:root {
    --primary-color: #793657;
    --secondary-color: #800000;
    --hover-color: #5c2a42;
    --light-bg: #f5f5f5;
    --text-dark: #333;
}

/* ========== GENEL STİLLER ========== */
body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: var(--text-dark);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.6;
}

h1, h2 {
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
}

ul {
    list-style-type: none;
    padding: 0;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== KAPSAYICILAR ========== */
main > .container, .panel-container {
    max-width: 3000px; /* Genişlik artırıldı */
    margin: 30px auto;
    padding: 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.panel-container {
    max-width: 98%;
}

@media (max-width: 576px) {
    .panel-container {
        margin: 20px 10px;
        padding: 20px;
    }
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    min-height: 60px;
    flex-wrap: wrap;
}

.navbar-dark {
    background-color: var(--primary-color) !important;
}

@media(max-width: 767px) {
    .navbar-collapse {
        padding: 15px 0;
    }

    .nav-link {
        padding: 10px 15px !important;
    }
}

/* ========== FORM VE BUTONLAR ========== */
.login-container, .filter-section select, input, button {
    border-radius: 5px;
    transition: all 0.3s ease;
}

.login-container {
    background: white;
    padding: 30px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
}

input, .filter-section select {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ddd;
}

button {
    padding: 10px 15px;
    margin-top: 20px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: white;
    background: var(--primary-color);
}

button:hover {
    background: var(--hover-color);
}

.filter-section select:hover {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(121, 54, 87, 0.1);
}

/* ========== TABLOLAR ========== */
.user-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
}

.user-table th, .user-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

.user-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.user-table tr:hover {
    background-color: #fafafa;
}

/* ========== RESPONSIVE AYARLAR ========== */
@media (max-width: 1200px) {
    .filter-section {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

@media (max-width: 992px) {
    .filter-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .filter-section {
        grid-template-columns: 1fr;
    }
}

/* ========== DİĞER STİLLER ========== */
.extra-links a, li a {
    color: var(--primary-color);
    background: var(--primary-color);
    color: white !important;
    text-align: center;
    padding: 12px;
    display: block;
    border-radius: 5px;
}

.extra-links a:hover, li a:hover {
    background: var(--hover-color);
}

.footer {
    background-color: var(--light-bg);
    font-size: 0.9em;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    text-align: center;
}

/* ========== PROFİL STİLLERİ ========== */

/* Profil Sayfası Stilleri */


.profile-container {
    max-width: 800px;
    margin: 20px auto; /* Ortalamak için margin ayarlandı */
    padding: 20px;
    border: 1px solid #ccc;
    background-color: white;
    border-radius: 10px;
}

.profile-header {
    text-align: center;
    margin-bottom: 20px;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ccc;
}

.section-title {
    font-weight: bold;
    margin-top: 20px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

.profile-item {
    margin-bottom: 10px;
}

.profile-item label {
    font-weight: bold;
}

.puan-box {
    margin-top: 10px;
    padding: 10px;
    background-color: #eef;
    border-left: 5px solid #415c92;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.puan-box.green {
    background-color: #d4edda;
    border-left-color: #28a745;
}

.radio-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.button-container {
    display: flex !important; /* Flex düzeni zorunlu kılındı */
    justify-content: space-between !important; /* Butonlar arasında boşluk bırakıldı */
    align-items: center !important;
    margin-top: 20px;
    flex-wrap: nowrap !important; /* Butonlar yan yana sıralandı */
    gap: 10px; /* Butonlar arasında boşluk eklendi */
}

.profile-container .button-container { /* Özgüllük artırıldı */
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
    flex-direction: row !important; /* Açıkça yatay yön belirtildi */
}

.button-container a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
}

.back-button {
    background-color: #dc3545 !important;
}

.measurement-button {
    background-color: #3366cc !important;
}

.complete-button {
    background-color: #28a745 !important;
    transition: background-color 0.3s ease;
}

.complete-button:active {
    background-color: #218838;
}

.success-message {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    background-color: #d4edda;
    color: rgb(88, 190, 112);
    border-radius: 5px;
}

/* Profil Değerlendirme Bilgileri Stilleri */

.accordion-header {
    cursor: pointer;
    padding: 10px;
    background: #eef;
    border-radius: 4px;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: rgb(177, 177, 250);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-left: 15px;
}

.accordion-content.active {
    max-height: 150px;
    padding: 10px 15px;
}

.accordion-content a {
    display: block;
    padding: 5px 0;
    color: var(--primary-color, #007bff);
    text-decoration: none;
}

.accordion-content a:hover {
    text-decoration: underline;
}

.radio-container {
    margin-top: 10px;
}

.approval-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #28a745; /* yeşil tik efekti */
    cursor: pointer;
    margin-right: 5px;
}

.approval-checkbox:checked {
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3);
}


/* Kullanıcı Yönetimi Sayfası Stilleri */
body {
    max-width: 1600px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    padding: 20px;
}

h1 {
    text-align: center;
    color: var(--primary-color);
}

.filter-section {
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-section select {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.rows-per-page {
    margin-bottom: 20px;
    text-align: right;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.user-table th, .user-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.user-table th {
    background-color: var(--primary-color);
    color: white;
}

.user-table tr:hover {
    background-color: #f5f5f5;
}

.user-table tbody tr {
    cursor: pointer;
}

.back-link {
    margin-top: 20px;
    text-align: center;
}

.back-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.back-link a:hover {
    text-decoration: underline;
}

.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination button {
    background: #d9b3c4;
    border: 1px solid #a0527d;
    padding: 5px 10px;
    margin: 2px;
    cursor: pointer;
    color: var(--primary-color);
}

.pagination button.active {
    background: var(--primary-color);
    color: white;
    font-weight: bold;
}

/* index Sayfası Stilleri */

.login-container {
    text-align: center;
    margin: 0 auto;
    max-width: 400px;
}
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}
.toggle-label {
    margin-left: 10px;
}
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}
.slider:before {
    position: absolute;
    content: "";
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: .4s;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
input:checked + .slider {
    background-color: #2196F3;
}
input:checked + .slider:before {
    left: 35px;
}
.panels-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.panel {
    text-align: center;
    margin: 0 20px;
    display: none;
}
.panel h2 {
    color: #793657;
    text-decoration: none;
}
.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}
.button-container a, .button-container button {
    display: inline-block;
    width: 100%;
    max-width: 200px;
    padding: 10px;
    text-align: center;
    background-color: #793657;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}
.button-container a:hover, .button-container button:hover {
    opacity: 0.9;
}

.panels-container .button-container { /* Daha spesifik hedefleme */
    flex-direction: column; 
}

/* GELİN GİBİ PERSONEL TABLOSU */
.gelin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 32px #79365711;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.gelin-table thead th {
    background: #793657;
    color: #fff;
    padding: 12px 14px;
    font-size: 1.08em;
    letter-spacing: .02em;
    border-right: 1px solid #f5e2eb;
    border-bottom: 2px solid #aa4e7b;
    text-align: center;
}
.gelin-table thead th:last-child {
    border-right: none;
}
.gelin-table tbody td {
    background: #fff;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #f3dbe7;
    padding: 11px 12px;
    text-align: center;
    font-size: 1em;
}
.gelin-table tbody td:last-child {
    border-right: none;
}
.gelin-table tbody tr {
    transition: background .16s;
}
.gelin-table tbody tr:hover {
    background: #fae8f3;
}

.gelin-table tbody tr:nth-child(even) {
    background: #f8f3f8;
}
.gelin-table tbody tr:nth-child(even):hover {
    background: #efd4ea;
}

.gelin-page {
    color: #793657;
    background: #f4e6f1;
    padding: 7px 12px;
    margin: 0 2px;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    font-weight: 500;
    transition: background .13s, color .13s;
    display: inline-block;
}
.gelin-page:hover {
    background: #aa4e7b;
    color: #fff;
    box-shadow: 0 2px 8px #79365730;
}
.gelin-table tr:hover {
    background: #ece2f3 !important;
    transition: background 0.2s;
    cursor: pointer;
}
.gelin-table th {
    background: #793657;
    color: #fff;
    border-bottom: 2px solid #ddd;
}
.gelin-table td, .gelin-table th {
    border: 1px solid #f2e3f3;
}
.gelin-table tbody tr[style*="background-color"] {
    background: inherit !important;
}
.gelin-table tbody tr[style*="background-color"]:hover {
    background: inherit !important;
}
.gelin-table tbody tr[style*="background-color"] td,
.gelin-table tbody tr[style*="background-color"] {
    background-color: inherit !important;
}
.gelin-table tbody tr[style*="background-color"]:hover td,
.gelin-table tbody tr[style*="background-color"]:hover {
    background-color: inherit !important;
}

.login-page {
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom right, rgb(247, 219, 224), rgb(241, 226, 228));
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', sans-serif;
}

.login-page .login-box {
    background-color: #fff;
    padding: 40px 50px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    width: 450px;
    box-sizing: border-box;
    position: relative;
}
.login-page .logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.login-page .logo-img {
    max-height: 80px;
}
.login-page .login-title {
    text-align: center;
    color: #8A1538;
    font-weight: bold;
    font-size: 22px;
    margin-bottom: 8px;
}
.login-page .system-subtitle,
.login-page .system-title {
    text-align: center;
    font-size: 14px;
    color: #555;
    margin-bottom: 30px;
}
.login-page .form-label {
    font-weight: 500;
    margin-bottom: 5px;
    color: #444;
}
.login-page .input-group {
    margin-bottom: 20px;
}
.login-page .input-group label {
    display: block;
    margin-bottom: 6px;
}
.login-page .input-group input {
    width: 100%;
    height: 44px;
    padding: 10px;
    border: 1px solid #8A1538;
    border-radius: 6px;
    font-size: 15px;
}
.login-page .captcha-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.login-page .captcha-img {
    flex: 1;
    text-align: right;
}
.login-page .captcha-input {
    flex: 2;
}
.login-page .captcha-input input {
    width: 100%;
    height: 44px;
    padding: 10px;
    border: 1px solid #8A1538;
    border-radius: 6px;
    font-size: 15px;
}
.login-page .btn-login {
    background-color: #8A1538;
    color: white;
    border: none;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s ease;
}
.login-page .btn-login:hover {
    background-color: #6d0f2c;
}
.login-page .error-message {
    color: red;
    text-align: center;
    margin-bottom: 15px;
}
body.login-page {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: linear-gradient(to bottom right, rgb(247, 219, 224), rgb(241, 226, 228)) !important;
    height: 100vh !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-family: 'Segoe UI', Arial, sans-serif !important;
}

/* Login Captcha Row - Tam hizalama için */
.login-captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* Input genişliği */
.login-captcha-row .form-control {
    flex: 1 1 60%;
    min-width: 0;
    height: 44px;
    font-size: 15px;
    border: 1px solid #8A1538;
    border-radius: 6px;
    padding: 10px;
}

/* Captcha ve buton */
.login-captcha-image-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 44px;
}

/* Captcha resmi orijinal boyutta */
.login-captcha-image-wrapper img {
    height: 42px !important;
    border-radius: 6px;
    border: 1px solid #8A1538;
    display: block;
	margin-top: 10px;
	margin-left: -10px;
}

.captcha-refresh-btn,
.captcha-refresh-btn:hover,
.captcha-refresh-btn:active,
.captcha-refresh-btn:focus {
    color: #8A1538 !important;
    background: none !important;
    border: none !important;
    font-size: 18px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
	margin-top: 10px; !important;
    margin-left: -8px !important;
    padding: 0 2px !important;
    box-shadow: none !important;
    outline: none !important;
    transition: none !important;
}


.navbar {
position: fixed;
top: 0;
left: 0;
right: 0;
background: #793657;
padding: 15px 30px;
display: flex;
justify-content: space-between;
align-items: center;
z-index: 1000;
flex-wrap: wrap; /* Mobilde alt alta geçebilmesi için */
}

/* Her parça kutu gibi davransın */
#emailWrapper,
.navbar-title,
.profile-menu {
    flex: 1 1 auto;
    min-width: 0;
}

/* Orta başlık */
.navbar-title {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sol taraf: mail */
#emailWrapper {
    color: white;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#emailWrapper a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    user-select: text;
}

/* Hover kutusu */
.hover-box {
    display: none;
    position: absolute;
    top: 35px;
    left: 0;
    background: #f9f9f9;
    color: #793657;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.9rem;
    z-index: 1001;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
#emailWrapper:hover .hover-box {
    display: block;
}
.hover-box strong {
    display: block;
    margin-bottom: 5px;
}
.hover-box .birim-silik {
    opacity: 0.5;
}

/* Sağ taraf: profil */
.profile-menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    color: white;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.profile-icon {
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}
.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 4px 8px;
    z-index: 1001;
    min-width: 220px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.dropdown-content hr {
    margin: 4px 0 !important;
}
.profile-menu .dropdown-content {
    padding: 2px 6px !important;    /* Daha az boşluk */
    min-width: 110px;               /* Sadece ÇIKIŞ varsa küçük bırak */
}

.profile-menu .dropdown-content form {
    margin: 0 !important;
}

.profile-menu .dropdown-content .dropdown-item.logout-button {
    padding: 6px 12px !important;
    margin: 0 !important;
}

.profile-menu:hover .dropdown-content {
    display: block;
}
.dropdown-item {
    display: block;
    padding: 6px 12px;
    color: #793657;
    background-color: transparent;
    border: none;
    text-align: left;
    width: 100%;
    font: inherit;
}
.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #8c3b66;
    color: white;
}
.dropdown-item.disabled {
    cursor: default;
    color: #999 !important;
    pointer-events: none;
    background-color: transparent;
}
#roleIndicator {
    min-width: 180px;
    user-select: none;
}
.dropdown-item.logout-button {
    display: block;
    padding: 6px 12px !important;  /* Hepsine aynı padding */
    color: #793657;
    background-color: transparent;
    border: none;
    text-align: left;
    width: 100%;
    font: inherit;
}
.dropdown-item.logout-button:hover {
    background-color: #8c3b66;
    color: white;
}

/* Navbar yüksekliğine göre içerik boşluğu */
main > .container {
    margin-top: 80px;
}

/* Mobil görünüm */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .navbar-title {
        text-align: center;
    }

    #emailWrapper,
    .profile-menu {
        justify-content: center;
        text-align: center;
    }

    .dropdown-content {
        top: auto;
        bottom: -150px;
    }
}
.search-input,
.search-btn {
    height: 40px;
    box-sizing: border-box;
    /* font-size, border-radius gibi ayarları da ekleyebilirsin */
}
.search-btn {
    padding: 0 18px;
    background: #793657;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
	margin-top: 10px;
}
.search-btn:hover {
    background: #8c3b66;
}
.gelin-btn-ekle {
    background: #793657;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 7px;
    font-weight: bold;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 7px;             /* İkon-yazı arası */
    margin-left: 10px;
	margin-top: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    white-space: nowrap;  /* Yazı tek satırda */
    height: 40px;         /* Aynı yükseklik */
}
.gelin-btn-ekle:hover {
    background: #8c3b66;
    color: #fff !important;
}
.dropdown-item:hover {
	color: #fff !important;
	background: #793657 !important;
}

.forgot-password-link {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ffffff;
    border-radius: 6px;
    color: #8A1538;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}
.forgot-password-link:hover {
    background-color: #8A1538;
    color: #fff;
    text-decoration: none;
}
