/* Modern Hotel-Style Design System */
:root {
    --primary: #1a1a1a;
    --accent: #c5a059; /* Luxury Gold */
    --accent-hover: #b08d4a;
    --bg-light: #f9f9f9;
    --text-main: #333333;
    --text-muted: #777777;
    --white: #ffffff;
    --error: #e63946;
    --success: #2a9d8f;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Inter', sans-serif;
}

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

/* -- Typography -- */
h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--primary);
}

a {
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

/* -- Layout Components -- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

nav {
    background: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary);
}

.logo span { color: var(--accent); }

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

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover { color: var(--accent); }

/* -- Buttons -- */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

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

.btn-outline {
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
}

/* -- Service Cards (Hotel Style) -- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.service-card:hover { transform: translateY(-10px); }

.service-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: #eee;
}

.service-info {
    padding: 1.5rem;
}

.service-info h3 { margin-bottom: 0.5rem; }

.service-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* -- Detail Page Layout -- */
.detail-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin-top: 4rem;
}

@media (max-width: 992px) {
    .detail-layout { grid-template-columns: 1fr; }
}

.detail-gallery img {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.booking-panel {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

/* -- Forms & Slots -- */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; }

.slot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

.slot-btn {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    font-size: 0.85rem;
}

.slot-btn.selected {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.slot-btn:disabled {
    background: #f0f0f0;
    color: #ccc;
    cursor: not-allowed;
}

/* -- Feedback & Alerts -- */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    color: white;
    z-index: 2000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn { from { transform: translateX(100%); } }

/* -- Admin Tables -- */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 2rem;
}

.admin-table th, .admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th { background: #fafafa; }

/* -- Badge Colors -- */
.badge {
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}
.badge-beklemede { background: #fef3c7; color: #92400e; }
.badge-onaylandi { background: #d1fae5; color: #065f46; }
.badge-reddedildi { background: #fee2e2; color: #991b1b; }

/* -- Advanced Modal System -- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

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

.modal-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

/* -- Image Upload & Preview -- */
.image-upload-wrapper {
    width: 100%;
    height: 200px;
    border: 2px dashed #ddd;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
    position: relative;
    background: #fafafa;
}

.image-upload-wrapper:hover {
    border-color: var(--accent);
    background: #fdfdfd;
}

.image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.image-upload-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.image-upload-wrapper.has-image .image-preview {
    display: block;
}

.image-upload-wrapper.has-image .image-upload-placeholder {
    display: none;
}

input[type="text"], input[type="number"], input[type="email"], input[type="password"], textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    border-color: var(--accent);
}

/* Time Slot Grid */
.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.slot-btn {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 0.8rem 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-main);
}

.slot-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.slot-btn.selected {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.slot-btn:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    border-color: #e2e8f0;
}
/* -- Room Visual Grid (Premium) -- */
.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.room-item {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    text-align: center;
    padding: 1rem;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.room-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.room-item.available {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.room-item.booked {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
    cursor: not-allowed;
    opacity: 0.8;
}

.room-item.selected {
    border-color: var(--accent);
    background: var(--accent);
    color: white !important;
}

.room-number {
    font-size: 1.5rem;
    font-weight: 800;
}

.room-type-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 0.3rem;
    opacity: 0.8;
}

.status-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-available { background: var(--success); }
.status-booked { background: var(--error); }

/* -- Glassmorphism Filters -- */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 8rem 0;
    text-align: center;
}
