/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #111111;
    --bg-secondary: #1a1a1a;
    --bg-card: #252525;
    --bg-light: #f5f5f5;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-dark: #1a1a1a;
    --accent-gold: #e8d4a0;
    --accent-gold-light: #f5e6c8;
    --accent-orange: #ff6b35;
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    --border: #2a2a2a;
    --border-light: #e0e0e0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

body.app-loading {
    overflow: hidden;
}

body.app-loading > :not(#loading-screen) {
    visibility: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20000;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid var(--bg-card);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.main {
    padding-top: 80px;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 15px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding-right: 15px;
}

.logo img {
    max-height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    z-index: 9999;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.mobile-menu.active {
    display: flex;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--accent-gold-light);
    color: var(--text-dark);
    border: none;
    border-radius: 40px;
}

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

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
}

.btn-outline {
    background: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
    border-radius: 40px;
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
}

.btn-icon {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-link {
    background: none;
    color: var(--accent-orange);
    padding: 0.5rem;
}

.btn-whatsapp {
    background: #25d366;
    color: #ffffff;
    border: 1px solid #25d366;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-whatsapp:hover:not(:disabled) {
    background: #1ebe5d;
    border-color: #1ebe5d;
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-whatsapp:disabled {
    background: #128c7e;
    border-color: #128c7e;
    color: #ffffff;
    opacity: 0.85;
    cursor: not-allowed;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-light {
    background: var(--bg-light);
    color: var(--text-dark);
}

.section-dark {
    background: var(--bg-secondary);
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 0.25rem;
    color: var(--accent-gold);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.section-light .section-subtitle {
    color: #666;
}

/* Hero Section */
.section-hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    background: 
        linear-gradient(rgba(10, 10, 10, 0.85), rgba(10, 10, 10, 0.85)), 
        url('https://coresg-normal.trae.ai/api/v1/text_to_image?prompt=premium%20barbershop%20interior%20dark%20luxury%20gold%20accents&image_size=square_hd');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 800px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: -1px;
    color: #ffffff;
}

.hero-title-gold {
    color: var(--accent-gold);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Auth Container */
.auth-container {
    max-width: 450px;
    margin: 0 auto;
}

.auth-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.auth-tab.active {
    color: var(--accent-gold);
    border-bottom: 2px solid var(--accent-gold);
    margin-bottom: -2px;
}

.auth-form {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.section-light .form-group input,
.section-light .form-group textarea,
.section-light .form-group select {
    background: white;
    border-color: var(--border-light);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.appointment-services-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.appointment-services-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
}

.appointment-services-toggle:hover,
.appointment-services-toggle[aria-expanded="true"] {
    border-color: var(--accent-gold);
}

.appointment-services-arrow {
    color: var(--accent-gold);
    transition: transform 0.25s ease;
}

.appointment-services-toggle[aria-expanded="true"] .appointment-services-arrow {
    transform: rotate(180deg);
}

.appointment-services-panel {
    margin-top: 0.5rem;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 2px;
}

#appointment-modal .appointment-service-option {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 0.9rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
    margin-bottom: 0;
    color: var(--text-primary);
    font-weight: 400;
}

#appointment-modal .appointment-service-option:hover {
    border-color: var(--accent-gold);
}

#appointment-modal .appointment-service-option input[type="checkbox"] {
    width: 18px;
    min-width: 18px;
    max-width: 18px;
    height: 18px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    appearance: auto;
    -webkit-appearance: checkbox;
    accent-color: var(--accent-gold);
    flex-shrink: 0;
}

#appointment-modal .appointment-service-option span {
    color: var(--text-primary);
    line-height: 1.4;
}

/* Randevu Modal - Masaüstü Yatay (2 Sütun) Dizayn */
#appointment-modal .modal-content {
    max-width: 780px;
    max-height: 88vh;
    padding: 1.4rem 1.75rem;
    overflow-y: auto;
}

#appointment-modal .modal-content h3 {
    margin-bottom: 1.05rem;
    font-size: 1.4rem;
}

#appointment-modal .form-group {
    margin-bottom: 0.75rem;
}

#appointment-modal .form-group label {
    margin-bottom: 0.3rem;
    font-size: 0.93rem;
}

#appointment-modal .form-group input,
#appointment-modal .appointment-services-toggle {
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    border-radius: 8px;
}

#appointment-modal .appointment-service-option {
    padding: 0.55rem 0.8rem;
    font-size: 0.95rem;
    border-radius: 8px;
}

#appointment-modal .btn-full {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    margin-top: 0.35rem;
}

.appointment-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.3rem;
    align-items: flex-start;
}

.appointment-col-left,
.appointment-col-right {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.appointment-col-left .appointment-services-group,
.appointment-col-right .btn-full {
    width: 100%;
}

/* Calendar */
.calendar-container {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-header h3 {
    color: var(--accent-gold);
    font-size: 1.3rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.75rem;
}

.calendar-day {
    padding: 1rem 0.5rem;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    background: var(--bg-secondary);
    transition: all 0.3s;
    font-weight: 500;
}

.calendar-day.header {
    background: none;
    color: var(--text-secondary);
    cursor: default;
    font-size: 0.85rem;
    font-weight: 600;
}

.calendar-day.available:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.calendar-day.selected {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.calendar-day.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Weekly Calendar View - Grid Style (Days as Columns, Times as Rows) */
.calendar-grid.week-view-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: none; /* Firefox */
}
.calendar-grid.week-view-grid::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.grid-day-header {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 0.75rem 0.5rem;
    text-align: center;
    color: var(--text-primary);
    font-weight: 600;
}

.grid-day-name {
    font-size: 0.9rem;
}

.grid-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.grid-day-header.selected {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.grid-day-header.selected .grid-date {
    color: var(--bg-secondary);
}

.grid-time-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 8px;
  background: #151515;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  gap: 0.25rem;
  text-align: center;
  border: 1px solid transparent;
  box-shadow: none;
}

.grid-time-slot div:first-child {
  font-weight: 600;
}

.grid-time-status {
  font-size: 0.75rem;
}

.grid-time-slot.available {
  background: #151515;
  border: 1px solid rgba(34, 197, 94, 0.9);
  color: #d1fae5;
  box-shadow: none;
}

.grid-time-slot.available:hover {
  background: rgba(20, 64, 37, 0.75);
  box-shadow:
    inset 0 0 14px rgba(34, 197, 94, 0.28),
    inset 0 0 28px rgba(34, 197, 94, 0.14);
}

.grid-time-slot.booked {
  background: #151515;
  border: 1px solid rgba(239, 68, 68, 0.85);
  color: #fca5a5;
  box-shadow: none;
}

.grid-time-slot.booked:hover {
  background: rgba(76, 22, 22, 0.78);
  box-shadow:
    inset 0 0 14px rgba(239, 68, 68, 0.24),
    inset 0 0 26px rgba(239, 68, 68, 0.12);
}

.grid-time-slot.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: var(--bg-secondary);
}

.grid-time-slot.selected-slot {
  background: rgba(34, 197, 94, 0.3);
  color: #bbf7d0;
  border: 2px solid #22c55e;
}

.grid-time-slot.selected-slot .grid-time-status {
  color: #bbf7d0;
}

/* Login Prompt */
.login-prompt {
    background: rgba(232, 212, 160, 0.15);
    border: 1px solid var(--accent-gold);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-prompt p {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.login-prompt-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Time Slots */
.time-slots-container {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 16px;
}

.time-slots-container h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
}

.time-slot {
    padding: 1rem 0.5rem;
    text-align: center;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    border: 2px solid transparent;
}

.time-slot.available {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
    border-color: var(--success);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.2);
}

.time-slot.available:hover {
    transform: scale(1.05);
    background: var(--success);
    color: white;
}

.time-slot.booked {
    background: rgba(244, 67, 54, 0.1);
    color: var(--error);
    border-color: var(--error);
}

.time-slot.booked:hover {
    background: rgba(244, 67, 54, 0.2);
}

.time-slot.disabled {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.5;
}

.time-slot-status {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Contact */
.contact-info {
    max-width: 500px;
}

.info-item {
    margin-bottom: 1.5rem;
}

.info-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.info-item p,
.info-item li {
    color: #666;
}

.info-item ul {
    list-style: none;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

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

.social-link:hover {
    color: var(--accent-gold);
}

/* Profile */
.profile-info {
    display: grid;
    gap: 1.5rem;
}

.info-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
}

.info-card h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.appointments-container h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.appointment-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.appointment-details p {
    margin: 0.25rem 0;
    color: var(--text-secondary);
}

.appointment-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-update-current {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.admin-update-current strong {
    color: var(--text-primary);
}

.admin-update-availability {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    min-height: 1.25rem;
}

/* Admin */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
}

.stat-card h4 {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.stat-card p {
    font-size: 2.5rem;
    color: var(--accent-gold);
    font-weight: 700;
}

.admin-access-notice {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(232, 212, 160, 0.35);
    background: rgba(232, 212, 160, 0.08);
    color: var(--text-primary);
    margin-top: 40px;
}

.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
    flex-wrap: wrap;
}

.admin-tab {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.admin-tab.active {
    color: var(--accent-gold);
    border-bottom: 2px solid var(--accent-gold);
    margin-bottom: -2px;
}

.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.filters input,
.filters select {
    padding: 0.85rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s;
    width: 100%;
    /* Taşmayı önle */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filters select {
    /* Select için özel stiller */
    min-width: 200px;
    flex: 1;
}

@media (max-width: 768px) {
    .filters {
        flex-direction: column;
    }

    .filters select {
        min-width: auto;
        width: 100%;
    }
}

.filters input:focus,
.filters select:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.working-hours-grid {
    display: grid;
    gap: 1rem;
}

.day-setting {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--bg-card);
    padding: 1.25rem;
    border-radius: 12px;
}

.day-setting label {
    min-width: 100px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modal */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-content {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.25rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.close:hover {
    color: var(--text-primary);
}

.modal-content h3 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

#admin-appointment-update-modal .modal-content {
    max-width: 520px;
}

@media (max-width: 768px) {
    /* MOBİLDE: Randevu modal TEK SÜTUN kalsın, mevcut görünüşü BOZMA */
    .appointment-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }

    #appointment-modal {
        align-items: flex-start;
        padding-top: 88px;
    }

    #appointment-modal .modal-content {
        max-width: calc(100vw - 24px);
        padding: 1.1rem;
        border-radius: 16px;
        max-height: calc(100vh - 104px);
    }

    #appointment-modal .modal-content h3 {
        margin-bottom: 0.9rem;
        font-size: 1.3rem;
    }

    #appointment-modal .close {
        top: 0.65rem;
        right: 0.9rem;
        font-size: 1.7rem;
    }

    #appointment-modal .form-group {
        margin-bottom: 0.75rem;
    }

    #appointment-modal .form-group label {
        margin-bottom: 0.3rem;
        font-size: 0.95rem;
    }

    #appointment-modal .form-group input,
    #appointment-modal .form-group select {
        padding: 0.7rem 0.8rem;
        font-size: 0.95rem;
    }

    #appointment-modal .appointment-services-list {
        gap: 0.45rem;
    }

    #appointment-modal .appointment-services-toggle {
        padding: 0.75rem 0.85rem;
        font-size: 0.95rem;
    }

    #appointment-modal .appointment-services-panel {
        max-height: 0;
        overflow: hidden;
        margin-top: 0;
        transition: max-height 0.25s ease, margin-top 0.25s ease;
    }

    #appointment-modal .appointment-services-panel.expanded {
        max-height: 320px;
        overflow-y: auto;
        margin-top: 0.55rem;
    }

    #appointment-modal .appointment-service-option {
        padding: 0.65rem 0.75rem;
        gap: 0.55rem;
    }

    #appointment-modal .appointment-service-option span {
        font-size: 0.92rem;
    }

    #appointment-modal .btn.btn-full {
        margin-top: 0.25rem;
        padding: 0.75rem 1rem;
    }
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-card);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-gold);
    box-shadow: var(--shadow);
    transform: translateX(150%);
    transition: transform 0.4s;
    z-index: 3000;
    max-width: 350px;
}

.toast.show {
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content,
    .about-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 968px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 3.5rem;
        font-family: 'Georgia', 'Times New Roman', serif;
        color: #ffffff;
    }
    .hero-title-gold {
        color: var(--accent-gold);
    }

    .section {
        padding: 15px 0;
        margin-top: -100px;
        margin-bottom: 100px;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
        font-family: 'Georgia', 'Times New Roman', serif;
        color: #ffffff;
    }
    .hero-title-gold {
        color: var(--accent-gold);
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn-lg {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }

    .auth-form,
    .info-card,
    .calendar-container,
    .time-slots-container {
        padding: 1.5rem;
    }

    .admin-tabs {
        gap: 0.5rem;
    }

    .admin-tab {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .filters {
        flex-direction: column;
    }

    .filters input,
    .filters select,
    .filters button {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .navbar-container {
        padding: 1rem 0;
    }

    .logo {
        font-size: 1.3rem;
    }

    .hero-title {
        font-size: 2.5rem;
        font-family: 'Georgia', 'Times New Roman', serif;
        color: #ffffff;
    }
    .hero-title-gold {
        color: var(--accent-gold);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .calendar-grid {
        gap: 0.5rem;
    }

    .calendar-day {
        padding: 0.75rem 0.25rem;
        font-size: 0.8rem;
    }

    .time-slots {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .time-slot {
        padding: 0.75rem 0.5rem;
    }

    .stat-card p {
        font-size: 2rem;
    }

    .day-setting {
        flex-direction: column;
        align-items: flex-start;
    }

    .day-setting label {
        min-width: auto;
    }

    .toast {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
    
    /* Admin Hizmetler Mobil Stilleri */
    .service-edit-item {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .service-edit-delete-btn {
        width: 100% !important;
    }
}

/* Admin Hizmetler Genel Stilleri */
#services-edit-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-edit-item {
    display: grid;
    grid-template-columns: 1fr 2fr 3fr 1fr auto;
    gap: 0.5rem;
    align-items: center;
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
}

.service-edit-input {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    padding: 0.5rem;
    color: var(--text-primary);
    border-radius: 4px;
    width: 100%;
}

.service-edit-delete-btn {
    background: var(--error);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--accent-gold);
  color: var(--bg-primary);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
}

.scroll-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.scroll-to-top.visible {
    display: flex;
}

/* Time Slot Legend */
.time-slot-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot.available {
    background-color: #22c55e; /* Yeşil */
}

.legend-dot.booked {
    background-color: #ef4444; /* Kırmızı */
}

.legend-dot.selected {
  background-color: var(--accent-gold); /* Altın */
}

.legend-dot.past {
    background-color: #6b7280; /* Gri */
}
