/* =============================================
   S S CHICKEN — Main Stylesheet
   Mobile-First | Deep Red + Gold + White
============================================= */

:root {
  --primary: #b71c1c;
  --primary-dark: #7f0000;
  --primary-light: #e53935;
  --secondary: #ffffff;
  --accent: #ffc107;
  --accent-dark: #ffa000;
  --bg: #f5f5f5;
  --bg-card: #ffffff;
  --text: #212121;
  --text-secondary: #757575;
  --text-light: #bdbdbd;
  --border: #e0e0e0;
  --success: #2e7d32;
  --danger: #c62828;
  --warning: #f57f17;
  --info: #1565c0;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --sidebar-width: 250px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ==================== LOGIN ==================== */
.login-page {
  min-height: 100vh;
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary) 50%,
    var(--primary-light) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 400px;
}

.login-card {
  background: var(--secondary);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.5s ease;
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 36px;
  color: white;
  box-shadow: 0 4px 20px rgba(183, 28, 28, 0.3);
}

.login-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}

.login-header p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 4px 0 0;
}

.login-card .form-floating .form-control {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  height: 56px;
  font-size: 16px;
  transition: var(--transition);
}

.login-card .form-floating .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(183, 28, 28, 0.1);
}

.btn-login {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  height: 52px;
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-login:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(183, 28, 28, 0.3);
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  color: var(--text-light);
}

.login-error {
  font-size: 13px;
  border-radius: var(--radius-sm);
  animation: shake 0.3s ease;
}

/* ==================== TOP NAVBAR ==================== */
.top-navbar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.top-navbar .navbar-brand {
  font-size: 18px;
  font-weight: 700;
  color: white !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-navbar .navbar-brand i {
  color: var(--accent);
  font-size: 22px;
}

.top-navbar .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 14px;
  font-weight: 500;
}

.top-navbar .user-badge {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  color: white;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==================== BOTTOM NAV (MOBILE) ==================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
  z-index: 1000;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: var(--transition);
  min-width: 60px;
}

.bottom-nav a i {
  font-size: 20px;
  margin-bottom: 2px;
}

.bottom-nav a.active {
  color: var(--primary);
}

.bottom-nav a.active i {
  color: var(--primary);
}

@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
}

/* ==================== SIDEBAR (DESKTOP) ==================== */
.sidebar {
  display: none;
}

@media (min-width: 768px) {
  .sidebar {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 250px;
    background: linear-gradient(
      180deg,
      var(--primary-dark) 0%,
      var(--primary) 100%
    );
    color: white;
    z-index: 1001;
    overflow-y: auto;
    padding-top: 0;
  }

  .sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .sidebar-brand i {
    font-size: 28px;
    color: var(--accent);
  }

  .sidebar-brand h5 {
    margin: 0;
    font-weight: 700;
    font-size: 18px;
  }

  .sidebar-brand small {
    font-size: 11px;
    opacity: 0.7;
  }

  .sidebar-nav {
    list-style: none;
    padding: 12px 0;
    margin: 0;
  }

  .sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
  }

  .sidebar-nav li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
  }

  .sidebar-nav li a.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-left-color: var(--accent);
  }

  .sidebar-nav li a i {
    width: 20px;
    text-align: center;
    font-size: 16px;
  }

  .main-content-area {
    margin-left: 250px;
  }

  .top-navbar {
    margin-left: 250px;
  }
}

/* ==================== PAGE CONTENT ==================== */
.page-content {
  padding: 12px;
  padding-bottom: 90px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .page-content {
    padding: 24px 32px;
    padding-bottom: 40px;
  }
}

.page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

@media (min-width: 768px) {
  .page-title {
    font-size: 24px;
  }
}

.page-title i {
  color: var(--primary);
}

/* ==================== STAT CARDS ==================== */
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .stat-card {
    padding: 12px;
  }
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.stat-card.red::before {
  background: var(--primary);
}
.stat-card.gold::before {
  background: var(--accent);
}
.stat-card.green::before {
  background: var(--success);
}
.stat-card.blue::before {
  background: var(--info);
}

.stat-card .stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 10px;
}

@media (min-width: 768px) {
  .stat-card .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
    margin-bottom: 12px;
  }
}

.stat-card.red .stat-icon {
  background: rgba(183, 28, 28, 0.1);
  color: var(--primary);
}
.stat-card.gold .stat-icon {
  background: rgba(255, 193, 7, 0.15);
  color: var(--accent-dark);
}
.stat-card.green .stat-icon {
  background: rgba(46, 125, 50, 0.1);
  color: var(--success);
}
.stat-card.blue .stat-icon {
  background: rgba(21, 101, 192, 0.1);
  color: var(--info);
}

.stat-card .stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 4px;
}

@media (min-width: 768px) {
  .stat-card .stat-value {
    font-size: 24px;
  }
}

.stat-card .stat-label {
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (min-width: 768px) {
  .stat-card .stat-label {
    font-size: 12px;
  }
}

/* ==================== CARDS ==================== */
.app-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: var(--transition);
}

.app-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.app-card .card-header {
  background: rgba(183, 28, 28, 0.02);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 12px 16px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

@media (min-width: 768px) {
  .app-card .card-header {
    padding: 16px 20px;
    font-size: 15px;
  }
}

.app-card .card-header i {
  color: var(--primary);
  margin-right: 6px;
  width: 20px;
  text-align: center;
}

.app-card .card-body {
  padding: 16px;
}

@media (min-width: 768px) {
  .app-card .card-body {
    padding: 20px;
  }
}

/* ==================== BUTTONS ==================== */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 10px 20px;
  transition: var(--transition);
}

.btn-primary-custom:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  transform: translateY(-1px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #333;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 10px 20px;
  transition: var(--transition);
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
  color: #333;
}

.btn-outline-custom {
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 8px 18px;
  background: transparent;
  transition: var(--transition);
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: white;
}

.btn-touch {
  min-height: 48px;
  font-size: 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* ==================== TABLES ==================== */
.table-responsive {
  border-radius: var(--radius-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.app-table {
  margin: 0;
  font-size: 14px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.app-table thead th {
  background: #f8f9fa;
  border-bottom: 2px solid var(--border);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  padding: 12px 16px;
  white-space: nowrap;
}

.app-table tbody td {
  padding: 14px 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.app-table tbody tr {
  transition: var(--transition);
}

.app-table tbody tr:hover {
  background: rgba(183, 28, 28, 0.02);
}

/* Mobile Table Adjustments */
@media (max-width: 768px) {
  .app-table {
    font-size: 12px;
  }
  .app-table thead th {
    padding: 10px 8px;
    font-size: 10px;
  }
  .app-table tbody td {
    padding: 10px 8px;
  }
  .invoice-no-badge {
    font-family: monospace;
    font-weight: 700;
    color: var(--primary);
    background: rgba(183, 28, 28, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    display: inline-block;
    white-space: nowrap;
  }
  .date-cell {
    line-height: 1.2;
    min-width: 80px;
    display: block;
  }
}

/* ==================== FORMS ==================== */
.form-control,
.form-select {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 15px;
  transition: var(--transition);
  height: auto;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(183, 28, 28, 0.08);
}

.form-label {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 6px;
}

/* ==================== POS SPECIFIC ==================== */
.pos-container {
  min-height: calc(100vh - 120px);
}

.pos-mode-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.pos-mode-toggle .btn {
  flex: 1;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.pos-mode-toggle .btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.pos-quick-add {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.pos-quick-add .form-control {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  height: 56px;
}

.pos-add-btn {
  background: linear-gradient(135deg, var(--success), #1b5e20);
  color: white;
  border: none;
  width: 100%;
  height: 52px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  transition: var(--transition);
}

.pos-add-btn:hover {
  transform: translateY(-1px);
  color: white;
}

.cart-section {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.cart-header {
  background: var(--bg);
  padding: 14px 18px;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-item {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item:hover {
  background: rgba(0, 0, 0, 0.01);
}

.cart-item-info h6 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 2px;
}

.cart-item-info small {
  color: var(--text-secondary);
  font-size: 12px;
}

.cart-item-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.cart-item-actions .btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border-radius: 50%;
}

.cart-total {
  padding: 18px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
}

.cart-total .total-label {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
}

.cart-total .total-value {
  font-size: 28px;
  font-weight: 800;
}

.payment-modes {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

.payment-modes .btn {
  flex: 1;
  padding: 14px;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: white;
  color: var(--text);
  transition: var(--transition);
}

.payment-modes .btn.active {
  border-color: var(--primary);
  background: rgba(183, 28, 28, 0.05);
  color: var(--primary);
}

.payment-modes .btn i {
  margin-right: 6px;
}

.checkout-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  width: 100%;
  height: 56px;
  font-size: 18px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(183, 28, 28, 0.3);
  color: white;
}

.checkout-btn:disabled {
  opacity: 0.5;
  transform: none;
}

/* ==================== STOCK ENTRY ==================== */
.stock-summary {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius);
  padding: 16px;
  color: white;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 576px) {
  .stock-summary {
    grid-template-columns: repeat(4, 1fr);
    padding: 20px;
    gap: 16px;
  }
}

.stock-summary .summary-item {
  text-align: center;
  padding: 4px;
}

.stock-summary .summary-value {
  font-size: 20px;
  font-weight: 800;
  display: block;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .stock-summary .summary-value {
    font-size: 24px;
  }
}

.stock-summary .summary-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
  display: block;
  margin-top: 2px;
}

/* ==================== BADGES ==================== */
.badge-cash {
  background: var(--success);
  color: white;
}
.badge-upi {
  background: var(--info);
  color: white;
}
.badge-credit {
  background: var(--warning);
  color: #333;
}

/* ==================== INVOICE ==================== */
.invoice-container {
  background: white;
  max-width: 400px;
  margin: 0 auto;
  padding: 24px;
  font-size: 14px;
}

.invoice-header {
  text-align: center;
  border-bottom: 2px dashed #333;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.invoice-header h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
}

.invoice-header p {
  margin: 2px 0;
  font-size: 12px;
  color: #666;
}

.invoice-details {
  margin-bottom: 16px;
  font-size: 13px;
}

.invoice-details .row {
  margin-bottom: 4px;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.invoice-table th {
  background: #f0f0f0;
  padding: 8px;
  font-size: 12px;
  text-align: left;
  border: 1px solid #ddd;
}

.invoice-table td {
  padding: 8px;
  border: 1px solid #ddd;
  font-size: 13px;
}

.invoice-total {
  text-align: right;
  font-size: 18px;
  font-weight: 800;
  padding: 12px 0;
  border-top: 2px dashed #333;
  border-bottom: 2px dashed #333;
  margin-bottom: 16px;
}

.invoice-footer {
  text-align: center;
  font-size: 12px;
  color: #666;
}

/* ==================== CHART CONTAINER ==================== */
.chart-container {
  position: relative;
  width: 100%;
  height: 250px;
}

@media (min-width: 768px) {
  .chart-container {
    height: 300px;
  }
}

/* ==================== TOAST CUSTOM ==================== */
.toast-custom {
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
}

.toast-custom.success {
  background: var(--success);
  color: white;
}
.toast-custom.error {
  background: var(--danger);
  color: white;
}
.toast-custom.warning {
  background: var(--warning);
  color: #333;
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

.empty-state i {
  font-size: 48px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.empty-state h5 {
  font-weight: 600;
  margin-bottom: 4px;
}

/* ==================== LOW STOCK ALERT ==================== */
.low-stock-alert {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  border: 1px solid #ffb74d;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  animation: pulse 2s infinite;
}

.low-stock-alert i {
  color: var(--warning);
  font-size: 20px;
}

/* ==================== MODAL CUSTOM ==================== */
.modal-content {
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  border: none;
  padding: 16px 20px;
}

.modal-header .btn-close {
  filter: brightness(0) invert(1);
}

.modal-footer {
  border-top: 1px solid var(--border);
  padding: 14px 20px;
}

/* ==================== REPORT TABS ==================== */
.report-tabs {
  display: flex;
  gap: 4px;
  background: var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.report-tabs::-webkit-scrollbar {
  display: none;
}

.report-tabs .tab-btn {
  flex: 1;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: transparent;
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
  color: var(--text-secondary);
}

.report-tabs .tab-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(183, 28, 28, 0.2);
}

/* ==================== DATE FILTER ==================== */
.date-filter {
  display: flex;
  gap: 8px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.date-filter .form-group {
  flex: 1;
  min-width: 140px;
}

@media (max-width: 576px) {
  .date-filter .form-group {
    min-width: 100%;
  }
}

/* ==================== ANIMATIONS ==================== */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-in {
  animation: slideUp 0.3s ease;
}

/* ==================== QUICK ACTION CARDS ==================== */
.quick-action {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
}

.quick-action:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.quick-action .qa-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.quick-action .qa-icon.red {
  background: rgba(183, 28, 28, 0.1);
  color: var(--primary);
}
.quick-action .qa-icon.gold {
  background: rgba(255, 193, 7, 0.15);
  color: var(--accent-dark);
}
.quick-action .qa-icon.green {
  background: rgba(46, 125, 50, 0.1);
  color: var(--success);
}
.quick-action .qa-icon.blue {
  background: rgba(21, 101, 192, 0.1);
  color: var(--info);
}

.quick-action h6 {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
}
.quick-action small {
  color: var(--text-secondary);
  font-size: 12px;
}

/* ==================== PRINT ==================== */
@media print {
  .top-navbar,
  .bottom-nav,
  .sidebar,
  .no-print {
    display: none !important;
  }
  body {
    background: white;
    padding: 0;
    margin: 0;
  }
  .page-content {
    padding: 0;
    margin: 0;
  }
  .invoice-container {
    box-shadow: none;
    padding: 0;
    max-width: 100%;
  }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--text-light);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* ==================== MOBILE UTILITY ==================== */
.mobile-only {
  display: block;
}
.desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .mobile-only {
    display: none;
  }
  .desktop-only {
    display: block;
  }
}

/* Prevent body scroll when modal open on mobile */
body.modal-open {
  overflow: hidden;
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* ==================== FOOTER ==================== */
.app-footer {
  width: 100%;
  margin-top: 20px;
}
@media (min-width: 768px) {
  .app-footer {
    padding-left: var(--sidebar-width);
  }
}
.app-footer.no-print {
  display: block;
}
