/* Cinnamon POS Theme - Modern, Professional, Clean (No gradients) */
:root {
  --brand-50: #f5f7fb;
  --brand-100: #e9eef7;
  --brand-200: #d4dff0;
  --brand-300: #a8c0e2;
  --brand-400: #7ea6d8;
  --brand-500: #4a7cc6; /* primary */
  --brand-600: #3d66a3;
  --brand-700: #2f4d7a;
  --brand-800: #243b5f;
  --brand-900: #1a2a44;

  --accent-500: #16a085; /* success tone */
  --warn-500: #e67e22;  /* orange */
  --danger-500: #e74c3c; /* red */
  --info-500: #3498db;

  --bg-body: #f6f7f9;
  --bg-surface: #ffffff;
  --text-900: #111827;
  --text-700: #374151;
  --text-500: #6b7280;
  --border-200: #e5e7eb;
  --shadow-1: 0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.08);
}

body {
  background-color: var(--bg-body);
  color: var(--text-900);
}

.navbar.top-header {
  background-color: #1a1919  !important;
  border-bottom: 1px solid #1a252f !important;
}

/* Sidebar */
.sidebar {
  background-color: #1a1919 ;
  min-height: 100vh;
}
.sidebar .nav-link {
  color: #cbd5e1;
  border-radius: 8px;
  margin: 2px 8px;
  transition: background-color .15s ease, color .15s ease;
}
.sidebar .nav-link .fa,
.sidebar .nav-link i { color: #cbd5e1; transition: color .15s ease; }
.sidebar .nav-link.active,
.sidebar .nav-link:focus,
.sidebar .nav-link:hover { color: #fff; background-color: var(--brand-800) !important; }
.sidebar .nav-link:hover { transform: none; }
.sidebar .nav-link.active { transform: none; box-shadow: none; }
/* already removed above with specific rule */
.sidebar .nav-link.active i,
.sidebar .nav-link:hover i { color: #fff; }
.sidebar h4, .sidebar .text-white, .sidebar .text-white-50 { color: #e5e7eb !important; }

/* Cards */
.card { border: 1px solid var(--border-200); box-shadow: var(--shadow-1); }
.card-header { background: var(--bg-surface); border-bottom: 1px solid var(--border-200); }

/* Buttons (flat, no gradients) */
.btn-primary { background-color: var(--brand-500); border-color: var(--brand-500); }
.btn-primary:hover { background-color: var(--brand-600); border-color: var(--brand-600); }
.btn-secondary { background-color: #e5e7eb; border-color: #e5e7eb; color: var(--text-900); }
.btn-secondary:hover { background-color: #d1d5db; border-color: #d1d5db; color: var(--text-900); }
.btn-success { background-color: var(--accent-500); border-color: var(--accent-500); }
.btn-success:hover { background-color: #138a73; border-color: #138a73; }
.btn-warning { background-color: var(--warn-500); border-color: var(--warn-500); color: #fff; }
.btn-warning:hover { background-color: #cf6e16; border-color: #cf6e16; }
.btn-danger { background-color: var(--danger-500); border-color: var(--danger-500); }
.btn-danger:hover { background-color: #cf3f31; border-color: #cf3f31; }
.btn-outline-primary { color: var(--brand-600); border-color: var(--brand-300); }
.btn-outline-primary:hover { color: #fff; background: var(--brand-600); border-color: var(--brand-600); }
.btn:focus { box-shadow: 0 0 0 .2rem rgba(74,124,198,.25); }
.btn:disabled, .btn.disabled { opacity: .65; }
.btn:hover { transform: none !important; box-shadow: none !important; }

/* Stat cards - remove gradients */
.stat-card.primary { background: var(--brand-500) !important; color: #fff !important; }
.stat-card.success { background: var(--accent-500) !important; color: #fff !important; }
.stat-card.warning { background: var(--warn-500) !important; color: #fff !important; }
.stat-card.danger { background: var(--danger-500) !important; color: #fff !important; }
.stat-card.info { background: var(--info-500) !important; color: #fff !important; }
.stat-card.secondary { background: #6b7280 !important; color: #fff !important; }
.stat-card:hover { transform: none !important; box-shadow: var(--shadow-1) !important; }

/* Modern Stat Cards */
.modern-stat-card {
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.modern-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modern-stat-card.stat-card-clickable {
    cursor: pointer;
}

.stat-card-body {
    padding: 1.5rem;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.stat-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon {
    font-size: 1.75rem;
    color: white;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.5rem;
}

.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    margin-top: 0.5rem;
}

.stat-trend i {
    font-size: 0.65rem;
}

@media (max-width: 768px) {
    .stat-card-body {
        padding: 1.25rem;
    }
    
    .stat-icon-wrapper {
        width: 56px;
        height: 56px;
    }
    
    .stat-icon {
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .stat-card-body {
        padding: 1rem;
    }
    
    .stat-icon-wrapper {
        width: 48px;
        height: 48px;
    }
    
    .stat-icon {
        font-size: 1.25rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
}

/* Badges */
.badge.bg-success { background-color: var(--accent-500) !important; }
.badge.bg-primary { background-color: var(--brand-500) !important; }

/* Forms */
.form-control, .form-select { border: 1px solid var(--border-200); }
.form-control:focus, .form-select:focus { border-color: var(--brand-400); box-shadow: 0 0 0 .2rem rgba(74,124,198,.15); }
.input-group-text { background: #f3f4f6; border: 1px solid var(--border-200); color: var(--text-700); }

/* Tables */
.table thead th { background: #f9fafb; color: var(--text-700); }
.table-striped tbody tr:nth-of-type(odd) { background-color: #fafbfc; }

/* Dropdowns */
.dropdown-menu { border: 1px solid var(--border-200); box-shadow: var(--shadow-1); }

/* Quick actions button */
.navbar .btn-primary.btn-sm { background-color: var(--brand-500); border-color: var(--brand-500); }

/* POS header quick actions */
.pos-header .action-btn { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }
.pos-header .action-btn:hover { background: var(--brand-600); border-color: var(--brand-600); }

/* Utility */
.text-muted { color: var(--text-500) !important; }