:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --border-color: rgba(255, 255, 255, 0.08);
    --accent-teal: #0d9488;
    --accent-blue: #3b82f6;
    --accent-pink: #ec4899;
    --accent-red: #ef4444;
    --accent-gray: #64748b;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background: radial-gradient(at 0% 0%, rgba(15, 23, 42, 0.9) 0, transparent 50%),
        radial-gradient(at 50% 0%, rgba(13, 148, 136, 0.1) 0, transparent 50%),
        radial-gradient(at 100% 0%, rgba(99, 102, 241, 0.1) 0, transparent 50%),
        var(--bg-primary);
    color: #f8fafc;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Layout */
@media (min-width: 992px) {
    .app-layout {
        display: flex;
        height: calc(100vh - 60px);
        overflow: hidden;
    }

    .app-sidebar {
        width: 380px;
        flex-shrink: 0;
        overflow-y: auto;
        border-right: 1px solid var(--border-color);
        background: rgba(15, 23, 42, 0.45);
        backdrop-filter: blur(20px);
        padding: 24px;
    }

    .app-main {
        flex-grow: 1;
        overflow-y: auto;
        padding: 24px 32px;
    }
}

.navbar {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    height: 60px;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}

.glass-card {
    background: rgba(30, 41, 59, 0.45);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.section-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: #f1f5f9;
    letter-spacing: -0.3px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-teal), #06b6d4);
    border-radius: 2px;
}

/* Form Controls */
.form-control,
.form-select {
    background-color: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #f8fafc !important;
    border-radius: 12px;
    padding: 10px 14px;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-teal) !important;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2) !important;
}

/* Yatak / Oda Grid */
.yatak-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.yatak-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 105px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(30, 41, 59, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    user-select: none;
}

.yatak-box:hover {
    transform: translateY(-3px);
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.4);
}

.yatak-box i {
    transition: transform 0.2s ease;
    font-size: 3rem;
    /* Büyük ikon */
    margin-bottom: 8px;
    margin-top: 8px;
    /* İkon ile açıklama arası mesafe */
}

.yatak-box:hover i {
    transform: scale(1.1);
}

.yatak-box .badge {
    font-size: 0.65rem;
    padding: 5px 8px;
    border-radius: 8px;
    margin-top: 10px;
}

/* Yatak Durum Renkleri */
.yatak-box.bay {
    border-color: rgba(59, 130, 246, 0.3);
    background-color: rgba(59, 130, 246, 0.08);
    cursor: default;
}

.yatak-box.bay i {
    color: #60a5fa;
}

.yatak-box.bay .badge {
    background-color: #3b82f6 !important;
    color: white !important;
}

.yatak-box.bayan {
    border-color: rgba(236, 72, 153, 0.3);
    background-color: rgba(236, 72, 153, 0.08);
    cursor: default;
}

.yatak-box.bayan i {
    color: #f472b6;
}

.yatak-box.bayan .badge {
    background-color: #ec4899 !important;
    color: white !important;
}

.yatak-box.aile {
    border-color: rgba(239, 68, 68, 0.3);
    background-color: rgba(239, 68, 68, 0.08);
    cursor: default;
}

.yatak-box.aile i {
    color: #f87171;
}

.yatak-box.aile .badge {
    background-color: #ef4444 !important;
    color: white !important;
}

.yatak-box.bos-yatak {
    border-color: rgba(255, 255, 255, 0.08);
    background-color: rgba(255, 255, 255, 0.02);
}

.yatak-box.bos-yatak i {
    color: #94a3b8;
}

.yatak-box.dolu-salon {
    border-color: rgba(239, 68, 68, 0.3);
    background-color: rgba(239, 68, 68, 0.08);
    cursor: default;
}

.yatak-box.dolu-salon i {
    color: #f87171;
}

/* Salon Liste Stilleri */
.salon-list-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(30, 41, 59, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.salon-list-item:hover {
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.4);
}

.salon-list-item.dolu-salon {
    border-color: rgba(239, 68, 68, 0.3);
    background-color: rgba(239, 68, 68, 0.08);
    cursor: default;
}

.salon-list-item.bos-yatak {
    border-color: rgba(255, 255, 255, 0.08);
    background-color: rgba(255, 255, 255, 0.02);
    cursor: pointer;
}

/* Modernized Bullet List */
.bullet-list {
    padding-left: 0;
    list-style: none;
}

.bullet-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.88rem;
    color: #94a3b8;
}

.bullet-list li::before {
    content: "\f05a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #38bdf8;
    font-size: 0.8rem;
}

.bullet-list.rules li::before {
    content: "\f06a";
    color: var(--accent-red);
}

/* Modals Koyu Glassmorphism */
.modal-content {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    color: #f8fafc;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 24px;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Text Muted Override for Dark Theme */
.text-muted {
    color: #dddddd !important;
}

/* Modal Elements Dark Theme Overrides */
.modal-content .bg-light {
    background-color: rgba(30, 41, 59, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.modal-content .text-dark {
    color: #f8fafc !important;
}

.modal-content .input-group-text.bg-light {
    background-color: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #94a3b8 !important;
}

.modal-content .alert-warning {
    background-color: rgba(245, 158, 11, 0.1) !important;
    border: 1px solid rgba(245, 158, 11, 0.2) !important;
    color: #fef08a !important;
}

.modal-content .alert-warning .text-dark {
    color: #fef08a !important;
}

.modal-content .alert-danger {
    background-color: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    color: #fca5a5 !important;
}

/* Input Placeholders Readable Color */
.form-control::placeholder {
    color: #94a3b8 !important;
    opacity: 0.75 !important;
}

.form-control:-ms-input-placeholder {
    color: #94a3b8 !important;
    opacity: 0.75 !important;
}

.form-control::-ms-input-placeholder {
    color: #94a3b8 !important;
    opacity: 0.75 !important;
}

/* Price List Table Custom Styling */
.price-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background-color: rgba(15, 23, 42, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    font-size: 0.98rem !important;
}

.price-table th {
    background-color: rgba(15, 23, 42, 0.75) !important;
    color: #94a3b8 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.5px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 10px 14px !important;
}

.price-table td {
    background-color: transparent !important;
    color: #f1f5f9 !important;
    padding: 10px 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    font-weight: 500 !important;
}

.price-table tr {
    background-color: transparent !important;
}

.price-table tr:last-child td {
    border-bottom: none !important;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(8px);
    border: 2px solid var(--accent-teal);
    color: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

#back-to-top:hover {
    background: var(--accent-teal);
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.4);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Theme Switcher Toggle styling */
.theme-switch-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-switch-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(15deg);
}

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --border-color: rgba(15, 23, 42, 0.08);
    --accent-teal: #0f766e;
    --accent-blue: #2563eb;
    --accent-pink: #db2777;
    --accent-red: #dc2626;
    --accent-gray: #475569;
}

[data-theme="light"] body {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #0f172a;
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.85) !important;
}

[data-theme="light"] .navbar-brand {
    color: #0f172a !important;
}

[data-theme="light"] .navbar .btn-outline-light {
    border-color: var(--accent-teal) !important;
    color: var(--accent-teal) !important;
}

[data-theme="light"] .navbar .btn-outline-light:hover {
    background-color: var(--accent-teal) !important;
    color: #ffffff !important;
}

[data-theme="light"] .app-sidebar {
    background: rgba(255, 255, 255, 0.75) !important;
}

[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.75) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 10px 35px -10px rgba(15, 23, 42, 0.1) !important;
}

[data-theme="light"] .section-title {
    color: #0f172a !important;
}

[data-theme="light"] .text-muted {
    color: #383838 !important;
}

[data-theme="light"] .bullet-list li {
    color: #475569 !important;
}

[data-theme="light"] .form-control,
[data-theme="light"] .form-select {
    background-color: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    color: #0f172a !important;
}

[data-theme="light"] .form-control::placeholder {
    color: #64748b !important;
}

[data-theme="light"] .yatak-box {
    background: rgba(255, 255, 255, 0.6) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .yatak-box:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(15, 23, 42, 0.15) !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1) !important;
}

[data-theme="light"] .yatak-box.bos-yatak {
    background-color: rgba(255, 255, 255, 0.4) !important;
}

[data-theme="light"] .yatak-box.bos-yatak i {
    color: #475569 !important;
}

/* Light Theme for Salon List */
[data-theme="light"] .salon-list-item {
    background: rgba(255, 255, 255, 0.6) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .salon-list-item:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(15, 23, 42, 0.15) !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1) !important;
}

[data-theme="light"] .salon-list-item.bos-yatak {
    background-color: rgba(255, 255, 255, 0.4) !important;
}

[data-theme="light"] .salon-list-item.bos-yatak .text-white {
    color: #0f172a !important;
    /* Gündüz modunda boş salon metnini siyah yap */
}

[data-theme="light"] .salon-list-item.dolu-salon {
    background-color: rgba(239, 68, 68, 0.1) !important;
}

[data-theme="light"] .modal-content {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    color: #0f172a !important;
}

[data-theme="light"] .modal-content .bg-light {
    background-color: #f8fafc !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .modal-content .text-dark {
    color: #0f172a !important;
}

[data-theme="light"] .modal-content .input-group-text.bg-light {
    background-color: #f1f5f9 !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    color: #475569 !important;
}

[data-theme="light"] .modal-content .alert-warning {
    background-color: #fef3c7 !important;
    border-color: #fde68a !important;
    color: #78350f !important;
}

[data-theme="light"] .modal-content .alert-warning .text-dark {
    color: #78350f !important;
}

[data-theme="light"] .modal-content .alert-danger {
    background-color: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #991b1b !important;
}

[data-theme="light"] .modal-content .btn-close {
    filter: none !important;
}

[data-theme="light"] .price-table {
    background-color: rgba(255, 255, 255, 0.6) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .price-table th {
    background-color: rgba(15, 23, 42, 0.03) !important;
    color: #475569 !important;
    border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .price-table td {
    color: #0f172a !important;
    border-bottom-color: rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] #back-to-top {
    background: rgba(255, 255, 255, 0.8) !important;
    color: var(--accent-teal) !important;
}

[data-theme="light"] .theme-switch-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.1);
}

/* Collapsible Sections */
.collapsible-header {
    cursor: pointer;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.collapsible-header .toggle-icon {
    font-size: 0.95rem;
    color: var(--accent-teal);
    transition: color 0.2s ease;
}

[data-theme="light"] .collapsible-header .toggle-icon {
    color: var(--accent-teal);
}

.collapsible-header.text-danger .toggle-icon {
    color: var(--accent-red) !important;
}

/* Responsive Navbar adjustments */
@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.25rem !important;
    }
    .navbar-brand span {
        font-size: 0.95rem !important;
    }
    .navbar-brand img {
        width: 28px !important;
        height: 28px !important;
        margin-right: 4px !important;
    }
    .back-to-site-text {
        display: none !important;
    }
    .back-to-site-btn {
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }
    .back-to-site-btn i {
        margin: 0 !important;
        font-size: 1.05rem !important;
    }
}

/* Input group icon divider line fixes */
.app-sidebar .input-group > .input-group-text {
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-theme="light"] .app-sidebar .input-group > .input-group-text {
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
}
