/* ===== HotelCompare - Global Styles ===== */
/* Design Theme: Dark Modern Dashboard */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* ===== CSS Variables ===== */
:root {
    --primary: #137fec;
    --primary-hover: #0f6bd0;
    --primary-light: rgba(19, 127, 236, 0.1);
    --primary-shadow: rgba(19, 127, 236, 0.2);
    
    --bg-dark: #101922;
    --bg-dark-secondary: #111a22;
    --surface-dark: #192633;
    --surface-dark-lighter: #233648;
    --surface-dark-hover: #1c2836;
    
    --border-dark: #324d67;
    --border-dark-secondary: #233648;
    
    --text-primary: #ffffff;
    --text-secondary: #92adc9;
    --text-muted: #6b7c8f;
    
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.1);
    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.1);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;
    --transition-slow: 300ms ease;
}

/* ===== Base Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-dark-lighter);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-dark);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    color: var(--text-secondary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

/* ===== Material Symbols ===== */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

.material-symbols-outlined.filled {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ===== Layout Components ===== */
.app-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: 280px;
    min-width: 280px;
    height: 100vh;
    background: var(--bg-dark-secondary);
    border-right: 1px solid var(--border-dark-secondary);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 50;
}

.sidebar-header {
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--border-dark-secondary);
    gap: 0.75rem;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
}

.sidebar-brand-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sidebar-brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sidebar-nav {
    flex: 1;
    min-height: 0; /* Important for nested flex scrolling */
    padding: 1rem;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: 0.25rem;
    text-decoration: none;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--surface-dark-lighter);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.nav-item .material-symbols-outlined {
    font-size: 20px;
}

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 1rem 1rem 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border-dark-secondary);
}

/* Background Tasks Section */
.sidebar-tasks {
    padding: 1rem;
    border-top: 1px solid var(--border-dark-secondary);
    transition: padding var(--transition-fast);
}

.sidebar-tasks.collapsed {
    padding: 0.5rem 1rem;
}

.sidebar-tasks-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    padding: 0.5rem;
    margin: -0.5rem -0.5rem 0.5rem;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.sidebar-tasks-header:hover {
    background: var(--surface-dark-lighter);
}

.sidebar-tasks.collapsed .sidebar-tasks-header {
    margin-bottom: 0;
}

.tasks-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-icon {
    font-size: 20px;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.sidebar-tasks-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Task List Actions */
.task-list-actions {
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: center;
}

.task-toggle-all {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.task-toggle-all:hover {
    color: var(--primary);
    background: var(--surface-dark-lighter);
}

.tasks-count {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.75rem;
}

/* Task Item - Clickable */
.task-item {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    background: var(--surface-dark);
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.task-item.clickable {
    cursor: pointer;
}

.task-item.clickable:hover {
    border-color: var(--border-dark-secondary);
    background: var(--surface-dark-lighter);
}

.task-item.selected {
    border-color: var(--primary);
    background: rgba(19, 127, 236, 0.1);
}

.task-item.task-completed {
    opacity: 0.85;
}

.task-item.task-failed {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.task-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.375rem;
}

.task-item-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
}

.task-item-progress {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

.task-item-hotels {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--success);
    flex-shrink: 0;
}

.task-progress-bar {
    height: 4px;
    background: var(--surface-dark-lighter);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.375rem;
}

.task-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.task-item-time {
    font-size: 0.6875rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-item-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.task-item-done {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    opacity: 0.7;
}

.task-done-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--success);
}

/* User Profile */
.sidebar-user {
    padding: 1rem;
    border-top: 1px solid var(--border-dark-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: white;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.logout-btn {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-btn:hover {
    background: var(--danger-light);
    color: var(--danger);
}

.logout-btn .material-symbols-outlined {
    font-size: 20px;
}

/* App Loading State */
.app-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-dark);
    color: var(--text-secondary);
    gap: 1rem;
}

.loading-spinner {
    font-size: 2rem;
    color: var(--primary);
}

.loading-spinner .material-symbols-outlined {
    font-size: 3rem;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    background: var(--bg-dark);
}

.main-content-full {
    margin-left: 0;
}

.page-content {
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* ===== Form Components ===== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-label-small {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.form-input {
    height: 48px;
    padding: 0 1rem;
    background: var(--bg-dark-secondary);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

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

.form-input-icon {
    position: relative;
}

.form-input-icon .material-symbols-outlined {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 20px;
}

.form-input-icon .form-input {
    padding-left: 2.75rem;
}

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

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-dark);
    background: var(--bg-dark-secondary);
    cursor: pointer;
}

/* ===== Button Components ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1.5rem;
    height: 48px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px var(--primary-shadow);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
    transform: scale(0.98);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-dark);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 0.5rem;
    height: auto;
}

.btn-ghost:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.btn-sm {
    height: 36px;
    padding: 0 1rem;
    font-size: 0.8125rem;
}

.btn-lg {
    height: 56px;
    padding: 0 2rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* ===== Card Components ===== */
.card {
    background: var(--surface-dark);
    border: 1px solid var(--border-dark-secondary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-dark-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-dark-secondary);
    background: rgba(255, 255, 255, 0.02);
}

/* ===== Stat Cards ===== */
.stat-card {
    background: var(--surface-dark-lighter);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.stat-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card-icon.blue {
    background: var(--primary-light);
    color: var(--primary);
}

.stat-card-icon.green {
    background: var(--success-light);
    color: var(--success);
}

.stat-card-icon.orange {
    background: var(--warning-light);
    color: var(--warning);
}

.stat-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.stat-card-badge.positive {
    background: var(--success-light);
    color: var(--success);
}

.stat-card-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.stat-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-card-value small {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* ===== Table Components ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--bg-dark-secondary);
}

.data-table th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-dark-secondary);
}

.data-table th.text-center {
    text-align: center;
}

.data-table th.text-right {
    text-align: right;
}

.data-table th.col-primary {
    color: var(--primary);
}

.data-table tbody tr {
    border-bottom: 1px solid var(--border-dark-secondary);
    transition: background-color var(--transition-fast);
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.data-table td {
    padding: 1rem;
    vertical-align: top;
}

.data-table td.text-center {
    text-align: center;
}

.data-table td.text-right {
    text-align: right;
}

/* ===== Badge Components ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background: var(--success-light);
    color: var(--success);
}

.badge-warning {
    background: var(--warning-light);
    color: var(--warning);
}

.badge-danger {
    background: var(--danger-light);
    color: var(--danger);
}

.badge-neutral {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary);
}

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

/* Code badge for inline code display */
.code-badge {
    font-family: 'Fira Code', 'SF Mono', Monaco, 'Inconsolata', 'Fira Mono', 'Droid Sans Mono', 'Source Code Pro', monospace;
    font-size: 0.8125rem;
    padding: 0.25rem 0.5rem;
    background: var(--surface-dark-lighter);
    border: 1px solid var(--border-dark-secondary);
    border-radius: var(--radius-sm);
    color: #60a5fa;
}

/* ===== Price Display Components ===== */
.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.375rem 0.5rem;
    border-radius: var(--radius-md);
}

.price-row.highlight {
    background: var(--primary-light);
    border: 1px solid rgba(19, 127, 236, 0.2);
}

.price-row.rival-best {
    background: rgba(255, 255, 255, 0.05);
}

.price-label {
    font-size: 0.75rem;
    font-weight: 600;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-label.primary {
    color: var(--primary);
}

.price-label.muted {
    color: var(--text-muted);
}

.price-value {
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.price-value.primary {
    color: var(--primary);
    font-weight: 700;
}

.price-value.muted {
    color: var(--text-secondary);
}

/* ===== Difference Badges ===== */
.diff-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.diff-badge.positive {
    background: var(--success-light);
    color: var(--success);
}

.diff-badge.negative {
    background: var(--danger-light);
    color: var(--danger);
}

.diff-badge.neutral {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

/* ===== Code/Monospace ===== */
code {
    padding: 0.25rem 0.5rem;
    background: var(--bg-dark-secondary);
    border: 1px solid var(--border-dark-secondary);
    border-radius: var(--radius-sm);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ===== Search Input ===== */
.search-box {
    position: relative;
    width: 100%;
}

.search-box .material-symbols-outlined {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 20px;
    transition: color var(--transition-fast);
}

.search-box input {
    width: 100%;
    height: 40px;
    padding: 0 1rem 0 2.5rem;
    background: var(--surface-dark);
    border: none;
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-light);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box:focus-within .material-symbols-outlined {
    color: var(--primary);
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-info {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pagination-info strong {
    color: var(--text-primary);
}

.pagination-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-dark-secondary);
    border-radius: var(--radius-lg);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--surface-dark-lighter);
    color: var(--text-primary);
}

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

/* ===== Toggle Switch ===== */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-dark-secondary);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
}

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

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb-item {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.breadcrumb-item.active {
    color: var(--text-primary);
}

.breadcrumb-item:not(.active):hover {
    color: var(--primary);
}

.breadcrumb-separator {
    color: var(--text-muted);
    font-size: 16px;
}

/* ===== Hotel Item ===== */
.hotel-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hotel-image {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    background-color: var(--surface-dark-lighter);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.hotel-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.hotel-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.hotel-location {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.hotel-location .material-symbols-outlined {
    font-size: 12px;
}

/* ===== Agency Item ===== */
.agency-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.agency-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.agency-avatar.blue { background: var(--primary-light); color: var(--primary); }
.agency-avatar.purple { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
.agency-avatar.orange { background: var(--warning-light); color: var(--warning); }
.agency-avatar.pink { background: rgba(236, 72, 153, 0.2); color: #f472b6; }
.agency-avatar.green { background: var(--success-light); color: var(--success); }

.agency-info {
    display: flex;
    flex-direction: column;
}

.agency-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.agency-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== Action Buttons ===== */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.data-table tbody tr:hover .action-buttons {
    opacity: 1;
}

.action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.action-btn:hover.edit {
    color: var(--primary);
}

.action-btn:hover.delete {
    color: var(--danger);
}

.action-btn .material-symbols-outlined {
    font-size: 18px;
}

/* ===== Link Button ===== */
.link-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: color var(--transition-fast);
}

.link-btn:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* ===== Blazor Validation ===== */
h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--success);
}

.invalid {
    outline: 1px solid var(--danger);
}

.validation-message {
    color: var(--danger);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.blazor-error-boundary {
    background: var(--danger);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .page-content {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* ===== Animations ===== */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

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

.animate-fadeIn {
    animation: fadeIn 0.3s ease;
}

/* ===== Selection ===== */
::selection {
    background: var(--primary);
    color: white;
}