/* ==========================================================================
   DÜZELTİLMİŞ VE İYİLEŞTİRİLMİŞ STYLE.CSS
   ========================================================================== */

/* --- 1. Google Font ve Genel Değişkenler --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4a90e2;
    --primary-hover-color: #357abd;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --secondary-color: #95a5a6;
    --secondary2-color: #4a90e2;
    --text-color: #34495e;
    --text-color-light: #7f8c8d;
    --border-color: #e0e0e0;
    --background-light: #f8f9fa;
    --font-family: 'Poppins', sans-serif;
    --border-radius: 6px;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lift: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* --- 2. Temel Sayfa Yapısı --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-light);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- 3. Header Stilleri --- */
.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
margin-top: 20px;
    padding: 0.8rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.header-content {
    max-width: 1140px;

    margin: 0 auto;
    padding: 0 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
 border-radius: 50%;
}

.logo:hover {
    text-decoration: none;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color-light);
    text-decoration: none;
}

.nav-link:hover {
    text-decoration: none;
    color: var(--primary-color);
}

/* --- 4. Genel Kapsayıcılar --- */
.container {
    max-width: 1140px;
    margin: 2rem auto;
    padding: 0 15px;
}

.card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 1.5rem;
}

.card-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.card-header h1,
.card-header h2,
.card-header h3 {
    margin-bottom: 0;
}

/* --- 5. Form Elemanları --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-family: var(--font-family);
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.2);
}

input[type="checkbox"] {
    margin: 0 10px 0 0;
    vertical-align: middle;
}

/* --- 6. Buton Stilleri --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

a.btn:hover {
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
}

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

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

.btn-success {
    background-color: var(--success-color);
    color: #ffffff;
    border-color: var(--success-color);
}

.btn-danger {
    background-color: var(--danger-color);
    color: #ffffff;
    border-color: var(--danger-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #ffffff;
    border-color: var(--secondary-color);
}

.btn-secondary2 {
    background-color: var(--secondary2-color);
    color: #ffffff;
    border-color: var(--secondary2-color);
}

.btn-sm {
    padding: 3px 7px;
    font-size: 0.85rem;
}

.btn-xs {
    padding: 2px 5px;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
    display: block;
}

/* --- 7. Tablo Stilleri --- */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.table th,
.table td {
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    text-align: left;
    vertical-align: middle;
}

.table thead th {
    background-color: #007bff;
    color: #ffffff;
    font-weight: 600;
}

.table tbody tr:nth-of-type(even) {
    background-color: #f8f9fa;
}

.table tbody tr:hover {
    background-color: #e9ecef;
}

/* --- 8. Kart Stilleri (Reviews, Services, Business Hours) --- */
.appointment-card {
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.3s, transform 0.3s;
}

.appointment-card:hover {
    box-shadow: var(--shadow-lift);
    transform: translateY(-2px);
}

.appointment-card .card-body {
    padding: 15px;
}

.appointment-card h5,
.appointment-card p,
.appointment-card .text-center {
    margin-bottom: 8px;
}

.appointment-time {
    color: var(--primary-color);
    font-weight: bold;
}

.appointment-date {
    color: var(--text-color-light);
    font-size: 0.9em;
}

/* --- 9. Review-Specific Styles --- */
.review-rating {
    display: inline-flex;
    font-size: 1.2em;
}

.star {
    color: #ccc;
    margin-right: 2px;
}

.star.filled {
    color: #ffc107;
}

.review-reply {
    margin-top: 10px;
    padding: 15px;
    background-color: #eef7ff;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

.review-reply strong {
    display: block;
    margin-bottom: 5px;
    color: #0056b3;
}

.reply-form-container {
    margin-top: 10px;
}

.reply-form-container textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    resize: vertical;
}

.text-right {
    text-align: right;
}

/* --- 10. Pagination Styles --- */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 20px;
}

.page-item {
    list-style: none;
}

.page-link {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.3s, color 0.3s;
}

.page-link:hover {
    background-color: var(--background-light);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.page-item.disabled .page-link {
    color: var(--text-color-light);
    cursor: not-allowed;
    background-color: var(--background-light);
}

/* --- 11. Other Components --- */
.panel-nav {
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.dashboard-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 1.5rem auto;
    border: 5px solid #ffffff;
    box-shadow: var(--shadow-lift);
}

.search-results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.search-result-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.search-result-card:hover {
    box-shadow: var(--shadow-lift);
}

.search-result-logo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
}

.search-result-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.search-result-info h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.search-result-info h3 a {
    text-decoration: none;
    color: var(--text-color);
}

.result-rating-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.review-count {
    font-size: 0.85rem;
    color: var(--text-color-light);
}

.info-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
    color: #555;
    font-size: 0.9rem;
}

.info-icon {
    font-style: normal;
}

.search-result-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.customer-note {
    background-color: #fef9e7;
    padding: 10px;
    border-left: 3px solid #f1c40f;
}

.radio-label.booked {
    cursor: not-allowed;
    opacity: 0.6;
}

.radio-label.booked span {
    text-decoration: line-through;
    color: #999;
}

.radio-label.booked .radio-custom {
    border-color: #ccc;
}

a {
    color: #0057b3;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #003087;
    text-decoration: underline;
}

a:focus,
a:active {
    color: #00255d;
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* --- 12. Business Profile Styles --- */
.business-profile-header {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.business-logo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 50%;
    border: 1px solid #eee;
    background-color: #ffffff;
}

.business-details {
    flex-grow: 1;
}

.business-location {
    color: var(--text-color-light);
    margin: 5px 0 0 0;
}

.rating-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.rating-summary .review-count-link {
    font-size: 0.9rem;
    text-decoration: none;
}

.rating-summary .review-count-link:hover {
    text-decoration: underline;
}

.business-about {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.business-about p {
    line-height: 1.6;
    color: #444;
}

/* --- 13. Dashboard Buttons --- */
.dashboard-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.dashboard-buttons a {
    flex: 1 1 100%;
    text-align: center;
    white-space: nowrap;
}

/* --- 14. Responsive Layout --- */
@media (min-width: 768px) {
    .appointments-container {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        max-width: 1140px;
        margin: 0 auto;
    }
    .appointment-card {
        flex: 1 1 calc(33.333% - 20px);
        max-width: calc(33.333% - 20px);
    }
    .search-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-buttons {
        justify-content: flex-start;
        gap: 15px;
    }
    .dashboard-buttons a {
        flex: 0 1 auto;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .appointments-container {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        max-width: 1140px;
        margin: 0 auto;
    }
    .appointment-card {
        flex: 1 1 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

@media (max-width: 767px) {
    .appointment-card {
        width: 100%;
    }
    .pagination {
        gap: 3px;
    }
    .page-link {
        padding: 6px 10px;
        font-size: 0.85em;
    }
    .search-result-card {
        flex-direction: column;
        align-items: center;
    }
    .search-result-content {
        align-items: center;
        text-align: center;
    }
    .result-rating-container {
        justify-content: center;
    }
    .business-profile-header {
        flex-direction: column;
        text-align: center;
    }
    .business-logo {
        margin-bottom: 20px;
    }
    .business-logo img {
        width: 100px;
        height: 100px;
 border-radius: 50%;
    }
    .rating-summary {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .review-date {
        margin-left: 0;
        margin-top: 5px;
    }
    .appointment-card {
        padding: 15px;
    }
}

/* --- 15. Süper Admin Navigasyon Menüsü --- */
.admin-nav {
    display: flex;
    gap: 3px;
    padding: 0.5rem;
    background-color: var(--background-light);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto; /* Yatay kaydırmayı etkinleştirir */
    white-space: nowrap; /* Linklerin alt satıra düşmesini engeller */
}

/* Kaydırma çubuğunu daha estetik hale getirelim (opsiyonel) */
.admin-nav::-webkit-scrollbar {
    height: 3px;
}
.admin-nav::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 3px;
}
.admin-nav::-webkit-scrollbar-track {
    background-color: #e0e0e0;
}

/* --- 16. Mobil Uyumlu Tablo Stilleri --- */
.table-responsive {
    width: 100%;
    overflow-x: auto; /* En önemli kısım: yatay kaydırmayı etkinleştirir */
    -webkit-overflow-scrolling: touch; /* iOS cihazlarda daha akıcı bir kaydırma deneyimi sağlar */
}

/* Tablonun kapsayıcısından taşmamasını garantilemek için */
.table-responsive table {
    min-width: 700px; /* Tablonun ne kadar daralabileceğini belirler, bu değerden sonra kaydırma başlar */
}