
:root {
  --bg-dark: #e8edf5;
  --bg-sidebar: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-secondary: rgba(230, 235, 245, 0.9);
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --accent-primary: #3b82f6;
  --accent-secondary: #8b5cf6;
  --success-color: #059669;
  --border-color: rgba(0, 0, 0, 0.10);
  --primary-color: #3b82f6;
  --gradient-1: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-2: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-3: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
  -webkit-tap-highlight-color: transparent;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
  margin: 16px 0;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.3);
}
::-webkit-scrollbar-button {
  display: none !important;
  -webkit-appearance: none;
  width: 0 !important;
  height: 0 !important;
}

html {
  overflow-x: hidden;
  width: 100%;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

body::before, body::after {
  content: '';
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  z-index: -1;
  opacity: 0.15;
}

body::before {
  background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
  top: -200px;
  left: -100px;
}

body::after {
  background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
  bottom: -200px;
  right: -100px;
}

.app-container {
  display: flex;
  height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.sidebar {
  width: 280px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 24px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  overflow: hidden;
  z-index: 50;
}

.sidebar.closed {
  width: 80px;
  padding: 24px 16px;
}

.logo-container {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  align-items: center;
  margin-bottom: 48px;
  width: 100%;
}

.sidebar.closed .logo-container {
  justify-content: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar.closed .logo {
  display: none;
}

.toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s;
}

.toggle-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.nav-text {
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.2s ease, display 0.2s ease;
}

.sidebar.closed .nav-text {
  display: none;
  opacity: 0;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.3s ease;
  overflow: hidden;
}

.sidebar.closed .nav-item {
  justify-content: center;
  padding: 14px;
}

.nav-item:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

.sidebar.open .nav-item:hover {
  transform: translateX(5px);
}

.nav-item.active {
  background: var(--gradient-1);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.header {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-title {
  font-size: 20px;
  font-weight: 600;
}

.card h2 {
  font-size: 16px;
  font-weight: 600;
}

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

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

.content-area {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* Momentum scrolling for mobile */
  scroll-behavior: smooth;
  transform: translateZ(0); /* Hardware accelerate the scrolling layer */
}

.content-area::-webkit-scrollbar {
  width: 8px;
}

.content-area::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform: translateZ(0); /* Hardware acceleration */
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-auto-rows: 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.order-stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

@media (hover: hover) and (pointer: fine) {
  .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }
}

.stat-card.active {
  border: 2px solid var(--primary-color) !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12), 0 6px 20px rgba(59, 130, 246, 0.15);
  background: transparent !important;
}

.stat-card:active {
  transform: scale(0.99) translateY(0px);
  transition: transform 0.15s ease;
}

.stat-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  flex-shrink: 0;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.stat-icon svg {
  width: 28px !important;
  height: 28px !important;
  stroke-width: 2px !important;
}

.stat-icon.blue   { background: rgba(59, 130, 246, 0.1);  color: #3b82f6; }
.stat-icon.green  { background: rgba(16, 185, 129, 0.1);  color: #10b981; }
.stat-icon.orange { background: rgba(245, 158, 11, 0.1);  color: #f59e0b; }
.stat-icon.purple { background: rgba(139, 92, 246, 0.1);  color: #8b5cf6; }
.stat-icon.red    { background: rgba(239, 68, 68, 0.1);   color: #ef4444; }
.stat-icon.teal   { background: rgba(20, 184, 166, 0.1);  color: #14b8a6; }

.stat-info h3 {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.stat-info p {
  font-size: 14px;
  font-weight: normal;
}

.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 600px;
  border-collapse: separate;
  border-spacing: 0;
}

th, td {
  padding: 12px 14px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
  font-size: 13px;
}

th {
  color: var(--text-primary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  background: rgba(59, 130, 246, 0.08);
}

th:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

th:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

tr {
  transition: background-color 0.2s ease;
}

tr:hover {
  background-color: rgba(59, 130, 246, 0.05);
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-active { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.status-inactive { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.search-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

input, select {
  width: 100%;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

input[type="time"], input[type="date"] {
  cursor: pointer;
}

input[type="time"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator {
  display: block !important;
  cursor: pointer;
  opacity: 1;
  width: 20px;
  height: 20px;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

select option {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  padding: 12px;
}

input:focus, select:focus {
  border-color: var(--accent-primary);
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px #f0f4fa inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.btn {
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  background: var(--gradient-1);
  color: white;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

.animate-fade-in {
  animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-image {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.item-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}
.item-row input, .item-row .item-select {
  min-width: 0;
  padding-left: 12px;
  padding-right: 12px;
}
.item-name { flex: 2; margin-bottom: 0; }
.item-price { flex: 1.2; margin-bottom: 0; }
.item-qty { width: 75px; text-align: center; margin-bottom: 0; }
.item-select { flex: 1; margin-bottom: 0; }

html:has(.modal-overlay),
body:has(.modal-overlay),
body:has(.modal-overlay) .app-container,
body:has(.modal-overlay) .content-area {
  overflow: hidden !important;
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(100, 116, 139, 0.4);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
  padding: 16px;
  box-sizing: border-box;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  clip-path: inset(0 0 0 0 round 20px);
  box-sizing: border-box;
}

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

.modal-header h2 {
  font-size: 18px;
  margin: 0;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  display: flex;
}

.modal-close:hover {
  color: #ef4444;
}

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

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

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

.btn-secondary {
  background: transparent;
  border: 1.5px solid rgba(71, 85, 105, 0.4);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(71, 85, 105, 0.08);
  box-shadow: none;
}

.action-btns {
  display: flex;
  gap: 8px;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

i[data-lucide] {
  display: inline-block;
}

.show-on-mobile-inline, .hide-on-desktop {
  display: none !important;
}

.icon-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-primary);
}

.icon-btn.edit:hover { 
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6; 
}
.icon-btn.delete:hover { 
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444; 
}

@media screen and (max-width: 768px) {
  .hide-on-mobile { display: none !important; }
  .show-on-mobile-inline { display: inline-flex !important; }
  .hide-on-desktop { display: table-row !important; }
  .mobile-expand-row { background: rgba(0, 0, 0, 0.02); }
  
  table {
    min-width: 100% !important;
  }
  
  html, body {
    overflow-y: visible;
    overflow-x: hidden;
  }

  .app-container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .content-area {
    overflow-y: visible !important;
  }

  .sidebar {
    width: 100%;
    padding: 16px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
  }

  .sidebar.closed {
    min-height: 72px; /* Just logo and toggle */
    width: 100%;
    padding: 16px;
  }

  .sidebar.open {
    height: auto;
    max-height: 100vh;
    overflow-y: auto;
  }

  .logo-container {
    margin-bottom: 0;
  }
  
  .sidebar.open .logo-container {
    margin-bottom: 16px;
  }

  .logo {
    justify-content: flex-start;
    font-size: 18px;
    gap: 8px;
  }
  
  .logo svg, .logo i {
    width: 24px !important;
    height: 24px !important;
  }
  
  .sidebar.closed .logo-container {
    justify-content: flex-start;
  }
  
  .sidebar.closed .logo {
    display: flex; /* keep it visible on mobile */
  }

  .sidebar.closed .logo-text {
    display: inline-block;
  }
  
  .sidebar.closed .nav-menu {
    display: none;
  }

  .nav-menu {
    flex-direction: column;
    overflow-x: hidden;
    gap: 4px;
    padding-bottom: 8px;
    margin-top: 12px;
  }

  .nav-menu::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    padding: 10px 16px;
    justify-content: flex-start;
    font-size: 14px;
    border-radius: 10px;
  }
  
  .nav-item i, .nav-item svg {
    width: 20px !important;
    height: 20px !important;
  }
  
  .sidebar.closed .nav-item {
    padding: 10px 16px;
  }
  
  .sidebar.closed .nav-text {
    display: inline-block;
    opacity: 1;
  }

  .nav-text {
    display: inline-block;
    opacity: 1;
  }
  
  .nav-item:hover {
    transform: none;
  }

  .main-content {
    overflow: visible;
    margin-top: 72px;
  }

  .header {
    height: auto;
    padding: 16px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  .user-profile {
    position: fixed !important;
    top: 16px;
    right: 16px;
    z-index: 1001;
    gap: 8px !important;
  }

  .user-profile > div:first-child span:first-child {
    font-size: 13px !important;
  }

  .user-profile > div:first-child span:last-child {
    font-size: 11px !important;
  }

  .header-title {
    font-size: 18px;
  }

  .content-area {
    padding: 12px;
    overflow: visible;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    gap: 8px;
    margin-bottom: 20px;
  }

  .order-stats-container {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  
  .order-stats-container > div:nth-child(3) {
    grid-column: 1 / span 2;
  }

  .stat-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 6px 8px;
    padding: 12px;
  }

  .stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 16px;
    grid-column: 1;
    grid-row: 1;
  }

  .stat-icon svg {
    width: 20px !important;
    height: 20px !important;
  }

  .stat-info {
    display: block;
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
  }

  .stat-info h3 {
    font-size: 11px;
    margin-bottom: 2px;
  }

  .stat-info p:nth-of-type(1) {
    font-size: 12px;
    margin-top: 0;
  }

  .stat-info p:nth-of-type(2) {
    font-size: 12px;
    margin-top: 2px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .search-bar {
    flex-direction: column;
  }

  .modal-content {
    padding: 16px;
    border-radius: 16px;
  }

  input, select {
    padding: 10px 12px;
    font-size: 14px;
  }

  .btn {
    padding: 10px 16px;
    font-size: 13px;
  }

  .item-row {
    flex-wrap: wrap;
  }
  
  .item-name, .item-select {
    flex: 1 1 100%;
    margin-bottom: 4px;
  }
  
  .item-price {
    flex: 1;
  }
  
  .item-qty {
    flex: 0 0 80px;
    width: 80px;
  }
}

input[type='date']::-webkit-calendar-picker-indicator {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%233b82f6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
    cursor: pointer;
}
input[type='time']::-webkit-calendar-picker-indicator {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%233b82f6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg>');
    cursor: pointer;
}


input[type='date']::-webkit-calendar-picker-indicator, input[type='time']::-webkit-calendar-picker-indicator { opacity: 0; cursor: pointer; position: absolute; right: 12px; }


.stat-card.active-green {
  border: 2px solid #10b981 !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12), 0 6px 20px rgba(16, 185, 129, 0.15);
}
.stat-card.active-red {
  border: 2px solid #ef4444 !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12), 0 6px 20px rgba(239, 68, 68, 0.15);
}


.dashboard-header-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
  gap: 12px;
}
@media screen and (max-width: 768px) {
  .dashboard-header-actions {
    justify-content: space-between;
  }
  .dashboard-header-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 10px 8px !important;
    font-size: 13px !important;
  }
}


.receipt-ticket-wrapper {
  margin: 0 auto;
  max-width: 350px;
  width: 100%;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.15)) drop-shadow(0 0 5px rgba(0,0,0,0.15));
}

.receipt-ticket {
  background: #ffffff;
  color: #000000;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  line-height: 1.5;
  padding: 30px 24px;
  width: 100%;
  box-sizing: border-box;
  -webkit-mask-image: radial-gradient(circle at 10px 0px, transparent 5px, black 5.5px), radial-gradient(circle at 10px 100%, transparent 5px, black 5.5px);
  -webkit-mask-size: 20px 51%;
  -webkit-mask-repeat: repeat-x;
  -webkit-mask-position: top, bottom;
  mask-image: radial-gradient(circle at 10px 0px, transparent 5px, black 5.5px), radial-gradient(circle at 10px 100%, transparent 5px, black 5.5px);
  mask-size: 20px 51%;
  mask-repeat: repeat-x;
  mask-position: top, bottom;
}

.receipt-ticket-flat {
  padding: 24px 16px !important;
  border-radius: 0 !important;
  -webkit-mask-image: radial-gradient(circle at 10px 0px, transparent 5px, black 5.5px), radial-gradient(circle at 10px 100%, transparent 5px, black 5.5px);
  -webkit-mask-size: 20px 51%;
  -webkit-mask-repeat: repeat-x;
  -webkit-mask-position: top, bottom;
  mask-image: radial-gradient(circle at 10px 0px, transparent 5px, black 5.5px), radial-gradient(circle at 10px 100%, transparent 5px, black 5.5px);
  mask-size: 20px 51%;
  mask-repeat: repeat-x;
  mask-position: top, bottom;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.spinner { animation: spin 1s linear infinite; }


.spinner { width: 40px; height: 40px; border: 4px solid rgba(59, 130, 246, 0.1); border-top-color: var(--accent-primary); border-radius: 50%; }


.login-container { display: flex; width: 100%; max-width: 900px; background: var(--bg-card); border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.login-left { flex: 1; background: var(--gradient-1); padding: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; position: relative; }
.login-right { flex: 1; padding: 50px 40px; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 768px) { .login-container { flex-direction: column; max-width: 400px; } .login-left { display: none; } .login-right { padding: 40px 30px; } }

.logo img { height: 52px; object-fit: contain; margin-left: 16px; }
@media screen and (max-width: 768px) { .logo img { margin-left: -4px; height: 42px; } }

.modal-body input[type="time"] { position: relative; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='12' cy='12' r='10'%3e%3c/circle%3e%3cpolyline points='12 6 12 12 16 14'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; padding-right: 40px !important; }
.modal-body input[type="time"]::-webkit-calendar-picker-indicator { position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100% !important; height: 100% !important; opacity: 0 !important; cursor: pointer !important; display: block !important; }
