/* css/dashboard.css */
:root {
    --bg-main: #ffffff; /* Page Background */
    --bg-card: #f6fdfd; /* Card Background */
    --primary: #1a60d1; /* Primary Color */
    --primary-hover: #134db0;
    --accent-blue: #1a60d1; /* Accent Color */
    --accent-blue-hover: #134db0;
    --text-main: #18191B;
    --text-muted: #6E6F78;
    --text-light: #9899A3;
    --border-color: #1a60d1; /* Border Color */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #E15A5A; /* Coral red from reference images */
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --font-sans: 'Inter', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.015);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 16px 24px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Authentication Pages */
.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--bg-main);
    padding: 20px;
}

.auth-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: 24px;
    width: 100%;
    max-width: 460px;
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    font-family: var(--font-sans);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1.5px;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 8px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-main);
    background-color: var(--bg-card);
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(93, 139, 244, 0.1);
}

.auth-container .btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.auth-container .btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.auth-footer a {
    color: var(--accent-blue);
    font-weight: 700;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: 50px; /* Modern pill style buttons */
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    gap: 8px;
}

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

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

.btn-secondary {
    background-color: #FFFFFF;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-main);
    border-color: #D1D2D6;
}

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

.btn-danger:hover {
    background-color: #D34C4C;
}

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

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

.btn-block {
    display: flex;
    width: 100%;
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.4;
    border: 1px solid transparent;
}

.alert-error {
    background-color: #FEF2F2;
    border-color: #FEE2E2;
    color: #991B1B;
}

.alert-success {
    background-color: #ECFDF5;
    border-color: #D1FAE5;
    color: #065F46;
}

.alert-link {
    font-weight: 600;
    color: inherit;
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Dashboard Layout */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: #FFFFFF; /* Pure White Sidebar */
    color: var(--text-main);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    border-right: 1px solid #ECECF1;
    transition: width 0.3s ease, padding 0.3s ease;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    width: 100%;
}

.sidebar-toggle-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.sidebar-toggle-btn:hover {
    color: var(--text-main);
    background-color: #F4F5F7;
}

.sidebar-brand {
    font-family: var(--font-sans);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    line-height: 1;
    letter-spacing: -1px;
}

.sidebar-brand img {
    height: 48px !important;
    width: auto;
    display: block;
    transition: all 0.3s ease;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    gap: 12px;
}

.sidebar-menu li a svg {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.sidebar-menu li a:hover {
    color: var(--text-main);
    background-color: #F4F5F7;
}

.sidebar-menu li a:hover svg {
    color: var(--text-main);
}

.sidebar-menu li.active a {
    color: var(--text-main);
    background-color: #F4F5F7; /* Matches reference capsule style */
}

.sidebar-menu li.active a svg {
    color: var(--primary);
}

.sidebar-user {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #E2E8F0;
    background-image: url('https://images.unsplash.com/photo-1494790108377-be9c29b29330?auto=format&fit=crop&w=80&q=80');
    background-size: cover;
}

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

.sidebar-user-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.sidebar-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    background: #F4F5F7;
    transition: all 0.2s ease;
}

.sidebar-logout-btn:hover {
    background: #ECECF1;
    color: var(--danger);
}

.sidebar.collapsed {
    width: 70px;
    padding: 20px 10px;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    margin-bottom: 25px;
}

.sidebar.collapsed .sidebar-brand {
    display: none;
}

.sidebar.collapsed .sidebar-menu li a span {
    display: none;
}

.sidebar.collapsed .sidebar-menu li a {
    justify-content: center;
    padding: 12px;
}

.sidebar.collapsed .sidebar-user {
    flex-direction: column;
    align-items: center;
}

.sidebar.collapsed .sidebar-user-info {
    display: none;
}

/* Main Dashboard Panel */
.dashboard-main {
    flex: 1;
    margin-left: 260px;
    padding: 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

.dashboard-main.sidebar-collapsed {
    margin-left: 70px;
}

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

.dashboard-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.8px;
}

.dashboard-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Dashboard Summary Cards - Folder Cards Redesign */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    padding-top: 15px;
}

.stat-card {
    background: linear-gradient(to bottom, #f6fdfd 40%, #eefbfb 100%);
    border: 1px solid var(--border-color);
    border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
    padding: 24px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.012);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    margin-top: 18px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 140px;
    z-index: 1;
}

/* Folder tab design with curved right boundary */
.stat-card::before {
    content: '';
    position: absolute;
    top: -16px;
    left: -1px;
    width: 110px;
    height: 17px;
    background-color: #f6fdfd;
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 12px 24px 0 0;
    transition: all 0.25s ease;
    z-index: 2;
}

/* A blocker to cover the border under the tab */
.stat-card::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 4px;
    width: 94px;
    height: 3px;
    background: #f6fdfd;
    z-index: 3;
    transition: all 0.25s ease;
}

.stat-card-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    position: relative;
    z-index: 5;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    position: relative;
    z-index: 5;
}

/* Hover effects */
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.03);
}

/* Highlights: Blue Selected Folder (Pedidos Activos) */
.stat-card.highlight-blue {
    background: linear-gradient(135deg, #5D8BF4, #3B72E2);
    border-color: #3B72E2;
}

.stat-card.highlight-blue::before {
    background-color: #5D8BF4;
    border-color: #3B72E2;
}

.stat-card.highlight-blue::after {
    background-color: #5D8BF4;
}

.stat-card.highlight-blue .stat-card-title {
    color: rgba(255, 255, 255, 0.8);
}

.stat-card.highlight-blue .stat-card-value {
    color: #FFFFFF;
}

/* Highlights: Dark Slate Folder (Calificación Clientes) */
.stat-card.highlight-dark {
    background: linear-gradient(135deg, #4E515A, #282A30);
    border-color: #282A30;
}

.stat-card.highlight-dark::before {
    background-color: #4E515A;
    border-color: #282A30;
}

.stat-card.highlight-dark::after {
    background-color: #4E515A;
}

.stat-card.highlight-dark .stat-card-title {
    color: rgba(255, 255, 255, 0.8);
}

.stat-card.highlight-dark .stat-card-value {
    color: #FFFFFF;
}

/* Info Section (QR Code & Quick Links) */
.info-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .info-section {
        grid-template-columns: 1fr;
    }
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qr-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #F8FAFC;
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px dashed var(--border-color);
}

.qr-code-wrapper {
    background: white;
    padding: 15px;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
}

.menu-link-box {
    display: flex;
    width: 100%;
    margin-top: 15px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.menu-link-input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    outline: none;
    background: #F8FAFC;
    width: 100%;
}

.menu-link-copy {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.menu-link-copy:hover {
    background: var(--primary-hover);
}

/* Category & Menu Item Management */
.menu-editor-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .menu-editor-grid {
        grid-template-columns: 1fr;
    }
}

.category-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.category-item svg {
    color: var(--text-muted);
}

.category-item:hover,
.category-item.active {
    border-color: var(--accent-blue);
    background: rgba(93, 139, 244, 0.05);
    color: var(--text-main);
}

.category-item.active svg {
    color: var(--accent-blue);
}

.category-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.category-item:hover .category-actions {
    opacity: 1;
}

.category-btn {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.category-btn:hover {
    color: var(--text-main);
}

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

/* Menu Items List */
.items-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.item-editor-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.item-editor-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.item-img-placeholder {
    width: 100px;
    height: 100px;
    background: #F1F5F9;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    object-fit: cover;
}

.item-details h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-details p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-success {
    background-color: #ECFDF5;
    color: #065F46;
}

.badge-muted {
    background-color: #F1F5F9;
    color: #475569;
}

.badge-pending {
    background-color: #FFFBEB;
    color: #B45309;
}

.item-price {
    font-weight: 800;
    color: var(--accent-blue);
    font-size: 1.05rem;
}

.item-actions {
    display: flex;
    gap: 10px;
}

/* Customizer Layout */
.customizer-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 30px;
    height: calc(100vh - 150px);
}

@media (max-width: 1000px) {
    .customizer-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
}

.customizer-controls {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    overflow-y: auto;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.customizer-preview {
    background: #E2E8F0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.preview-header {
    background: white;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-dot-group {
    display: flex;
    gap: 6px;
}

.preview-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #CBD5E1;
}

.preview-dot:nth-child(1) { background: #EF4444; }
.preview-dot:nth-child(2) { background: #F59E0B; }
.preview-dot:nth-child(3) { background: #10B981; }

.preview-address {
    background: #F1F5F9;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
    width: 250px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-iframe {
    flex: 1;
    width: 100%;
    border: none;
    background: white;
}

/* Customizer Form Controls */
.preset-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.preset-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.preset-card:hover,
.preset-card.active {
    border-color: var(--accent-blue);
    background-color: rgba(93, 139, 244, 0.05);
}

.preset-card-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.preset-colors {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.color-picker-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.color-picker-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.color-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    background: var(--bg-card);
}

.color-input-wrapper input[type="color"] {
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    background: none;
}

.color-input-wrapper span {
    font-size: 0.85rem;
    font-family: monospace;
}

/* Switch styling */
.switch-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.switch-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CBD5E1;
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--success);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Live Order Tracker styling */
.orders-tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    border-top: 5px solid var(--primary);
    transition: all 0.3s ease;
}

.order-card.status-completed {
    border-top-color: var(--success);
    opacity: 0.85;
}

.order-card.status-cancelled {
    border-top-color: var(--danger);
    opacity: 0.7;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-table {
    font-size: 1.25rem;
    font-weight: 800;
}

.order-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.order-items {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.order-item-qty {
    font-weight: 700;
    color: var(--accent-blue);
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.order-total {
    font-weight: 800;
    font-size: 1.1rem;
}

.order-btn-group {
    display: flex;
    gap: 8px;
}

.btn-icon {
    padding: 8px 12px;
    font-size: 0.85rem;
}

/* Modal Simple */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
    border: 1px solid var(--border-color);
}

.modal-header {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.modal-footer {
    margin-top: 25px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-muted);
}

.close-modal:hover {
    color: var(--text-main);
}

/* Reviews Panel styles */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.reviewer-name {
    font-weight: 700;
    font-size: 1rem;
}

.review-rating {
    color: #EAB308;
    letter-spacing: 2px;
}

.review-item-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

.review-comment {
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.4;
    flex-grow: 1;
}

.review-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 5px;
}

/* Progress bar styles in Right Info Panel */
.progress-bar-container {
    margin-bottom: 20px;
}

.progress-bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.progress-bar-track {
    width: 100%;
    height: 6px;
    background-color: #EEF0F6; /* Reference gray progress bar track */
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 9999px;
}

.progress-blue {
    background-color: var(--accent-blue);
}

.progress-red {
    background-color: var(--danger);
}

/* Properties List and Tags badges in Right Info Panel */
.info-properties-list {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.info-property-row {
    display: flex;
    justify-content: space-between;
}

.info-property-label {
    color: var(--text-muted);
    font-weight: 700;
}

.info-property-value {
    font-weight: 700;
    color: var(--text-main);
}

.info-tags-section {
    margin-top: 25px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.info-tags-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.info-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Tag badges redesigned with circular indicator dots */
.tag-badge {
    position: relative;
    padding: 6px 12px 6px 20px; /* Space for dot */
    display: inline-flex;
    align-items: center;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.tag-badge::before {
    content: '';
    position: absolute;
    left: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
}

.tag-blue {
    background-color: #ECF2FE;
    color: #3B82F6;
}

.tag-gray {
    background-color: #F1F3F5;
    color: #6E6F78;
}

.tag-red {
    background-color: #FDF2F2;
    color: #EF4444;
}

/* Breadcrumb nav */
.breadcrumb-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.breadcrumb-container a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-container a:hover {
    color: var(--text-main);
}

.breadcrumb-arrow {
    font-size: 0.75rem;
}

/* Responsive adjust dashboard */
@media (max-width: 768px) {
    .sidebar {
        width: 100% !important;
        height: 60px !important;
        padding: 10px 20px !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border-color) !important;
        overflow: hidden !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 1000 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        transition: height 0.3s ease !important;
    }
    
    /* When expanded (not collapsed) */
    .sidebar:not(.collapsed) {
        height: 100vh !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        gap: 20px !important;
    }

    /* Sidebar header layout on mobile */
    .sidebar-header {
        width: 100% !important;
        margin-bottom: 0 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-direction: row-reverse !important;
    }
    
    .sidebar:not(.collapsed) .sidebar-header {
        margin-bottom: 20px !important;
        border-bottom: 1px solid var(--border-color) !important;
        padding-bottom: 10px !important;
    }

    .sidebar-brand {
        display: block !important;
    }
    .sidebar-brand img {
        height: 36px !important;
    }

    /* Hide menu items on mobile if collapsed */
    .sidebar.collapsed .sidebar-menu,
    .sidebar.collapsed .sidebar-user {
        display: none !important;
    }

    /* Show menu items on mobile when expanded */
    .sidebar:not(.collapsed) .sidebar-menu {
        display: flex !important;
        width: 100% !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .sidebar:not(.collapsed) .sidebar-menu li a span {
        display: inline !important;
    }

    .sidebar:not(.collapsed) .sidebar-user {
        display: flex !important;
        width: 100% !important;
        margin-top: auto !important;
        padding-top: 15px !important;
    }
    
    .sidebar:not(.collapsed) .sidebar-user-info {
        display: block !important;
    }

    /* Main content layout on mobile */
    .dashboard-main {
        margin-left: 0 !important;
        padding: 80px 20px 20px 20px !important;
    }
    
    .dashboard-main.sidebar-collapsed {
        margin-left: 0 !important;
    }

    /* Toggle button styled as three vertical dots or hamburger */
    .sidebar-toggle-btn {
        display: flex !important;
        order: 1 !important;
    }
}

@media (max-width: 600px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .dashboard-header > div {
        width: 100%;
    }
    .dashboard-header .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .quick-links-grid {
        grid-template-columns: 1fr !important;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
