/* C.R.E.A.M. COFFEE CRM - Styles */
/* Autumn Harvest Color Palette */
:root {
    --bg-dark: #432818;
    --bg-medium: #99582A;
    --bg-light: #BB9457;
    --text-light: #FFE6A7;
    --accent: #6F1D1B;
    --accent-hover: #8a2422;
    --success: #4a7c59;
    --warning: #BB9457;
    --error: #6F1D1B;
    --sidebar-width: 260px;
    --sidebar-collapsed: 72px;
    --header-height: 80px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(67, 40, 24, 0.35);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: linear-gradient(135deg, #2d1810 0%, #432818 100%);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(67, 40, 24, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 230, 167, 0.08);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: var(--transition);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar.collapsed .nav-text,
.sidebar.collapsed .logo-text,
.sidebar.collapsed .user-details {
    display: none;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 230, 167, 0.08);
}

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

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background: rgba(255, 230, 167, 0.1);
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255, 230, 167, 0.7);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(255, 230, 167, 0.08);
    color: var(--text-light);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--text-light);
    box-shadow: 0 4px 16px rgba(235, 94, 40, 0.3);
}

.nav-item .material-icons-round {
    font-size: 22px;
}

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

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

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    display: block;
}

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

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 24px 32px;
    transition: var(--transition);
    min-height: 100vh;
}

.sidebar.collapsed~.main-content {
    margin-left: var(--sidebar-collapsed);
}

.page {
    display: none;
    animation: fadeIn 0.4s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
}

.subtitle {
    color: rgba(255, 230, 167, 0.6);
    margin-top: 4px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    box-shadow: 0 4px 16px rgba(235, 94, 40, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 94, 40, 0.4);
}

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

.btn-secondary:hover {
    background: #4a4743;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 230, 167, 0.2);
    color: var(--text-light);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-small {
    padding: 8px 14px;
    font-size: 13px;
}

.btn-icon {
    background: none;
    border: none;
    color: rgba(255, 230, 167, 0.6);
    padding: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    background: rgba(255, 230, 167, 0.1);
    color: var(--text-light);
}

.full-width {
    width: 100%;
    justify-content: center;
}

/* Cards */
.card {
    background: rgba(153, 88, 42, 0.5);
    border: 1px solid rgba(255, 230, 167, 0.08);
    border-radius: var(--radius);
    padding: 24px;
    backdrop-filter: blur(10px);
}

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

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.link-text {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.link-text:hover {
    text-decoration: underline;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: rgba(153, 88, 42, 0.5);
    border: 1px solid rgba(255, 230, 167, 0.08);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(235, 94, 40, 0.3);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stat-icon .material-icons-round {
    font-size: 26px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 230, 167, 0.6);
}

.stat-trend {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
}

.stat-trend.positive {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.stat-trend.negative {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.chart-card {
    min-height: 340px;
}

.chart-container {
    height: 260px;
    position: relative;
}

.chart-container.large {
    height: 320px;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon .material-icons-round {
    font-size: 20px;
}

.activity-icon.redeem {
    background: rgba(235, 94, 40, 0.15);
    color: var(--accent);
}

.activity-icon.points {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.activity-icon.new {
    background: rgba(187, 148, 87, 0.15);
    color: #BB9457;
}

.activity-icon.tier {
    background: rgba(255, 230, 167, 0.15);
    color: #FFE6A7;
}

.activity-content p {
    font-size: 14px;
}

.activity-content strong {
    font-weight: 600;
}

.activity-time {
    font-size: 12px;
    color: rgba(255, 230, 167, 0.5);
}

/* Tables */
.table-container {
    overflow-x: auto;
}

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

.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 230, 167, 0.08);
}

.data-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 230, 167, 0.6);
    font-weight: 600;
}

.data-table td {
    font-size: 14px;
}

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

.customer-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.customer-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--bg-medium), var(--bg-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.customer-name {
    font-weight: 500;
}

.customer-email {
    font-size: 12px;
    color: rgba(255, 230, 167, 0.5);
}

.tier-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-badge.bronze {
    background: rgba(205, 127, 50, 0.2);
    color: #cd7f32;
}

.tier-badge.silver {
    background: rgba(192, 192, 192, 0.2);
    color: #c0c0c0;
}

.tier-badge.gold {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.tier-badge.platinum {
    background: rgba(229, 228, 226, 0.2);
    color: #e5e4e2;
}

.table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.pagination-info {
    font-size: 13px;
    color: rgba(255, 230, 167, 0.6);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-page {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    color: rgba(255, 230, 167, 0.6);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
}

.pagination-page:hover,
.pagination-page.active {
    background: var(--accent);
    color: white;
}

/* Selects & Inputs */
.select-minimal,
.select-styled {
    padding: 8px 12px;
    background: var(--bg-medium);
    border: 1px solid rgba(255, 230, 167, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 13px;
    cursor: pointer;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(37, 36, 34, 0.8);
    border: 1px solid rgba(255, 230, 167, 0.12);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: rgba(255, 230, 167, 0.8);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(37, 36, 34, 0.8);
    border: 1px solid rgba(255, 230, 167, 0.1);
    border-radius: var(--radius-sm);
    width: 280px;
}

.search-box .material-icons-round {
    color: rgba(255, 230, 167, 0.4);
    font-size: 20px;
}

.search-box input {
    background: none;
    border: none;
    color: var(--text-light);
    flex: 1;
    outline: none;
}

.search-box input::placeholder {
    color: rgba(255, 230, 167, 0.4);
}

.card-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    gap: 12px;
}

/* Checkbox & Radio */
.checkbox-group,
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

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

.char-count {
    font-size: 12px;
    color: rgba(255, 230, 167, 0.5);
    display: block;
    text-align: right;
    margin-top: 6px;
}

/* Switch Toggle */
.switch {
    position: relative;
    width: 48px;
    height: 26px;
}

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

.slider {
    position: absolute;
    inset: 0;
    background: var(--bg-medium);
    border-radius: 26px;
    cursor: pointer;
    transition: var(--transition);
}

.slider:before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
}

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

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

/* Designer Layout */
.designer-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.designer-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.preview-hint {
    font-size: 12px;
    color: rgba(255, 230, 167, 0.4);
}

.phone-frame {
    width: 300px;
    height: 620px;
    background: #2d1810;
    border-radius: 40px;
    padding: 12px;
    position: relative;
    box-shadow: 0 30px 60px rgba(67, 40, 24, 0.5), inset 0 0 0 3px #5a3d2a;
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #2d1810;
    border-radius: 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1f100a 0%, #2d1810 100%);
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px 20px;
}

.wallet-pass {
    width: 100%;
    background: var(--bg-dark);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.pass-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.pass-logo {
    font-size: 28px;
}

.pass-title {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
}

.pass-hero {
    text-align: center;
    margin-bottom: 20px;
}

.pass-tier {
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.pass-name {
    font-size: 20px;
    font-weight: 700;
}

.pass-points {
    text-align: center;
    margin-bottom: 20px;
}

.points-label {
    font-size: 10px;
    color: rgba(255, 230, 167, 0.5);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.points-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
}

.pass-progress {
    margin-bottom: 24px;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 230, 167, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.progress-label {
    font-size: 11px;
    color: rgba(255, 230, 167, 0.5);
    text-align: center;
    margin-top: 8px;
}

.pass-barcode {
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.barcode-stripes {
    height: 50px;
    background: repeating-linear-gradient(90deg, #000 0 2px, transparent 2px 4px, #000 4px 5px, transparent 5px 8px, #000 8px 9px, transparent 9px 12px);
    margin-bottom: 8px;
}

.barcode-number {
    font-family: monospace;
    color: #000;
    font-size: 12px;
}

.pass-footer {
    text-align: center;
    color: rgba(255, 230, 167, 0.3);
}

.designer-controls {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.control-section {
    background: rgba(153, 88, 42, 0.5);
    border: 1px solid rgba(255, 230, 167, 0.08);
    border-radius: var(--radius);
    padding: 20px;
}

.control-section h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.color-pickers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.color-picker-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.color-picker-group label {
    font-size: 13px;
    color: rgba(255, 230, 167, 0.7);
}

.color-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-input-wrapper input[type="color"] {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.color-hex {
    font-family: monospace;
    font-size: 12px;
    color: rgba(255, 230, 167, 0.5);
}

.tier-config {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tier-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tier-points {
    width: 80px;
    padding: 6px 10px;
    background: rgba(37, 36, 34, 0.8);
    border: 1px solid rgba(255, 230, 167, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 13px;
}

.upload-zone {
    border: 2px dashed rgba(255, 230, 167, 0.2);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.upload-zone:hover {
    border-color: var(--accent);
    background: rgba(235, 94, 40, 0.05);
}

.upload-zone .material-icons-round {
    font-size: 40px;
    color: rgba(255, 230, 167, 0.3);
    margin-bottom: 12px;
}

.upload-zone p {
    font-size: 14px;
    color: rgba(255, 230, 167, 0.6);
}

.upload-hint {
    font-size: 12px;
    color: rgba(255, 230, 167, 0.4);
    display: block;
    margin-top: 8px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Barista Layout */
.barista-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.barista-scanner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.scanner-frame {
    aspect-ratio: 1;
    background: rgba(37, 36, 34, 0.9);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.scanner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanner-corners {
    position: absolute;
    width: 200px;
    height: 200px;
}

.scanner-corners span {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid var(--accent);
}

.scanner-corners span:nth-child(1) {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.scanner-corners span:nth-child(2) {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.scanner-corners span:nth-child(3) {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.scanner-corners span:nth-child(4) {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.scanner-line {
    position: absolute;
    width: 180px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: scan 2s ease-in-out infinite;
}

@keyframes scan {

    0%,
    100% {
        top: 20%;
        opacity: 0;
    }

    50% {
        top: 80%;
        opacity: 1;
    }
}

.scanner-placeholder {
    text-align: center;
    z-index: 1;
}

.scanner-placeholder .material-icons-round {
    font-size: 64px;
    color: rgba(255, 230, 167, 0.2);
    margin-bottom: 12px;
}

.scanner-placeholder p {
    color: rgba(255, 230, 167, 0.5);
}

.scanner-actions {
    display: flex;
    gap: 12px;
}

.scanner-actions .btn {
    flex: 1;
    justify-content: center;
}

.barista-customer {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.customer-not-found {
    text-align: center;
    padding: 60px 20px;
    background: rgba(153, 88, 42, 0.3);
    border-radius: var(--radius);
}

.customer-not-found .material-icons-round {
    font-size: 64px;
    color: rgba(255, 230, 167, 0.2);
    margin-bottom: 16px;
}

.customer-not-found h3 {
    margin-bottom: 8px;
}

.customer-not-found p {
    color: rgba(255, 230, 167, 0.5);
    font-size: 14px;
}

.customer-found {
    animation: fadeIn 0.4s ease;
}

.hidden {
    display: none !important;
}

.customer-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.customer-avatar-large {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.customer-info h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.points-display {
    display: flex;
    background: rgba(153, 88, 42, 0.5);
    border-radius: var(--radius);
    padding: 20px;
    gap: 20px;
    margin-bottom: 24px;
}

.points-current,
.points-next {
    flex: 1;
    text-align: center;
}

.points-divider {
    width: 1px;
    background: rgba(255, 230, 167, 0.1);
}

.points-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
}

.points-text {
    font-size: 12px;
    color: rgba(255, 230, 167, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.quick-action {
    background: rgba(153, 88, 42, 0.5);
    border: 1px solid rgba(255, 230, 167, 0.08);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.quick-action:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.action-icon.add {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.action-icon.redeem {
    background: rgba(235, 94, 40, 0.15);
    color: var(--accent);
}

.action-icon.history {
    background: rgba(187, 148, 87, 0.15);
    color: #BB9457;
}

.action-icon.notes {
    background: rgba(255, 230, 167, 0.15);
    color: #FFE6A7;
}

.quick-action span:last-child {
    font-size: 12px;
    font-weight: 500;
}

.available-rewards {
    background: rgba(153, 88, 42, 0.5);
    border-radius: var(--radius);
    padding: 20px;
}

.available-rewards h3 {
    font-size: 14px;
    margin-bottom: 16px;
}

.rewards-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reward-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: rgba(37, 36, 34, 0.5);
    border-radius: var(--radius-sm);
}

.reward-icon {
    font-size: 28px;
}

.reward-info {
    flex: 1;
}

.reward-name {
    font-weight: 500;
    font-size: 14px;
    display: block;
}

.reward-points {
    font-size: 12px;
    color: var(--accent);
}

/* Campaigns */
.campaign-templates {
    margin-bottom: 24px;
}

.campaign-templates h3 {
    margin-bottom: 16px;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.template-card {
    background: rgba(153, 88, 42, 0.5);
    border: 1px solid rgba(255, 230, 167, 0.08);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.template-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.template-icon {
    width: 56px;
    height: 56px;
    background: rgba(235, 94, 40, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: var(--accent);
}

.template-card h4 {
    margin-bottom: 6px;
    font-size: 14px;
}

.template-card p {
    font-size: 12px;
    color: rgba(255, 230, 167, 0.5);
}

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

.campaign-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(37, 36, 34, 0.5);
    border-radius: var(--radius-sm);
}

.campaign-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.campaign-status.active {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.campaign-status.scheduled {
    background: var(--warning);
}

.campaign-info {
    flex: 1;
}

.campaign-info h4 {
    margin-bottom: 4px;
}

.campaign-info p {
    font-size: 13px;
    color: rgba(255, 230, 167, 0.6);
    margin-bottom: 8px;
}

.campaign-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: rgba(255, 230, 167, 0.5);
}

.campaign-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.campaign-meta .material-icons-round {
    font-size: 14px;
}

.campaign-stats {
    display: flex;
    gap: 24px;
    text-align: center;
}

.campaign-stats .stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

.campaign-stats .stat-label {
    font-size: 11px;
    color: rgba(255, 230, 167, 0.5);
    display: block;
}

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

.tab-group {
    display: flex;
    gap: 4px;
}

.tab {
    padding: 8px 16px;
    background: none;
    border: none;
    color: rgba(255, 230, 167, 0.6);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.tab:hover {
    background: rgba(255, 230, 167, 0.05);
}

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

/* Analytics */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.span-2 {
    grid-column: span 2;
}

.legend {
    display: flex;
    gap: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 230, 167, 0.7);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.earned {
    background: var(--accent);
}

.dot.redeemed {
    background: var(--bg-light);
}

.rewards-ranking {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rank {
    width: 24px;
    height: 24px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.ranking-item .reward-info {
    flex: 1;
}

.ranking-item .reward-name {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

.reward-bar {
    height: 6px;
    background: rgba(255, 230, 167, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 3px;
}

.reward-count {
    font-size: 11px;
    color: rgba(255, 230, 167, 0.5);
    white-space: nowrap;
}

/* Notifications */
.notifications-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.notification-composer {
    height: fit-content;
}

.notification-history {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notif-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: rgba(37, 36, 34, 0.5);
    border-radius: var(--radius-sm);
}

.notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-icon.sent {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.notif-icon.scheduled {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.notif-content h4 {
    margin-bottom: 4px;
    font-size: 14px;
}

.notif-content p {
    font-size: 13px;
    color: rgba(255, 230, 167, 0.7);
    margin-bottom: 8px;
}

.notif-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 230, 167, 0.5);
}

.notif-stats {
    color: var(--accent);
}

/* Geofencing */
.geofencing-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

.map-container {
    height: 500px;
    border-radius: var(--radius);
    overflow: hidden;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #5a3d2a 0%, #432818 100%);
    position: relative;
}

.map-overlay {
    position: absolute;
    inset: 0;
}

.store-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.store-marker .material-icons-round {
    font-size: 32px;
    color: var(--accent);
    position: relative;
    z-index: 2;
}

.store-marker.main .geofence-ring {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.4;
    animation: pulse 2s ease-out infinite;
}

.store-marker.secondary .geofence-ring {
    width: 80px;
    height: 80px;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

.map-controls {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.map-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-dark);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-btn:hover {
    background: var(--bg-medium);
}

.locations-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.locations-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: rgba(37, 36, 34, 0.5);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.location-item:hover,
.location-item.active {
    background: rgba(235, 94, 40, 0.1);
    border-left: 3px solid var(--accent);
}

.location-icon {
    width: 40px;
    height: 40px;
    background: rgba(235, 94, 40, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.location-info {
    flex: 1;
}

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

.location-info p {
    font-size: 12px;
    color: rgba(255, 230, 167, 0.5);
    margin-bottom: 6px;
}

.location-settings {
    display: flex;
    gap: 12px;
}

.geofence-radius {
    font-size: 11px;
    color: rgba(255, 230, 167, 0.5);
}

.geofence-status {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.geofence-status.active {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.geofence-status.inactive {
    background: rgba(255, 230, 167, 0.1);
    color: rgba(255, 230, 167, 0.5);
}

.trigger-settings {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trigger-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.trigger-toggle {
    flex-shrink: 0;
}

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

.trigger-info p {
    font-size: 12px;
    color: rgba(255, 230, 167, 0.5);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
    background: var(--bg-dark);
    border: 1px solid rgba(255, 230, 167, 0.1);
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 230, 167, 0.08);
}

.modal-header h3 {
    font-size: 1.1rem;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 230, 167, 0.6);
    cursor: pointer;
    padding: 4px;
    display: flex;
}

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

.modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 230, 167, 0.1);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    animation: toastIn 0.3s ease;
    min-width: 300px;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--error);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

.toast-icon {
    color: var(--success);
}

.toast.error .toast-icon {
    color: var(--error);
}

.toast.warning .toast-icon {
    color: var(--warning);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    color: rgba(255, 230, 167, 0.7);
}

/* Date Range Picker */
.date-range-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-medium);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
}

.date-range-picker .material-icons-round {
    font-size: 18px;
    color: rgba(255, 230, 167, 0.6);
}

/* Responsive */
@media (max-width: 1400px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .templates-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .analytics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: var(--sidebar-collapsed);
    }

    .sidebar .nav-text,
    .sidebar .logo-text,
    .sidebar .user-details {
        display: none;
    }

    .main-content {
        margin-left: var(--sidebar-collapsed);
    }

    .designer-layout,
    .barista-layout,
    .notifications-layout,
    .geofencing-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .templates-grid {
        grid-template-columns: 1fr;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
    }

    .main-content {
        padding: 16px;
    }
}
/* Delete button styling */
.btn-icon.btn-delete:hover {
    background: rgba(194, 123, 123, 0.15);
    color: #C27B7B;
}
