/* ============================================
   HotelPro - Components
   Reusable UI Components
   ============================================ */

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--text-sm);
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn:hover::before { opacity: 1; }

.btn:active { transform: scale(0.97); }

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn:disabled::before { display: none; }

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-on-accent);
    box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.3);
}

.btn-primary:hover {
    box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.4);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-surface-hover);
    border-color: var(--accent);
}

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

.btn-danger:hover {
    filter: brightness(1.15);
}

.btn-success {
    background: var(--success);
    color: var(--bg-primary);
}

.btn-success:hover {
    filter: brightness(1.15);
}

.btn-warning {
    background: var(--warning);
    color: var(--bg-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

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

.btn-outline:hover {
    background: rgba(var(--accent-rgb), 0.1);
}

.btn-sm {
    padding: 6px 12px;
    font-size: var(--text-xs);
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 14px 28px;
    font-size: var(--text-base);
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-md);
}

.btn-icon.btn-sm {
    width: 28px;
    height: 28px;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-sm svg {
    width: 14px;
    height: 14px;
}

.btn-group {
    display: flex;
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.btn-group .btn {
    border-radius: 0;
    border: none;
}

.btn-group .btn:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.btn-group .btn:last-child { border-radius: 0 var(--radius-md) var(--radius-md) 0; }

/* ============================================
   Form Elements
   ============================================ */

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.form-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.form-label .required {
    color: var(--danger);
    margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea,
.input-text,
.input-select,
.input-textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
    outline: none;
    color-scheme: dark; /* Ensures calendar icon and native date pickers are in dark mode */
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover,
.input-text:hover,
.input-select:hover,
.input-textarea:hover {
    border-color: var(--border-light);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.input-text:focus,
.input-select:focus,
.input-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder,
.input-text::placeholder,
.input-textarea::placeholder {
    color: var(--text-muted);
}

.form-input.error,
.form-select.error,
.input-text.error,
.input-select.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px var(--danger-bg);
}

.form-error {
    font-size: var(--text-xs);
    color: var(--danger);
}

.form-hint {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.form-select,
.input-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236a6a82' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-textarea,
.input-textarea {
    min-height: 80px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.form-row-2 { grid-template-columns: repeat(2, 1fr); }
.form-row-3 { grid-template-columns: repeat(3, 1fr); }
.form-row-4 { grid-template-columns: repeat(4, 1fr); }

/* Input with button */
.input-group {
    display: flex;
    gap: 0;
}

.input-group .form-input {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    border-right: none;
}

.input-group .btn {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    white-space: nowrap;
}

/* Input with icon */
.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper .form-input {
    padding-left: 40px;
}

.input-icon-wrapper .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xs);
    background: var(--bg-input);
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.form-check input[type="radio"] {
    border-radius: 50%;
}

.form-check input[type="checkbox"]:checked,
.form-check input[type="radio"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.form-check input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: 2px solid var(--bg-primary);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.form-check input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bg-primary);
}

.form-check:hover input {
    border-color: var(--accent);
}

/* Toggle Switch */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: var(--text-sm);
}

.toggle-switch input {
    appearance: none;
    width: 44px;
    height: 24px;
    background: var(--border-light);
    border-radius: var(--radius-full);
    position: relative;
    cursor: pointer;
    transition: background var(--transition-fast);
    flex-shrink: 0;
}

.toggle-switch input::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: transform var(--transition-fast);
}

.toggle-switch input:checked {
    background: var(--accent);
}

.toggle-switch input:checked::after {
    transform: translateX(20px);
}

/* Toggle Tabs (PF/PJ toggle etc) */
.toggle-tabs {
    display: inline-flex;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 3px;
    gap: 2px;
}

.toggle-tab {
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    background: none;
}

.toggle-tab.active {
    background: var(--accent-gradient);
    color: var(--text-on-accent);
    box-shadow: var(--shadow-sm);
}

.toggle-tab:not(.active):hover {
    color: var(--text-primary);
    background: var(--bg-surface-hover);
}

/* ============================================
   Cards
   ============================================ */

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition);
}

.card:hover {
    border-color: var(--border-light);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* Stat Cards */
.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.stat-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-icon.gold { background: rgba(var(--accent-rgb), 0.15); color: var(--accent); }
.stat-icon.green { background: var(--success-bg); color: var(--success); }
.stat-icon.blue { background: var(--info-bg); color: var(--info); }
.stat-icon.red { background: var(--danger-bg); color: var(--danger); }
.stat-icon.yellow { background: var(--warning-bg); color: var(--warning); }

.stat-info {
    flex: 1;
}

.stat-value {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* ============================================
   Tables
   ============================================ */

.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.table thead {
    background: var(--bg-elevated);
    position: sticky;
    top: 0;
    z-index: 1;
}

.table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    vertical-align: middle;
}

.table tbody tr {
    transition: background var(--transition-fast);
}

.table tbody tr:hover {
    background: var(--bg-surface-hover);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table .actions {
    display: flex;
    gap: var(--space-xs);
    justify-content: flex-end;
}

/* ============================================
   Badges
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    white-space: nowrap;
    line-height: 1;
}

.badge-gold { background: rgba(var(--accent-rgb), 0.15); color: var(--accent); }
.badge-green { background: var(--success-bg); color: var(--success); border: 1px solid rgba(74,222,128,0.2); }
.badge-blue { background: var(--info-bg); color: var(--info); border: 1px solid rgba(96,165,250,0.2); }
.badge-yellow { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(251,191,36,0.2); }
.badge-red { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(248,113,113,0.2); }
.badge-orange { background: rgba(251,146,60,0.15); color: #fb923c; border: 1px solid rgba(251,146,60,0.2); }
.badge-gray { background: rgba(156,163,175,0.15); color: #9ca3af; border: 1px solid rgba(156,163,175,0.2); }

.badge-dot::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* ============================================
   Modals
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal-backdrop);
    padding: var(--space-lg);
    animation: fadeInOverlay 0.2s ease;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
    z-index: var(--z-modal);
}

.modal-lg, .modal-large { max-width: 960px; width: 95vw; }
.modal-xl, .modal-wide { max-width: 1180px; width: 95vw; }
.modal-full { max-width: 96vw; width: 96vw; }

@media (min-width: 1024px) {
    .modal-xl, .modal-wide {
        max-width: 1180px;
        width: 92vw;
    }
    .modal-lg, .modal-large {
        max-width: 980px;
        width: 90vw;
    }
}

@media (min-width: 1400px) {
    .modal-xl, .modal-wide {
        max-width: 1260px;
        width: 86vw;
    }
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.modal-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: var(--space-lg);
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

/* ============================================
   Confirm Dialog
   ============================================ */

.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: calc(var(--z-modal) + 10);
    padding: var(--space-lg);
}

.confirm-dialog {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

.confirm-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.confirm-icon.warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.confirm-icon.danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.confirm-icon svg {
    width: 28px;
    height: 28px;
}

.confirm-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.confirm-message {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-lg);
    line-height: var(--leading-relaxed);
}

.confirm-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
}

/* ============================================
   Toast Notifications
   ============================================ */

.toast-container {
    position: fixed;
    top: var(--space-lg);
    right: var(--space-lg);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    pointer-events: none;
    max-width: 400px;
}

.toast {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    box-shadow: var(--shadow-lg);
    pointer-events: all;
    animation: toastSlideIn 0.3s ease, toastFadeOut 0.3s ease forwards;
    animation-delay: 0s, var(--toast-duration, 4s);
    font-size: var(--text-sm);
}

.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-warning { border-left: 3px solid var(--warning); }
.toast-info { border-left: 3px solid var(--info); }

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--danger); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info .toast-icon { color: var(--info); }

.toast-close {
    margin-left: auto;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    cursor: pointer;
    flex-shrink: 0;
}

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

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastFadeOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100px); }
}

/* ============================================
   Tabs
   ============================================ */

.tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    gap: 0;
    overflow-x: auto;
    margin-bottom: var(--space-lg);
}

.tab {
    padding: 12px 20px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
    white-space: nowrap;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.tab:hover {
    color: var(--text-secondary);
}

.tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ============================================
   Pagination
   ============================================ */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    margin-top: var(--space-lg);
}

.pagination-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--bg-surface-hover);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.pagination-btn.active {
    background: var(--accent-gradient);
    color: var(--text-on-accent);
    border-color: transparent;
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-info {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 0 var(--space-sm);
}

/* ============================================
   Page Header
   ============================================ */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.page-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
}

.page-subtitle {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.page-actions {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    flex-wrap: wrap;
}

/* ============================================
   Search / Filter Bar
   ============================================ */

.filter-bar {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 240px;
    max-width: 400px;
}

.search-input-wrapper .form-input {
    padding-left: 40px;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

/* ============================================
   Empty State
   ============================================ */

.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    color: var(--text-muted);
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    opacity: 0.3;
}

.empty-state-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.empty-state-text {
    font-size: var(--text-sm);
    max-width: 400px;
    margin: 0 auto var(--space-lg);
    line-height: var(--leading-relaxed);
}

/* ============================================
   Dropdown Menu
   ============================================ */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--space-xs);
    min-width: 200px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-dropdown);
    padding: var(--space-xs);
    display: none;
    animation: dropdownFade 0.15s ease;
}

.dropdown-menu.show {
    display: block;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.dropdown-item.danger {
    color: var(--danger);
}

.dropdown-item.danger:hover {
    background: var(--danger-bg);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: var(--space-xs) 0;
}

.dropdown-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ============================================
   Tooltip
   ============================================ */

[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: var(--z-tooltip);
}

[data-tooltip]:hover::after {
    opacity: 1;
}

/* ============================================
   Image Upload
   ============================================ */

.image-upload {
    width: 120px;
    height: 120px;
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    cursor: pointer;
    transition: all var(--transition-fast);
    overflow: hidden;
    position: relative;
    color: var(--text-muted);
    font-size: var(--text-xs);
}

.image-upload:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.image-upload img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-upload input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.image-upload svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   Section Divider
   ============================================ */

.section-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
    color: var(--text-muted);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ============================================
   Summary Row (for financial/checkout)
   ============================================ */

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    font-size: var(--text-sm);
}

.summary-row.total {
    border-top: 2px solid var(--border);
    margin-top: var(--space-sm);
    padding-top: var(--space-md);
    font-size: var(--text-lg);
    font-weight: 700;
}

.summary-row.total .summary-value {
    color: var(--accent);
}

.summary-label {
    color: var(--text-secondary);
}

.summary-value {
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

/* ============================================
   Responsive overrides for components
   ============================================ */

@media (max-width: 768px) {
    .form-row-2, .form-row-3, .form-row-4 {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .page-actions {
        justify-content: stretch;
    }

    .page-actions .btn {
        flex: 1;
    }

    .filter-bar {
        flex-direction: column;
    }

    .search-input-wrapper {
        max-width: none;
    }

    .modal-container {
        margin: 8px !important;
        width: calc(100% - 16px) !important;
        max-width: 100% !important;
        max-height: 94vh;
        border-radius: var(--radius-lg);
    }
    .modal-header {
        padding: 12px 14px;
    }
    .modal-title {
        font-size: 1.05rem;
    }
    .modal-body {
        padding: 12px 14px;
    }
    .modal-footer {
        padding: 12px 14px;
        flex-direction: column-reverse;
        gap: 8px;
    }
    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }

    .toast-container {
        left: var(--space-md);
        right: var(--space-md);
        max-width: none;
    }
}

/* ==========================================================================
   CONEXÃO & MONITORAMENTO DE STATUS (ALERTAS)
   ========================================================================== */

.connection-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    cursor: default;
    border: 1px solid transparent;
}

.connection-status-badge.status-online {
    background-color: var(--success-bg);
    color: var(--success);
    border-color: rgba(74, 222, 128, 0.15);
}

.connection-status-badge.status-offline {
    background-color: var(--danger-bg);
    color: var(--danger);
    border-color: rgba(248, 113, 113, 0.25);
    animation: pulse-border-danger 2s infinite ease-in-out;
}

.connection-status-badge.status-session-invalid {
    background-color: var(--warning-bg);
    color: var(--warning);
    border-color: rgba(251, 191, 36, 0.25);
    animation: pulse-border-warning 2s infinite ease-in-out;
}

.connection-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-online .connection-status-dot {
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: pulse-glow-success 2s infinite ease-in-out;
}

.status-offline .connection-status-dot {
    background-color: var(--danger);
    box-shadow: 0 0 8px var(--danger);
    animation: pulse-glow-danger 1s infinite ease-in-out;
}

.status-session-invalid .connection-status-dot {
    background-color: var(--warning);
    box-shadow: 0 0 8px var(--warning);
    animation: pulse-glow-warning 1.5s infinite ease-in-out;
}

/* Animações de Pulsação */
@keyframes pulse-glow-success {
    0%, 100% { opacity: 0.6; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); box-shadow: 0 0 12px var(--success); }
}

@keyframes pulse-glow-danger {
    0%, 100% { opacity: 0.6; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 16px var(--danger); }
}

@keyframes pulse-glow-warning {
    0%, 100% { opacity: 0.6; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.15); box-shadow: 0 0 14px var(--warning); }
}

@keyframes pulse-border-danger {
    0%, 100% { border-color: rgba(248, 113, 113, 0.2); }
    50% { border-color: rgba(248, 113, 113, 0.6); box-shadow: 0 0 10px rgba(248, 113, 113, 0.1); }
}

@keyframes pulse-border-warning {
    0%, 100% { border-color: rgba(251, 191, 36, 0.2); }
    50% { border-color: rgba(251, 191, 36, 0.6); box-shadow: 0 0 10px rgba(251, 191, 36, 0.1); }
}

/* Banner Flutuante de Alerta */
.connection-status-banner {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(20, 10, 10, 0.9);
    border: 1px solid var(--danger);
    color: #ffd8d8;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(248, 113, 113, 0.2);
    z-index: 10000;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    font-family: var(--font-body);
    animation: slide-in-right 0.3s ease-out;
}

.connection-status-banner.warning-session {
    background: rgba(20, 18, 10, 0.9);
    border-color: var(--warning);
    color: #ffeed0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(251, 191, 36, 0.2);
}

.connection-status-banner-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: var(--font-display);
}

.connection-status-banner-body {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

.connection-status-banner-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.connection-status-banner-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.connection-status-banner-btn.btn-action {
    background: var(--danger);
    color: #fff;
}

.connection-status-banner-btn.btn-action:hover {
    background: #ef4444;
}

.connection-status-banner.warning-session .connection-status-banner-btn.btn-action {
    background: var(--warning);
    color: #1a1a2e;
}

.connection-status-banner.warning-session .connection-status-banner-btn.btn-action:hover {
    background: #f59e0b;
}

.connection-status-banner-btn.btn-dismiss {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
}

.connection-status-banner-btn.btn-dismiss:hover {
    background: rgba(255,255,255,0.15);
}

@keyframes slide-in-right {
    from { transform: translateX(110%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   PORTAL DO HÓSPEDE (GUEST PORTAL MOBILE-FIRST STYLES)
   ========================================================================== */

.guest-portal-wrapper {
    position: fixed;
    inset: 0;
    z-index: 99999;
    overflow-y: auto;
    background: #0f111a;
}

.portal-nav-btn {
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    color: #94a3b8;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.portal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.portal-nav-btn.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.08) 100%);
    border-color: #d4af37;
    color: #d4af37;
}

.portal-badge-pill {
    background: #d4af37;
    color: #111;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 10px;
    line-height: 1.2;
}

.portal-tab-pill {
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.portal-tab-pill.active {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    color: #d4af37;
    font-weight: 700;
}

.portal-category-pill {
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.portal-category-pill.active {
    background: #d4af37;
    border-color: #d4af37;
    color: #111;
    font-weight: 800;
}

.portal-service-card {
    background: #161926;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.portal-service-card:hover {
    background: #1e2235;
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.portal-service-card:active {
    transform: scale(0.97);
}

.portal-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
    font-family: inherit;
    resize: none;
    transition: border-color 0.2s;
}

.portal-input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}

/* Pulsing Badge on Frontdesk Room Card */
@keyframes alert-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.85; }
    100% { transform: scale(1); opacity: 1; }
}

.guest-alert-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    margin-top: 5px;
    cursor: pointer;
    animation: alert-pulse 2s infinite ease-in-out;
}

.guest-alert-pill.housekeeping {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #f87171;
}

.guest-alert-pill.roomservice {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #fbbf24;
}

.guest-alert-pill.message {
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.45);
    color: #60a5fa;
}

/* ==========================================================================
   ROOM DETAILS MODAL - AÇÕES RÁPIDAS & NAVEGAÇÃO EM ABAS (RESPONSIVO)
   ========================================================================== */
.room-quick-actions-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
}

.room-action-card-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 8px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    min-height: 58px;
    position: relative;
    user-select: none;
}

.room-action-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.room-action-card-btn .btn-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.room-action-card-btn .btn-title {
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.room-action-card-btn.action-checkout {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.28) 100%);
    border-color: rgba(16, 185, 129, 0.5);
    color: #10b981;
}
.room-action-card-btn.action-checkout:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border-color: #10b981;
}

.room-action-card-btn.action-waiter {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(109, 40, 217, 0.28) 100%);
    border-color: rgba(139, 92, 246, 0.5);
    color: #c4b5fd;
}
.room-action-card-btn.action-waiter:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: #fff;
    border-color: #8b5cf6;
}

.room-action-card-btn.action-guestlink {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(2, 132, 199, 0.28) 100%);
    border-color: rgba(14, 165, 233, 0.5);
    color: #7dd3fc;
}
.room-action-card-btn.action-guestlink:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff;
    border-color: #0ea5e9;
}

.room-action-card-btn.action-guesthub {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(180, 130, 20, 0.28) 100%);
    border-color: rgba(212, 175, 55, 0.5);
    color: #fbbf24;
}
.room-action-card-btn.action-guesthub:hover {
    background: linear-gradient(135deg, #d4af37 0%, #b48214 100%);
    color: #111;
    border-color: #d4af37;
}

.room-action-card-btn.action-future {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}
.room-action-card-btn.action-future:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
}

.room-action-card-btn .action-badge-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
    animation: alert-pulse 1.8s infinite;
}

/* Abas de Navegação do Quarto */
.room-modal-tab-nav {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-primary);
    padding-bottom: 10px;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.room-modal-tab-nav::-webkit-scrollbar {
    display: none;
}

.room-tab-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.room-tab-pill-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.room-tab-pill-btn.active {
    background: rgba(212, 175, 55, 0.18);
    border-color: #d4af37;
    color: #d4af37;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.room-tab-content-pane {
    display: none;
}
.room-tab-content-pane.active {
    display: block;
    animation: fadeIn 0.2s ease forwards;
}

/* Mobile Responsive para a modal do quarto */
@media (max-width: 768px) {
    .room-quick-actions-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 8px;
    }
    .room-action-card-btn {
        padding: 8px 4px;
        min-height: 52px;
    }
    .room-action-card-btn .btn-title {
        font-size: 0.68rem;
    }
    .room-tab-pill-btn {
        padding: 6px 10px;
        font-size: 0.74rem;
    }
    .room-details-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* Desktop & Computador: layout amplo, arejado e elegante para a modal do quarto */
@media (min-width: 992px) {
    .room-quick-actions-bar {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
        padding: 12px 14px;
    }
    .room-action-card-btn {
        min-height: 64px;
        padding: 12px 10px;
    }
    .room-action-card-btn .btn-title {
        font-size: 0.8rem;
    }
    .room-modal-tab-nav {
        gap: 10px;
        flex-wrap: wrap;
    }
    .room-tab-pill-btn {
        padding: 9px 18px;
        font-size: 0.84rem;
    }
    .room-details-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px !important;
    }
}

/* ==========================================================================
   DROPDOWN E SISTEMA DE NOTIFICAÇÕES (LIDAS VS NÃO LIDAS)
   ========================================================================== */

.notifications-bell-btn:hover {
    background-color: var(--bg-hover, rgba(255, 255, 255, 0.08)) !important;
    color: var(--accent-primary, #d4a574) !important;
}

.notifications-dropdown {
    animation: fadeInDropdown 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-primary, #353555);
    background: rgba(255, 255, 255, 0.02);
}

.notif-dropdown-header h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.notif-dropdown-filter-bar {
    display: flex;
    padding: 8px 12px;
    gap: 8px;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid var(--border-primary, #353555);
}

.notif-filter-tab {
    flex: 1;
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.notif-filter-tab.active {
    background: var(--bg-primary, #131322);
    border-color: var(--border-primary, #353555);
    color: var(--text-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.notif-dropdown-list {
    max-height: 380px;
    overflow-y: auto;
    padding: 6px 0;
    display: flex;
    flex-direction: column;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: background 0.15s ease;
    position: relative;
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.notif-item.unread {
    background: rgba(59, 130, 246, 0.05);
    border-left: 3px solid #3b82f6;
}

.notif-item.unread:hover {
    background: rgba(59, 130, 246, 0.09);
}

.notif-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
}

.notif-item.unread .notif-icon-box {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.notif-body {
    flex: 1;
    min-width: 0;
}

.notif-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}

.notif-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-item.unread .notif-title {
    font-weight: 700;
    color: #93c5fd;
}

.notif-time {
    font-size: 0.68rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.notif-text {
    font-size: 0.74rem;
    color: var(--text-secondary);
    line-height: 1.35;
    word-break: break-word;
    margin: 0;
}

.notif-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #3b82f6;
    box-shadow: 0 0 6px #3b82f6;
    flex-shrink: 0;
    margin-top: 6px;
}

.notif-dropdown-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-top: 1px solid var(--border-primary, #353555);
    background: rgba(0, 0, 0, 0.15);
    font-size: 0.75rem;
}

/* Usabilidade & Destaques de Alertas do Sino */
.notif-action-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent, #d4a574);
    background: rgba(212, 165, 116, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.28);
    border-radius: 6px;
    padding: 3px 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.notif-item:hover .notif-action-hint {
    background: var(--accent, #d4a574);
    color: #1a1a2e;
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.35);
}

@keyframes pulseHighlightReq {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 165, 116, 0.8);
        border-color: var(--accent, #d4a574);
    }
    50% {
        box-shadow: 0 0 22px 6px rgba(245, 158, 11, 0.55);
        border-color: #f59e0b;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 165, 116, 0);
        border-color: var(--accent, #d4a574);
    }
}

.highlight-target-request {
    border: 2px solid var(--accent, #d4a574) !important;
    background: rgba(212, 165, 116, 0.08) !important;
    animation: pulseHighlightReq 2s ease-in-out 3;
}

/* ==========================================================================
   PORTAL DO HÓSPEDE - MODAIS E CONFIRMAÇÕES PREMIUM (MOBILE & DESKTOP)
   ========================================================================== */

@keyframes portalModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes portalModalCardPop {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(14px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.guest-portal-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 13, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: portalModalFadeIn 0.22s ease-out forwards;
}

.guest-portal-modal-card {
    background: linear-gradient(165deg, #191c2c 0%, #10121e 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(212, 175, 55, 0.25);
    border-radius: 24px;
    padding: 28px 24px 22px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
    box-sizing: border-box;
    animation: portalModalCardPop 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.guest-portal-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    padding: 0;
}

.guest-portal-modal-close:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    transform: scale(1.06);
}

.guest-portal-modal-icon {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.guest-portal-modal-icon.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0.08) 100%);
    border: 1.5px solid #10b981;
    color: #10b981;
}

.guest-portal-modal-icon.order,
.guest-portal-modal-icon.gold {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.28) 0%, rgba(212, 175, 55, 0.08) 100%);
    border: 1.5px solid #d4af37;
    color: #d4af37;
}

.guest-portal-modal-icon.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0.08) 100%);
    border: 1.5px solid #f59e0b;
    color: #f59e0b;
}

.guest-portal-modal-icon.danger,
.guest-portal-modal-icon.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(239, 68, 68, 0.08) 100%);
    border: 1.5px solid #ef4444;
    color: #ef4444;
}

.guest-portal-modal-icon.info {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(99, 102, 241, 0.08) 100%);
    border: 1.5px solid #6366f1;
    color: #818cf8;
}

.guest-portal-modal-title {
    font-family: 'Outfit', -apple-system, sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.guest-portal-modal-message {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.55;
    margin: 0 0 18px;
}

.guest-portal-modal-items {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 18px;
    text-align: left;
    max-height: 190px;
    overflow-y: auto;
}

.guest-portal-modal-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.82rem;
}

.guest-portal-modal-item-row:last-child {
    border-bottom: none;
}

.guest-portal-modal-item-desc {
    color: #f1f5f9;
    font-weight: 600;
}

.guest-portal-modal-item-qty {
    color: #d4af37;
    font-weight: 800;
    margin-right: 6px;
}

.guest-portal-modal-item-price {
    color: #94a3b8;
    font-size: 0.8rem;
    font-family: monospace;
}

.guest-portal-modal-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    margin-top: 8px;
    border-top: 1px dashed rgba(212, 175, 55, 0.4);
    font-weight: 800;
    font-size: 0.92rem;
    color: #fff;
}

.guest-portal-modal-notes {
    background: rgba(212, 175, 55, 0.08);
    border: 1px dashed rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.78rem;
    color: #cbd5e1;
    text-align: left;
    margin-bottom: 18px;
}

.guest-portal-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-portal-modal-cancel {
    flex: 1;
    min-width: 120px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-portal-modal-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-portal-modal-confirm {
    flex: 1;
    min-width: 140px;
    padding: 12px 18px;
    border-radius: 14px;
    border: none;
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-portal-modal-confirm.order,
.btn-portal-modal-confirm.gold {
    background: linear-gradient(135deg, #d4af37 0%, #b8972e 100%);
    color: #111;
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);
}

.btn-portal-modal-confirm.order:hover,
.btn-portal-modal-confirm.gold:hover {
    background: linear-gradient(135deg, #dfbc45 0%, #c4a337 100%);
    transform: translateY(-1px);
}

.btn-portal-modal-confirm.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
}

.btn-portal-modal-confirm.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #111;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
}

.btn-portal-modal-confirm.danger,
.btn-portal-modal-confirm.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(239, 68, 68, 0.35);
}

.btn-portal-modal-confirm.info {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.35);
}


