/* ============================================== */
/* YENİ PROFESYONAL DİZAYN (v2.2 - Final)        */
/* ============================================== */

/* --- Əsas Tənzimləmələr və Rəng Palitrası --- */
:root {
    --primary-font: 'Inter', sans-serif;
    --background-color: #f0f2f5;
    --surface-color: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --accent-color: #10b981; /* Yaşıl */
    --accent-hover: #059669;
    --primary-action-color: #3b82f6; /* Mavi */
    --primary-action-hover: #2563eb;
    --danger-color: #ef4444;
    --danger-hover: #dc2626;
    --warning-color: #f59e0b;
    --gold-color: #ffd700; /* Qızılı */
    --gold-hover: #ffcc00;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

body {
    font-family: var(--primary-font);
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-primary);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Başlıq və Naviqasiya --- */
header {
    background-color: var(--surface-color);
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.5em;
    font-weight: 700;
}

header nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-element {
    font-family: var(--primary-font);
    padding: 8px 16px;
    border: 1px solid transparent;
    background-color: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
    position: relative;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.nav-element:hover {
    background-color: #f3f4f6;
    color: var(--text-primary);
}

.nav-element.active {
    background-color: var(--primary-action-color);
    color: white;
}

.nav-element.logout-btn {
    background-color: #fee2e2;
    color: var(--danger-color);
}
.nav-element.logout-btn:hover {
    background-color: var(--danger-color);
    color: white;
}

.badge, #notification-count, #tasks-count {
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7em;
    font-weight: bold;
    vertical-align: top;
    margin-left: 4px;
}

/* --- Əsas Məzmun --- */
main {
    padding: 25px;
    padding-bottom: 80px; 
}

main h2 {
    font-size: 1.75em;
    color: var(--text-primary);
    margin-top: 0; 
    margin-bottom: 25px;
    font-weight: 700;
}

/* --- Əsas Əməliyyat Düymələri --- */
.actions {
    margin-bottom: 20px;
}
.add-order-btn {
    background-color: var(--primary-action-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-sm);
}
.add-order-btn:hover {
    background-color: var(--primary-action-hover);
    box-shadow: var(--shadow-md);
}

.total-btn {
    background-color: var(--gold-color);
    color: #333;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.3s;
}
.total-btn:hover {
    background-color: var(--gold-hover);
}

/* --- Filterlər --- */
.filters-container {
    margin-bottom: 20px;
    padding: 16px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    display: flex;
    flex-wrap: wrap; 
    gap: 16px; 
    align-items: flex-end; 
    box-shadow: var(--shadow-sm);
}
.filters-container > div {
    display: flex; flex-direction: column; min-width: 150px;
}
.filters-container label {
    margin-bottom: 6px; font-weight: 500; font-size: 0.85em; color: var(--text-secondary); 
}
.filters-container input, .filters-container select {
    padding: 9px 12px; border: 1px solid var(--border-color); border-radius: 6px; font-size: 0.9em; background-color: #f9fafb;
}
.filters-container button {
    padding: 9px 18px; border-radius: 6px; font-size: 0.9em; cursor: pointer; transition: opacity 0.2s; font-weight: 600;
}
.filter-apply-btn { background-color: var(--accent-color); color: white; border: 1px solid var(--accent-color); }
.filter-reset-btn { background-color: transparent; color: var(--text-secondary); border: 1px solid var(--border-color); }

/* --- Cədvəllər --- */
.table-container { 
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
table { 
    width: 100%; border-collapse: collapse;
}

th, td { 
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
    text-align: left;
    font-size: 0.9em; 
    white-space: normal;
    word-break: break-word;
    max-width: 250px;
}

th {
    background-color: #f9fafb;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 0.5px;
}
tbody tr:hover {
    background-color: #f9fafb;
}

/* Seçilmiş Sətir Stili */
tr.selected-row {
    background-color: #fff3cd !important;
    border-left: 5px solid var(--warning-color);
}

td .action-btn {
    background-color: transparent; border: none; cursor: pointer; padding: 6px; margin-right: 4px; border-radius: 50%; width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--text-secondary);
    transition: background-color 0.2s, color 0.2s;
}
td .action-btn:hover { background-color: #e5e7eb; color: var(--text-primary); }

/* --- Yekunlar / Statistika Kartları --- */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.stat-card {
    background-color: var(--surface-color);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.currency-card {
    background-color: var(--surface-color);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--gold-color);
    box-shadow: var(--shadow-sm);
}

.stat-card h4, .currency-card h4 {
    margin: 0 0 8px 0;
    font-size: 0.9em;
    font-weight: 500;
    color: var(--text-secondary);
}
.stat-card p, .currency-card p {
    margin: 4px 0 0 0;
    font-size: 1.1em;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}
.stat-card #totalOrders {
    font-size: 2em;
    font-weight: 700;
    color: var(--primary-action-color);
    transition: transform 0.3s, opacity 0.3s;
}
.currency-cards-container {
    grid-column: 1 / -1; 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 0;
    border: none;
    box-shadow: none;
}
.text-danger { color: var(--danger-color) !important; }
.text-success { color: var(--accent-color) !important; }

/* --- Modal Pəncərə --- */
.modal {
    display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%;
    overflow: auto; background-color: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(4px);
}
.modal-content {
    background-color: var(--surface-color); margin: 5% auto; padding: 35px; border: none;
    width: 80%; max-width: 850px; border-radius: 12px; box-shadow: var(--shadow-md);
    position: relative;
}
.modal-content h3 { margin-top: 0; font-size: 1.5em; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; margin-bottom: 25px;}
.modal-content h4 { font-size: 1.1em; color: var(--primary-action-color); margin-top: 25px; margin-bottom: 15px; }
.close-button { color: #9ca3af; float: right; font-size: 32px; font-weight: bold; transition: color 0.2s; }
.close-button:hover, .close-button:focus { color: var(--text-primary); text-decoration: none; cursor: pointer; }
.modal-content form input, .modal-content form select, .modal-content form textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 6px; box-sizing: border-box; font-size: 0.95em; 
    background-color: #f9fafb;
}
.modal-content form button[type="submit"] {
    background-color: var(--accent-color); color: white; padding: 12px 25px; border: none;
    border-radius: var(--border-radius); cursor: pointer; font-size: 1em; margin-top: 30px; display: block;
    width: auto; min-width: 200px; margin-left: auto; margin-right: auto; transition: background-color 0.2s; font-weight: 600;
}
.modal-content form button[type="submit"]:hover { background-color: var(--accent-hover); }

/* KÖHNƏ form-group-inline SİLİNDİ, YENİSİ AŞAĞIDADIR */
.form-group-inline { display: flex; gap: 20px; align-items: center; margin-bottom: 12px; }
.form-group-inline > div { flex: 1; }

.hotel-entry { background-color: #f9fafb; padding: 16px; border: 1px solid var(--border-color); border-radius: var(--border-radius); margin-bottom: 16px; }

/* --- Chat --- */
#chatView { display: flex; flex-direction: column; height: calc(100vh - 140px); }
.chat-page-container {
    background-color: #e5ddd5; 
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}
#chatView .chat-messages { flex-grow: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
#chatView .chat-message { padding: 8px 12px; border-radius: 12px; max-width: 65%; word-wrap: break-word; box-shadow: var(--shadow-sm); position: relative; line-height: 1.4; }
#chatView .chat-message .sender { font-weight: 600; font-size: 0.9em; margin-bottom: 4px; color: var(--primary-action-color); }
#chatView .chat-message .message-text { font-size: 0.95em; margin-right: 55px; }
#chatView .chat-message .timestamp { font-size: 0.7em; color: var(--text-secondary); position: absolute; bottom: 6px; right: 10px; }
#chatView .chat-message.other { background-color: var(--surface-color); align-self: flex-start; border-bottom-left-radius: 2px; }
#chatView .chat-message.own { background-color: #dcf8c6; align-self: flex-end; border-bottom-right-radius: 2px; }
#chatView .chat-message.own .sender { display: none; }
#chatView .chat-input-area { display: flex; align-items: center; padding: 10px; background-color: #f0f2f5; border-top: 1px solid var(--border-color); }
#chatView #chat-input { flex-grow: 1; border: 1px solid var(--border-color); border-radius: 20px; padding: 10px 18px; font-size: 1em; outline: none; }
#chatView #chat-send-btn { background-color: var(--accent-color); color: white; border: none; border-radius: 50%; width: 42px; height: 42px; margin-left: 10px; cursor: pointer; font-size: 16px; display: flex; justify-content: center; align-items: center; transition: background-color 0.2s; }
#chatView #chat-send-btn:hover { background-color: var(--accent-hover); }

/* --- Toplu Əməliyyat Paneli --- */
.bulk-action-panel {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
    from { bottom: -100px; opacity: 0; }
    to { bottom: 20px; opacity: 1; }
}
.bulk-content { display: flex; align-items: center; gap: 20px; }
#bulkCount { font-weight: bold; font-size: 1.1em; }
.bulk-btn { padding: 8px 16px; border: none; border-radius: 20px; cursor: pointer; font-weight: bold; transition: 0.2s; display: inline-flex; align-items: center; gap: 5px; }
.bulk-btn.archive { background-color: var(--gold-color); color: #333; }
.bulk-btn.archive:hover { background-color: var(--gold-hover); }
.bulk-btn.cancel { background-color: #666; color: white; margin-left: 10px; }
.bulk-btn.cancel:hover { background-color: #555; }

/* Login Modal */
#createUserModal .modal-content { text-align: left; }
#createUserModal h3 { text-align: center; color: #334e68; border-bottom: 2px solid var(--primary-action-color); padding-bottom: 10px; margin-bottom: 25px; }
#createUserModal label { display: block; margin-top: 15px; margin-bottom: 5px; font-weight: 500; }
#createUserModal input, #createUserModal select { width: 100%; padding: 10px; box-sizing: border-box; border: 1px solid #ccc; border-radius: 6px; }
#createUserModal button { width: 100%; padding: 12px; margin-top: 20px; font-weight: 600; border-radius: 6px; border: none; color: white; cursor: pointer; }
#ownerVerifyForm button { background-color: var(--primary-action-color); }
#registrationForm button { background-color: var(--accent-color); }
#modalErrorMessage, #regMessage { text-align: center; margin-top: 15px; font-weight: 500; }

/* --- Dil Dəyişmə --- */
.lang-switcher-container-header { position: relative; }
.login-lang-switcher { position: absolute; top: 20px; right: 20px; z-index: 10; }
.language-switcher { position: relative; width: 150px; font-family: var(--primary-font); }
.language-switcher .selected-lang { display: flex; align-items: center; padding: 8px 12px; background-color: var(--surface-color); border: 1px solid var(--border-color); border-radius: var(--border-radius); cursor: pointer; transition: box-shadow 0.2s; }
.language-switcher.active .selected-lang { box-shadow: 0 0 0 2px var(--primary-action-color); }
.language-switcher .selected-lang span { flex-grow: 1; font-weight: 500; color: var(--text-primary); }
.language-switcher .selected-lang .fa-chevron-down { margin-left: 10px; transition: transform 0.3s ease; }
.language-switcher.active .selected-lang .fa-chevron-down { transform: rotate(180deg); }
.language-switcher .lang-options { display: none; position: absolute; top: calc(100% + 5px); left: 0; right: 0; background-color: var(--surface-color); border: 1px solid var(--border-color); border-radius: var(--border-radius); box-shadow: var(--shadow-md); z-index: 101; list-style: none; padding: 5px 0; margin: 0; overflow: hidden; }
.language-switcher.active .lang-options { display: block; }
.language-switcher .lang-options li { display: flex; align-items: center; padding: 10px 15px; cursor: pointer; transition: background-color 0.2s; }
.language-switcher .lang-options li:hover { background-color: #f3f4f6; }
.language-switcher .lang-options li span { color: var(--text-primary); font-weight: 500; }

/* --- Maskot --- */
#mascot-container { position: fixed; bottom: 20px; right: 20px; width: 180px; z-index: 9999; transition: transform 1.5s ease-in-out, opacity 0.5s ease; }
#mascot-container.is-grabbing { transition: transform 2.5s ease-in-out; }
#mascot-container img { width: 100%; transform-origin: bottom center; transition: filter 0.3s ease-in-out; }
.mascot-bubble { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); background-color: var(--surface-color); padding: 8px 12px; border-radius: 12px; box-shadow: var(--shadow-sm); font-size: 0.9em; font-weight: 500; white-space: nowrap; opacity: 0; transition: opacity 0.3s ease-in-out, background-color 0.3s, color 0.3s; }
#mascot-container:hover .mascot-bubble { opacity: 1; }
#mascot-holding-number { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: var(--accent-color); color: white; padding: 5px 10px; border-radius: 15px; font-size: 1.5em; font-weight: bold; box-shadow: 0 4px 8px rgba(0,0,0,0.2); opacity: 0;  transition: opacity 0.3s ease-in-out; }
#totalOrders.grabbed { transition: transform 0.3s, opacity 0.3s; transform: scale(0); opacity: 0; }
@keyframes jump-alert { 0%, 100% { transform: translateY(0) rotate(0deg); } 25% { transform: translateY(-20px) rotate(-5deg); } 75% { transform: translateY(-20px) rotate(5deg); } }
#mascot-container.mascot-alert { transform: none !important; }
#mascot-container.mascot-alert img { filter: hue-rotate(340deg) saturate(3) brightness(1.1); animation: jump-alert 0.8s ease-in-out infinite; }
#mascot-container.mascot-alert .mascot-bubble { background-color: var(--danger-color); color: white; opacity: 1; }

/* --- Tənzimləmələr Paneli --- */
#settingsBtn { padding: 8px 12px; }
#settingsBtn .fa-gear { font-size: 1.1em; }
.settings-panel { position: fixed; top: 65px; right: 20px; width: 280px; background-color: var(--surface-color); border: 1px solid var(--border-color); border-radius: var(--border-radius); box-shadow: var(--shadow-md); z-index: 1001; transform: translateY(-20px) scale(0.95); opacity: 0; pointer-events: none; transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out; }
.settings-panel.visible { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.settings-panel-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border-color); }
.settings-panel-header h3 { margin: 0; font-size: 1em; font-weight: 600; }
.settings-panel-body { padding: 16px; }
.setting-item { display: flex; justify-content: space-between; align-items: center; }
.setting-item label { font-weight: 500; color: var(--text-primary); }
.toggle-buttons { display: flex; border: 1px solid var(--border-color); border-radius: 6px; overflow: hidden; }
.toggle-buttons .toggle-btn { padding: 6px 14px; border: none; background-color: transparent; cursor: pointer; font-size: 0.85em; color: var(--text-secondary); transition: background-color 0.2s, color 0.2s; }
.toggle-buttons .toggle-btn.active { background-color: var(--primary-action-color); color: white; font-weight: 600; }

/* --- Login Maskot --- */
.login-container { position: relative; padding-top: 50px; }
.mascot-login-container { position: absolute; width: 120px; height: 100px; bottom: -100px;  left: 50%; transform: translateX(140px); transition: bottom 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55); }
#loginMascot { width: 100%; position: absolute; bottom: 0; }
.login-mascot-bubble { position: absolute; bottom: 105px;  left: 50%; transform: translateX(-50%); background-color: var(--surface-color); padding: 10px 15px; border-radius: 12px; box-shadow: var(--shadow-sm); font-size: 0.9em; font-weight: 500; white-space: nowrap; opacity: 0;  transition: opacity 0.5s ease-in-out; z-index: 10; border: 1px solid var(--border-color); }
.login-mascot-bubble::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); border-width: 10px 10px 0; border-style: solid; border-color: var(--surface-color) transparent transparent transparent; }
.password-wrapper { position: relative; width: 100%; }
.input-group-checkbox { display: flex; align-items: center; justify-content: flex-start; margin-top: -10px; margin-bottom: 20px; font-size: 0.9em; }
.input-group-checkbox input { margin-right: 8px; }
.login-page-body { display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #eef2f7; margin: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
.login-container { background-color: #ffffff; padding: 35px 45px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); width: 100%; max-width: 380px; text-align: center; border-top: 5px solid #007bff; }
.login-container h1 { margin-top: 0; margin-bottom: 30px; color: #333; font-size: 2em; font-weight: 600; }
.login-container .input-group { margin-bottom: 20px; text-align: left; }
.login-container label { display: block; margin-bottom: 8px; font-weight: 500; color: #495057; font-size: 0.95em; }
.login-container input[type="text"], .login-container input[type="password"] { width: 100%; padding: 12px 15px; border: 1px solid #ced4da; border-radius: 5px; box-sizing: border-box; font-size: 1em; }
.login-container input[type="text"]:focus, .login-container input[type="password"]:focus { border-color: #80bdff; outline: 0; box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25); }
.login-container button[type="submit"] { width: 100%; padding: 12px 15px; background-color: #007bff; color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 1.1em; font-weight: 500; transition: background-color 0.2s ease-in-out; }
.login-container button[type="submit"]:hover { background-color: #0056b3; }
.error-message { color: #D8000C; background-color: #FFD2D2; border: 1px solid #D8000C; padding: 10px; margin-top: 20px; border-radius: 5px; font-size: 0.9em; text-align: center; }
.permissions-link { display: block; margin-top: 15px; color: #6c757d; text-decoration: none; font-size: 0.9em; }
.permissions-link:hover { text-decoration: underline; }

/* --- Təbrik --- */
#milestone-celebration { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(17, 24, 39, 0.7); backdrop-filter: blur(8px); z-index: 9998; display: none; justify-content: center; align-items: center; text-align: center; opacity: 0; transition: opacity 0.5s ease-in-out; }
#milestone-celebration.visible { opacity: 1; }
#milestone-celebration .milestone-content { color: #fff; transform: scale(0.7); transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
#milestone-celebration.visible .milestone-content { transform: scale(1); }
#milestone-celebration img { width: 200px; margin-bottom: 20px; animation: mascot-celebrate-jump 1s ease-in-out infinite; }
#milestone-celebration h2 { font-size: 3em; font-weight: 700; text-shadow: 0 4px 10px rgba(0,0,0,0.5); color: #ffd700; margin: 0; }
#milestone-celebration p { font-size: 1.2em; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
@keyframes mascot-celebrate-jump { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-25px); } }

#mascot-container.following { transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); }
#mascot-container .mascot-bubble.visible { opacity: 1; transform: translateX(-50%) translateY(-10px); }
#mascot-container .mascot-bubble { transform: translateX(-50%) translateY(0); transition: opacity 0.3s, transform 0.3s; pointer-events: none; }

/* --- Footer --- */
.site-footer { text-align: center; padding: 20px; margin-top: 30px; border-top: 1px solid var(--border-color); background-color: var(--surface-color); }
.site-footer p { margin: 0; font-size: 0.9em; color: var(--text-secondary); }
.site-footer a { color: var(--primary-action-color); text-decoration: none; font-weight: 500; }
.site-footer a:hover { text-decoration: underline; }

/* --- Məlumat Pəncərəsi (Info Modal) --- */
td .action-btn.info { background-color: #e0e7ff; color: #4f46e5; font-weight: bold; font-family: serif; }
td .action-btn.info:hover { background-color: #c7d2fe; color: #4338ca; }
.view-only-modal .info-section { margin-bottom: 20px; border-bottom: 1px dashed var(--border-color); padding-bottom: 15px; }
.view-only-modal h4 { font-size: 1.1em; color: var(--primary-action-color); margin-top: 0; margin-bottom: 15px; }
.view-only-modal .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.view-only-modal .info-item { padding: 5px 0; }
.view-only-modal .info-item label { display: block; font-size: 0.85em; font-weight: 500; color: var(--text-secondary); margin-bottom: 4px; }
.view-only-modal .info-item span { font-size: 0.95em; font-weight: 600; word-break: break-word; }
.view-only-modal .info-full-width { grid-column: 1 / -1; }
.action-btn-print { background-color: var(--accent-color); color: white; padding: 10px 20px; border: none; border-radius: var(--border-radius); font-size: 0.9em; font-weight: 600; cursor: pointer; transition: background-color 0.2s; display: block; margin: 20px auto 0 auto; }
.action-btn-print:hover { background-color: var(--accent-hover); }
.action-btn-print i { margin-right: 8px; }

/* ============================================== */
/* --- RESPONSİVLİK (ADAPTİVLİK) --- */
/* ============================================== */
.mobile-menu-toggle-btn { display: none; background: none; border: none; font-size: 1.5em; color: var(--text-primary); cursor: pointer; }

@media (max-width: 1024px) {
    .nav-container { display: none; position: absolute; top: 65px; left: 0; right: 0; background-color: var(--surface-color); box-shadow: var(--shadow-md); z-index: 99; }
    .nav-container.mobile-active { display: block; }
    header nav { flex-direction: column; align-items: stretch; width: 100%; }
    header nav button, header nav a { width: 100%; text-align: left; padding: 12px 16px; border-radius: 0; border-bottom: 1px solid var(--border-color); }
    header nav .lang-switcher-container-header { width: auto; padding: 10px 16px; }
    .mobile-menu-toggle-btn { display: block; }
    .filters-container { flex-direction: column; align-items: stretch; }
    .currency-cards-container { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}

@media (max-width: 768px) {
    main { padding: 15px; }
    main h2 { font-size: 1.5em; }
    .modal-content { width: 95%; margin: 5% auto; padding: 20px; }
    /* Form qruplarının mobil davranışı */
    .form-group-inline { flex-direction: column; gap: 12px; align-items: stretch; }
    
    .table-container table, .table-container thead, .table-container tbody, .table-container th, .table-container td, .table-container tr { display: block; }
    .table-container thead tr { position: absolute; top: -9999px; left: -9999px; }
    .table-container tr { border: 1px solid var(--border-color); margin-bottom: 15px; border-radius: var(--border-radius); overflow: hidden; }
    .table-container td { border: none; border-bottom: 1px solid #eee; position: relative; padding-left: 50%; text-align: right; white-space: normal; }
    .table-container td:before { position: absolute; top: 12px; left: 12px; width: 45%; padding-right: 10px; white-space: nowrap; text-align: left; font-weight: 600; color: var(--text-primary); content: attr(data-label); }
    td .action-btn { margin: 2px; }
    .bulk-action-panel { width: 90%; padding: 15px; }
    .bulk-content { flex-direction: column; gap: 10px; }
}

@media print {
    body > *:not(.modal-content.view-only-modal) { display: none !important; }
    .modal-content.view-only-modal, .modal { display: block !important; position: static !important; box-shadow: none !important; border: none !important; width: 100% !important; max-width: 100% !important; background-color: white !important; }
    .action-btn-print, .close-button { display: none !important; }
}

/* ============================================== */
/* --- YENİ: OTEL SƏTRİ VƏ AUTOCOMPLETE FİX --- */
/* ============================================== */

/* 1. Otel Sətrinin Konteyneri */
/* Artıq yuxarıda .form-group-inline var, lakin bu spesifik otel sətri üçün gücləndirilir */
.hotel-entry .form-group-inline {
    display: flex;
    gap: 10px; /* Elementlər arası məsafə */
    align-items: center;
    width: 100%;
}

/* 2. Otel Adı Inputunun Genişlənməsi (Əsas Həll) */
/* "form-group-inline" içindəki birinci div (Otel adı olan div) */
.hotel-entry .form-group-inline > div:first-child {
    flex-grow: 1; /* Mövcud boş yerin hamısını tutur */
    position: relative; /* Siyahının bu inputa yapışması üçün vacibdir */
    min-width: 200px; /* Ən azı bu qədər olsun ki, çox kiçilməsin */
}

/* Inputun özünün tam genişlikdə olması */
.hotel-entry input.hotel_otelAdi {
    width: 100% !important; /* Məcburi genişlik */
    box-sizing: border-box;
}

/* Qiymət inputunu daha yığcam edirik */
.hotel-entry input.hotel-price-input {
    width: 100px !important; /* Sabit en */
    flex-shrink: 0; /* Sıxılmasın */
}

/* Silmə düyməsi */
.remove-hotel-btn {
    flex-shrink: 0;
}

/* 3. Açılan Siyahı (Autocomplete List) Dizaynı */
.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-top: none;
    z-index: 9999; /* Digər elementlərin üstündə qalması üçün */
    
    /* Inputun tam aşağısında və eyni endə olması üçün */
    top: 100%; 
    left: 0; 
    right: 0;
    
    background-color: #ffffff;
    max-height: 250px; /* Siyahı çox uzundursa scroll olsun */
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); /* Kölgə effekti */
}

/* Siyahıdakı hər bir otel adı */
.autocomplete-items div {
    padding: 12px 15px;
    cursor: pointer;
    background-color: #fff; 
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Siçan üzərinə gələndə */
.autocomplete-items div:hover {
    background-color: #e9f5ff; /* Açıq mavi fon */
    color: #007bff;
}

/* Klaviatura ilə seçiləndə */
.autocomplete-active {
    background-color: #007bff !important; 
    color: #ffffff !important; 
}