/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --purple: #a855f7;
    --cyan: #06b6d4;
    --orange: #f97316;
    --background: #f1f5f9;
    --card: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

/* Login Page */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
    display: flex;
    align-items: center;
    justify-center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.logo-circle {
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-center;
    margin: 0 auto 20px;
    color: white;
}

.login-header h1 {
    font-size: 28px;
    color: var(--text);
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-light);
    font-size: 14px;
}

.login-form {
    margin-top: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

select.form-control {
    cursor: pointer;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

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

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

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

.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.login-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.login-info {
    margin-top: 30px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 13px;
}

.login-info h3 {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text);
}

.login-info p {
    color: var(--text-light);
    margin: 4px 0;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

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

/* Sidebar */
.sidebar {
    width: 260px;
    background: #1e293b;
    color: white;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h1 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 4px;
}

.sidebar-header p {
    font-size: 12px;
    color: #94a3b8;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s;
}

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

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

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-center;
    font-weight: bold;
    font-size: 16px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
}

.user-role {
    font-size: 12px;
    color: #94a3b8;
    text-transform: capitalize;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
}

.top-header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left h2 {
    font-size: 24px;
    color: var(--text);
}

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

.search-box {
    position: relative;
}

.search-box input {
    width: 300px;
    padding: 8px 36px 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
}

.search-box svg {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.notification-bell {
    position: relative;
    padding: 8px;
    cursor: pointer;
    color: var(--text-light);
}

.notification-bell .badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: #fecaca;
}

/* Page Content */
.page-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-header h2 {
    font-size: 24px;
    color: var(--text);
    margin-bottom: 4px;
}

.page-header p {
    color: var(--text-light);
    font-size: 14px;
}

/* Cards */
.card {
    background: var(--card);
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

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

.card-header h3 {
    font-size: 18px;
    color: var(--text);
}

.card-body {
    padding: 24px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--card);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stat-card.bg-blue .stat-icon { background: var(--info); }
.stat-card.bg-orange .stat-icon { background: var(--orange); }
.stat-card.bg-green .stat-icon { background: var(--success); }
.stat-card.bg-purple .stat-icon { background: var(--purple); }

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--text);
}

/* Table */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead tr {
    border-bottom: 1px solid var(--border);
}

.table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
}

.table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.table tbody tr:hover {
    background: #f8fafc;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-orange { background: #ffedd5; color: #9a3412; }
.badge-cyan { background: #cffafe; color: #155e75; }
.badge-purple { background: #f3e8ff; color: #6b21a8; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-secondary { background: #e2e8f0; color: #475569; }

/* Buttons */
.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

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

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

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

.btn-danger:hover {
    background: #dc2626;
}

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

.btn-outline:hover {
    background: #f8fafc;
}

/* Restaurant Item */
.restaurant-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 12px;
}

.restaurant-rank {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.restaurant-info {
    flex: 1;
}

.restaurant-info h4 {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 4px;
}

.restaurant-info p {
    font-size: 13px;
    color: var(--text-light);
}

.restaurant-revenue {
    font-size: 18px;
    font-weight: bold;
    color: var(--success);
}

/* Dashboard Grid */
.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* PDV Container */
.pdv-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    height: calc(100vh - 160px);
}

.pdv-products {
    background: white;
    border-radius: 12px;
    padding: 24px;
    overflow-y: auto;
}

.search-bar {
    margin-bottom: 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.product-card {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.product-card:hover {
    border-color: var(--primary);
    background: #fff7ed;
}

.product-placeholder {
    height: 100px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--text-light);
}

.product-info h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.product-category {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
}

.pdv-cart {
    background: white;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.pdv-cart h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.customer-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.empty-cart svg {
    opacity: 0.3;
    margin-bottom: 12px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 12px;
}

.item-info {
    flex: 1;
}

.item-info h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.item-price {
    font-size: 12px;
    color: var(--text-light);
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-quantity {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    font-size: 18px;
}

.quantity {
    width: 32px;
    text-align: center;
    font-weight: 500;
}

.item-total {
    font-weight: bold;
    color: var(--primary);
}

.btn-remove {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #fee2e2;
    color: var(--danger);
    cursor: pointer;
    font-size: 20px;
}

.cart-summary {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.summary-row.total {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
}

/* Orders */
.filters-bar {
    background: white;
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.filters-bar h3 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-light);
}

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.order-header h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.order-date {
    font-size: 13px;
    color: var(--text-light);
}

.order-status {
    text-align: right;
}

.order-total {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary);
    margin-top: 8px;
}

.order-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.detail-item {
    display: flex;
    gap: 12px;
}

.detail-item svg {
    color: var(--text-light);
    flex-shrink: 0;
    margin-top: 2px;
}

.detail-item strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
    color: var(--text-light);
}

.detail-item p {
    font-size: 14px;
    color: var(--text);
}

.order-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state svg {
    opacity: 0.3;
    margin-bottom: 16px;
}

/* Restaurants */
.restaurants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.restaurant-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 24px;
}

.restaurant-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.restaurant-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.restaurant-info h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.restaurant-info p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.restaurant-badges {
    display: flex;
    gap: 8px;
}

.restaurant-details {
    margin-bottom: 16px;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text);
}

.detail-row svg {
    color: var(--text-light);
}

.restaurant-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.stat-box {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.stat-box svg {
    color: var(--text-light);
}

.stat-label {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 2px;
}

.stat-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.restaurant-actions {
    display: flex;
    gap: 8px;
}

/* Campaigns */
.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.campaign-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.campaign-banner {
    height: 150px;
    background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
}

.banner-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.campaign-content {
    padding: 24px;
}

.campaign-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.campaign-header h3 {
    font-size: 18px;
}

.campaign-content > p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.campaign-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.campaign-details .detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 14px;
}

.campaign-actions {
    display: flex;
    gap: 8px;
}

/* Coupons */
.coupons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.coupon-card {
    background: white;
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 24px;
}

.coupon-code {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.coupon-code svg {
    color: var(--primary);
}

.coupon-code h3 {
    font-size: 22px;
    font-weight: bold;
}

.coupon-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.coupon-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.detail-box {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.detail-box .label {
    font-size: 13px;
    color: var(--text-light);
}

.detail-box .value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.coupon-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coupon-footer .actions {
    display: flex;
    gap: 8px;
}

/* Customers */
.customers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.customer-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 24px;
}

.customer-avatar {
    width: 64px;
    height: 64px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 16px;
}

.customer-info {
    text-align: center;
    margin-bottom: 16px;
}

.customer-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.customer-info p {
    font-size: 13px;
    color: var(--text-light);
    margin: 4px 0;
}

.customer-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.customer-stats > div {
    text-align: center;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.customer-stats strong {
    display: block;
    font-size: 18px;
    color: var(--text);
    margin-bottom: 4px;
}

.customer-stats span {
    font-size: 12px;
    color: var(--text-light);
}

.customer-actions {
    display: flex;
    gap: 8px;
}

/* Wallet */
.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.wallet-card {
    background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
    color: white;
    padding: 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.wallet-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-card p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.wallet-card h2 {
    font-size: 42px;
    font-weight: bold;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 12px;
}

.transaction-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.transaction-icon.positive {
    background: #d1fae5;
    color: var(--success);
}

.transaction-icon.negative {
    background: #fee2e2;
    color: var(--danger);
}

.transaction-details {
    flex: 1;
}

.transaction-details h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.transaction-details p {
    font-size: 12px;
    color: var(--text-light);
}

.transaction-amount {
    font-size: 18px;
    font-weight: bold;
}

.transaction-amount.positive {
    color: var(--success);
}

.transaction-amount.negative {
    color: var(--danger);
}

/* Chat */
.chat-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 24px;
    height: calc(100vh - 160px);
}

.conversations-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.conversations-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.conversations {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

.conversation-item:hover,
.conversation-item.active {
    background: #fff7ed;
}

.conversation-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.conversation-info {
    flex: 1;
}

.conversation-info h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.conversation-info p {
    font-size: 13px;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-time {
    font-size: 12px;
    color: var(--text-light);
}

.chat-window {
    background: white;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.chat-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-user h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.chat-user p {
    font-size: 13px;
    color: var(--text-light);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

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

.message.received {
    justify-content: flex-start;
}

.message.sent {
    justify-content: flex-end;
}

.message-content {
    max-width: 60%;
    padding: 12px 16px;
    border-radius: 12px;
}

.message.received .message-content {
    background: #f1f5f9;
}

.message.sent .message-content {
    background: var(--primary);
    color: white;
}

.message-content p {
    margin-bottom: 4px;
}

.message-time {
    font-size: 11px;
    opacity: 0.7;
}

.chat-input {
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
}

.chat-input input {
    flex: 1;
}

/* Deliveries */
.deliveries-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.delivery-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border);
}

.delivery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.delivery-info {
    margin-bottom: 16px;
}

.delivery-info p {
    font-size: 14px;
    margin: 8px 0;
}

/* Zones */
.zones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.zone-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 24px;
}

.zone-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.zone-header svg {
    color: var(--primary);
}

.zone-header h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.zone-header p {
    font-size: 13px;
    color: var(--text-light);
}

.zone-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.zone-actions {
    display: flex;
    gap: 8px;
}

/* Reports */
.product-ranking {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 12px;
}

.ranking-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.ranking-info {
    flex: 1;
}

.ranking-info h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.ranking-info p {
    font-size: 13px;
    color: var(--text-light);
}

.ranking-revenue {
    font-size: 18px;
    font-weight: bold;
    color: var(--success);
}

/* Settings */
.settings-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 24px;
}

.settings-sidebar {
    background: white;
    border-radius: 12px;
    padding: 16px;
}

.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-nav-item {
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    transition: all 0.3s;
}

.settings-nav-item:hover {
    background: #f8fafc;
}

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

.settings-content {
    flex: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 70px;
    }

    .sidebar-header h1,
    .sidebar-header p,
    .nav-item span,
    .user-details {
        display: none;
    }

    .nav-item {
        justify-content: center;
    }

    .main-content {
        margin-left: 70px;
    }

    .pdv-container {
        grid-template-columns: 1fr;
    }

    .chat-container {
        grid-template-columns: 1fr;
    }

    .conversations-list {
        display: none;
    }
}

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

    .order-details {
        grid-template-columns: 1fr;
    }

    .header-right {
        gap: 8px;
    }

    .search-box {
        display: none;
    }

    .settings-container {
        grid-template-columns: 1fr;
    }

    .settings-sidebar {
        display: none;
    }
}
