/* ========================================
Modern Hotel ERP System CSS
Professional, Touch-Friendly Design
======================================== */

:root {
    --primary: #1e3a5f;
    --primary-light: #2d5a87;
    --primary-dark: #0f1f33;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius: 8px;
    --radius-lg: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    background: var(--gray-100);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* App Header */
.app-header {
    height: 52px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: var(--shadow-md);
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.brand h1 {
    font-size: 15px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

.brand span {
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 1px;
}

.header-center {
    display: flex;
    align-items: center;
}

.branch-select {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.branch-select:hover {
    background: rgba(255,255,255,0.2);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: white;
}

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

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

.sync-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
}

.header-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background 0.2s;
}

.header-btn:hover {
    background: rgba(255,255,255,0.2);
}

.header-btn .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: var(--danger);
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 12px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.user-role {
    color: rgba(255,255,255,0.6);
    font-size: 10px;
}

.clock {
    color: white;
    font-size: 12px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* Primary Navigation */
.primary-nav {
    height: 46px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 4px;
    overflow-x: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-item:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.nav-item.active {
    background: var(--accent);
    color: white;
}

.nav-item i {
    font-size: 14px;
}

/* Quick Action Toolbar */
.quick-toolbar {
    height: 84px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
    overflow-x: auto;
}

.quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    padding: 8px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s;
}

.quick-btn:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.quick-btn:active {
    transform: scale(0.95);
}

.quick-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 4px;
    box-shadow: var(--shadow-sm);
}

.quick-icon.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; }
.quick-icon.green { background: linear-gradient(135deg, #10b981, #059669); color: white; }
.quick-icon.orange { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }
.quick-icon.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: white; }
.quick-icon.teal { background: linear-gradient(135deg, #14b8a6, #0d9488); color: white; }
.quick-icon.red { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; }
.quick-icon.dark { background: linear-gradient(135deg, #374151, #1f2937); color: white; }
.quick-icon.pink { background: linear-gradient(135deg, #ec4899, #db2777); color: white; }
.quick-icon.lime { background: linear-gradient(135deg, #84cc16, #65a30d); color: white; }
.quick-icon.indigo { background: linear-gradient(135deg, #6366f1, #4f46e5); color: white; }
.quick-icon.gray { background: linear-gradient(135deg, #6b7280, #4b5563); color: white; }

.quick-btn span {
    font-size: 10px;
    font-weight: 500;
    color: var(--gray-600);
}

.quick-btn.logout span {
    color: var(--danger);
}

/* Main Content - 3 Columns */
.main-content {
    flex: 1;
    display: grid;
    grid-template-columns: 29% 42% 29%;
    gap: 12px;
    padding: 12px;
    overflow: hidden;
    background: var(--gray-100);
    min-height: 0;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    min-height: 0;
}

/* Panels */
.panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.panel-header i {
    font-size: 14px;
    color: var(--accent);
}

.panel-header h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
}

.count-badge {
    margin-left: auto;
    padding: 2px 8px;
    background: var(--accent);
    color: white;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.panel-body {
    padding: 10px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.table-body {
    padding: 0;
    overflow: auto;
    flex: 1;
}

.table-body .data-table {
    min-width: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 13px;
    font-family: inherit;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 12px;
    color: var(--gray-400);
    font-size: 14px;
}

.input-wrapper input {
    padding-left: 36px;
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--gray-700);
    cursor: pointer;
}

.radio-label input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

/* Buttons */
.btn-group {
    display: flex;
    gap: 8px;
}

.btn {
    padding: 8px 12px;
    border: none;
    border-radius: var(--radius);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    min-height: 36px;
    white-space: nowrap;
}

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

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

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

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

.btn-success:hover {
    background: #059669;
}

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

.btn-outline:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

/* Search Row */
.search-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i {
    position: absolute;
    left: 12px;
    color: var(--gray-400);
}

.search-input-wrapper input {
    width: 100%;
    padding: 10px 36px 10px 36px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 13px;
    font-family: inherit;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--accent);
}

.clear-btn {
    position: absolute;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: var(--gray-200);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--gray-500);
}

.action-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

/* Operation Filters */
.operation-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
}

.filter-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--gray-100);
    border-radius: 20px;
    font-size: 11px;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-chip:hover {
    background: var(--gray-200);
}

.filter-chip.active {
    background: var(--accent);
    color: white;
}

.filter-chip input {
    display: none;
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.data-table th {
    padding: 8px 6px;
    text-align: left;
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    white-space: nowrap;
}

.data-table td {
    padding: 8px 6px;
    font-size: 11px;
    border-bottom: 1px solid var(--gray-100);
    white-space: nowrap;
}

.data-table tbody tr {
    cursor: pointer;
    transition: background 0.2s;
}

.data-table tbody tr:hover {
    background: var(--gray-50);
}

.data-table tbody tr.selected {
    background: #eff6ff;
    border-left: 3px solid var(--accent);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-badge.available { background: #d1fae5; color: #059669; }
.status-badge.occupied { background: #fef3c7; color: #d97706; }
.status-badge.reserved { background: #dbeafe; color: #2563eb; }
.status-badge.dirty { background: #fee2e2; color: #dc2626; }
.status-badge.cleaning { background: #ede9fe; color: #7c3aed; }
.status-badge.maintenance { background: var(--gray-100); color: var(--gray-600); }
.status-badge.confirmed { background: #d1fae5; color: #059669; }
.status-badge.pending { background: #fef3c7; color: #d97706; }
.status-badge.checked-in { background: #dbeafe; color: #2563eb; }

/* Column Heights - Fixed for visibility */
.left-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.left-col .availability-panel { flex: 0 0 auto; }
.left-col .rooms-panel { flex: 1; min-height: 150px; overflow: hidden; }
.left-col .status-panel { flex: 0 0 auto; max-height: 180px; }

.center-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.center-col .search-panel { flex: 0 0 auto; }
.center-col .checkin-panel { flex: 1; min-height: 200px; overflow: hidden; }

.right-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.right-col .search-panel { flex: 0 0 auto; }
.right-col .reservation-panel { flex: 1; min-height: 200px; overflow: hidden; }

/* Status Bar */
.status-bar {
    height: 32px;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 11px;
    color: var(--gray-500);
}

.status-left,
.status-center,
.status-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-item i {
    font-size: 12px;
}

.status-item.online .status-dot {
    width: 6px;
    height: 6px;
}

/* Guest Drawer */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

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

.guest-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100%;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.guest-drawer.active {
    right: 0;
}

.drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gray-100);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-btn:hover {
    background: var(--gray-200);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: modalSlide 0.3s ease;
}

.modal-content.modal-large {
    max-width: 800px;
}

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

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Folio Styles */
.folio-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.folio-guest {
    display: flex;
    align-items: center;
    gap: 12px;
}

.guest-avatar {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.folio-dates {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--gray-600);
}

.folio-dates i {
    margin-right: 4px;
}

.folio-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.folio-table th {
    padding: 10px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.folio-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 12px;
}

.folio-table .charge { color: var(--danger); font-weight: 500; }
.folio-table .payment { color: var(--success); font-weight: 500; }

.folio-summary {
    background: var(--gray-50);
    padding: 16px;
    border-radius: var(--radius);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
}

.summary-row.total {
    border-top: 2px solid var(--gray-200);
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 700;
    font-size: 15px;
}

/* Quick Stats */
.quick-stat {
    background: var(--gray-50);
    padding: 12px;
    border-radius: var(--radius);
    text-align: center;
}

.quick-stat .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

.quick-stat .stat-label {
    font-size: 10px;
    color: var(--gray-500);
    margin-top: 2px;
}

/* Notifications */
.notification-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background: var(--gray-50);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover {
    background: var(--gray-100);
}

.notif-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.notif-icon.green { background: #d1fae5; color: #059669; }
.notif-icon.orange { background: #fef3c7; color: #d97706; }
.notif-icon.blue { background: #dbeafe; color: #2563eb; }
.notif-icon.red { background: #fee2e2; color: #dc2626; }
.notif-icon.purple { background: #ede9fe; color: #7c3aed; }

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

.notif-text {
    display: block;
    font-size: 11px;
    color: var(--gray-700);
    line-height: 1.4;
}

.notif-time {
    font-size: 10px;
    color: var(--gray-400);
}

/* Inventory Alerts */
.inventory-alert-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inventory-alert-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--gray-50);
    border-radius: 8px;
    border-left: 3px solid var(--warning);
}

.inventory-alert-item.critical {
    border-left-color: var(--danger);
    background: #fef2f2;
}

.alert-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.inventory-alert-item.low .alert-icon {
    background: #fef3c7;
    color: var(--warning);
}

.inventory-alert-item.critical .alert-icon {
    background: #fee2e2;
    color: var(--danger);
}

.alert-info {
    flex: 1;
    min-width: 0;
}

.alert-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-800);
}

.alert-detail {
    font-size: 10px;
    color: var(--gray-500);
}

.alert-badge {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
}

.alert-badge.low {
    background: #fef3c7;
    color: #92400e;
}

.alert-badge.critical {
    background: #fee2e2;
    color: #991b1b;
}

/* Floating Chat Button (Bottom Right) */
.floating-chat-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    z-index: 1900;
    transition: all 0.3s ease;
}

.floating-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 28px rgba(59, 130, 246, 0.6);
}

.floating-chat-btn:active {
    transform: scale(0.95);
}

.floating-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 22px;
    height: 22px;
    background: var(--danger);
    color: white;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid white;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent);
    animation: pulseRing 2s infinite;
    pointer-events: none;
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Widget Panels (Notifications & Chat) */
.widget-panel {
    position: fixed;
    top: 60px;
    right: 16px;
    width: 360px;
    max-height: 520px;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    z-index: 2000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: widgetSlideIn 0.25s ease;
    border: 1px solid var(--gray-200);
}

/* Chat widget positioned at bottom right above the floating button */
.chat-widget {
    top: auto;
    bottom: 96px;
    right: 24px;
    width: 380px;
}

.widget-panel.active {
    display: flex;
}

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

.widget-header {
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.widget-count {
    background: var(--danger);
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
}

.online-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 500;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 10px;
}

.online-indicator .dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.widget-actions {
    display: flex;
    gap: 4px;
}

.widget-action-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255,255,255,0.15);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.widget-action-btn:hover {
    background: rgba(255,255,255,0.3);
}

.widget-tabs {
    display: flex;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.widget-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s;
}

.chat-tabs .widget-tab {
    padding: 9px 4px;
    font-size: 10px;
    gap: 3px;
}

.chat-tabs .widget-tab i {
    font-size: 10px;
}

.widget-tab:hover {
    color: var(--gray-700);
}

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

.tab-count {
    background: var(--gray-200);
    padding: 0 5px;
    border-radius: 8px;
    font-size: 9px;
}

.widget-tab.active .tab-count {
    background: var(--accent);
    color: white;
}

.widget-body {
    flex: 1;
    overflow-y: auto;
    max-height: 340px;
}

.widget-footer {
    padding: 10px 12px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

/* Notification Items */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.notification-item:hover {
    background: var(--gray-50);
}

.notification-item.unread {
    background: #eff6ff;
}

.notification-item.unread:hover {
    background: #dbeafe;
}

.notif-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.notif-icon.green { background: #d1fae5; color: #059669; }
.notif-icon.orange { background: #fef3c7; color: #d97706; }
.notif-icon.blue { background: #dbeafe; color: #2563eb; }
.notif-icon.red { background: #fee2e2; color: #dc2626; }
.notif-icon.purple { background: #ede9fe; color: #7c3aed; }

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

.notif-text {
    font-size: 12px;
    color: var(--gray-700);
    line-height: 1.4;
}

.notif-time {
    font-size: 10px;
    color: var(--gray-400);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.notif-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}

/* Chat Widget */
.chat-widget-body {
    padding: 12px;
    background: var(--gray-50);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-bubble {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.chat-bubble.own {
    flex-direction: row-reverse;
}

.bubble-avatar {
    width: 30px;
    height: 30px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    flex-shrink: 0;
}

.chat-bubble.own .bubble-avatar {
    background: var(--primary);
}

.bubble-content {
    max-width: 75%;
}

.bubble-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.chat-bubble.own .bubble-header {
    justify-content: flex-end;
}

.bubble-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-700);
}

.bubble-time {
    font-size: 9px;
    color: var(--gray-400);
}

.bubble-text {
    background: white;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--gray-700);
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.chat-bubble.own .bubble-text {
    background: var(--accent);
    color: white;
}

.chat-widget-footer {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-widget-footer input {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 20px;
    font-size: 12px;
    font-family: inherit;
    outline: none;
}

.chat-widget-footer input:focus {
    border-color: var(--accent);
}

.chat-send-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.chat-send-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

/* Taxpayer Type Buttons */
.taxpayer-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.taxpayer-type-btn:hover {
    border-color: var(--accent);
    background: var(--gray-50);
}

.taxpayer-type-btn.active {
    border-color: var(--accent);
    background: #eff6ff;
}

.taxpayer-type-btn i {
    font-size: 20px;
    color: var(--accent);
}

.taxpayer-type-btn strong {
    font-size: 12px;
    color: var(--gray-800);
}

.taxpayer-type-btn small {
    font-size: 10px;
    color: var(--gray-500);
}

/* Verification Status Boxes */
.verification-box {
    padding: 12px;
    border-radius: 8px;
    margin-top: 8px;
}

.verification-box.pending {
    background: #fef3c7;
    border: 1px solid #fcd34d;
}

.verification-box.success {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
}

.verification-box.error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
}

.verification-box.offline {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
}

.verification-box .status-icon {
    font-size: 16px;
    margin-right: 6px;
}

.verification-box .status-text {
    font-size: 12px;
    font-weight: 600;
}

.verification-details {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.verification-detail-item {
    font-size: 11px;
}

.verification-detail-item .label {
    color: var(--gray-500);
}

.verification-detail-item .value {
    font-weight: 600;
    color: var(--gray-800);
}

/* Chat Components */
.chat-channel {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
    color: var(--gray-600);
    transition: all 0.2s;
}

.chat-channel:hover {
    background: var(--gray-100);
}

.chat-channel.active {
    background: var(--accent);
    color: white;
}

.chat-channel i {
    font-size: 14px;
}

.chat-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 12px;
    color: var(--gray-600);
}

.user-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-300);
}

.chat-user.online .user-dot {
    background: var(--success);
}

.chat-user.offline .user-dot {
    background: var(--gray-300);
}

.chat-message {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    background: var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-600);
    flex-shrink: 0;
}

.chat-content {
    flex: 1;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.chat-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-800);
}

.chat-time {
    font-size: 10px;
    color: var(--gray-400);
}

.chat-text {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
    background: var(--gray-50);
    padding: 8px 12px;
    border-radius: 0 8px 8px 8px;
}

/* Action Dropdown */
.action-dropdown {
    position: relative;
    display: inline-block;
}

.action-dropdown-btn {
    padding: 5px 10px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.action-dropdown-btn:hover {
    background: var(--accent-hover);
}

.action-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    min-width: 160px;
}

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

.action-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--gray-700);
    cursor: pointer;
    transition: background 0.2s;
}

.action-dropdown-item:hover {
    background: var(--gray-50);
}

.action-dropdown-item i {
    width: 16px;
    text-align: center;
    font-size: 12px;
}

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

.action-dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 4px 0;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* Responsive */
@media (max-width: 1400px) {
    .quick-toolbar {
        height: 72px;
    }
    .quick-btn {
        min-width: 70px;
    }
    .quick-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }
    .column {
        min-height: 400px;
    }
    .primary-nav {
        display: none;
    }
}
