:root {
  --bg: #0a0a0b;
  --card-bg: #1a1a1c;
  --card-bg-hover: #222224;
  --text: #ffffff;
  --text-secondary: #b8b8b8;
  --accent: #0066ff;
  --muted: #9e9e9e;
  --scroll-track: transparent;
  --scroll-thumb: #55555555;
  --warning: #ff9500;
  --danger: #ff3b30;
  --border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(26, 26, 28, 0.8);
  --glass-border: rgba(255, 255, 255, 0.1);
  --success: #30d158;
  --deadline-primary: #0a84ff;
  --deadline-secondary: #4facfe;
  --deadline-tertiary: #74c0fc;
  --sidebar-bg: rgba(15, 15, 17, 0.95);
  --sidebar-border: rgba(255, 255, 255, 0.12);
  --sidebar-accent: #0a84ff;
  --sidebar-text: #ffffff;
  --sidebar-text-muted: rgba(255, 255, 255, 0.7);
  --sidebar-hover: rgba(255, 255, 255, 0.08);
  --sidebar-shadow: rgba(0, 0, 0, 0.8);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: max(2rem, env(safe-area-inset-top)) 
           max(2rem, env(safe-area-inset-right)) 
           max(2rem, env(safe-area-inset-bottom)) 
           max(2rem, env(safe-area-inset-left));
  line-height: 1.6;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent);
  text-align: center;
}

/* SIDEBAR STYLES */
.sidebar {
  position: fixed;
  top: 0;
  left: -450px;
  width: 450px;
  height: 100vh;
  background: rgba(15, 15, 17, 0.95);
  backdrop-filter: blur(30px) saturate(1.2);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1000;
  overflow-y: auto;
  box-shadow: 
    0 0 100px rgba(0, 0, 0, 0.8),
    inset 1px 0 0 rgba(255, 255, 255, 0.1);
}

.sidebar.open {
  left: 0;
  box-shadow: 
    0 0 100px rgba(0, 0, 0, 0.8),
    0 0 200px rgba(10, 132, 255, 0.1),
    inset 1px 0 0 rgba(255, 255, 255, 0.1);
}

.sidebar-toggle {
  position: fixed;
  top: 2rem;
  left: 2rem;
  z-index: 1001;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(28, 28, 30, 0.9);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.sidebar-toggle:hover {
  transform: translateY(-4px) scale(1.1);
  border-color: var(--accent);
  box-shadow: 
    0 15px 40px rgba(10, 132, 255, 0.3),
    0 0 0 8px rgba(10, 132, 255, 0.1);
}

.sidebar.open + .sidebar-toggle {
  left: 480px;
  transform: rotate(90deg);
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--accent), #4facfe);
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #4facfe, var(--accent));
}

/* Ultra Compact View */
.appointments-ultra-compact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.compact-mini-note-indicator {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.appointment-compact-mini:hover .compact-mini-note-indicator {
  opacity: 1;
}

.appointment-compact-mini {
  background: rgba(255, 255, 255, 0.04);
  border-left: 4px solid var(--muted);
  border-radius: 0.5rem;
  padding: 0.6rem 0.8rem;
  display: grid;
  grid-template-columns: 50px 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  position: relative;
}

.appointment-compact-mini:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.appointment-compact-mini.attended {
  border-left-color: var(--success);
  background: rgba(50, 215, 75, 0.05);
}

.appointment-compact-mini.pending {
  border-left-color: var(--warning);
  background: rgba(255, 159, 10, 0.05);
}

.appointment-compact-mini.not-attended {
  border-left-color: var(--danger);
  background: rgba(255, 69, 58, 0.05);
}

.appointment-compact-mini.overdue {
  border-left-color: var(--danger);
  animation: pulse-mini 2s ease-in-out infinite;
}

/* CALENDAR MINIATURE IN SIDEBAR */
.calendar-section {
  background: linear-gradient(135deg, 
    rgba(10, 132, 255, 0.12) 0%, 
    rgba(74, 172, 254, 0.06) 30%,
    rgba(10, 132, 255, 0.02) 70%,
    transparent 100%);
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(10, 132, 255, 0.15);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem;
}

.calendar-nav-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent);
  width: 32px;
  height: 32px;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.calendar-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  transform: scale(1.1);
}

.calendar-month-year {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
  text-align: center;
  flex: 1;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
  animation: calendarSlideIn 0.3s ease-out;
}

.calendar-day-header {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.3rem;
  text-transform: uppercase;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid transparent;
  padding: 0.2rem;
}

.calendar-day-number {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
  z-index: 2;
}

.calendar-day.other-month {
  opacity: 0.3;
  pointer-events: none;
}

.calendar-day.today {
  background: linear-gradient(135deg, var(--accent), #4facfe);
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(10, 132, 255, 0.3);
}

.calendar-day.today .calendar-day-number {
  color: white;
  font-weight: 700;
}

.calendar-day.has-appointments {
  border-color: rgba(255, 0, 0, 0.5);
}

.calendar-day:hover:not(.other-month) {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  transform: scale(1.05);
}

.calendar-day.selected {
  background: rgba(10, 132, 255, 0.2);
  border-color: var(--accent);
}

.calendar-indicators {
  display: flex;
  gap: 0.15rem;
  margin-top: 0.15rem;
  z-index: 2;
}

.calendar-indicator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
}

.calendar-indicator.attended {
  background: var(--success);
  box-shadow: 0 0 4px var(--success);
}

.calendar-indicator.pending {
  background: var(--warning);
  box-shadow: 0 0 4px var(--warning);
}

.calendar-indicator.not-attended {
  background: var(--danger);
  box-shadow: 0 0 4px var(--danger);
}

.calendar-legend {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  font-size: 0.75rem;
}

.calendar-legend-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--muted);
}

.calendar-legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

@keyframes calendarSlideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-mini {
  0%, 100% { 
    opacity: 1;
  }
  50% { 
    opacity: 0.8;
    box-shadow: 0 0 8px rgba(255, 69, 58, 0.4);
  }
}

.compact-mini-time {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: 'Courier New', monospace;
}

.compact-mini-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.compact-mini-name {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.compact-mini-note-icon {
  font-size: 0.85rem;
  opacity: 0.7;
  flex-shrink: 0;
}

.appointment-compact-mini:hover .compact-mini-note-icon {
  opacity: 1;
}

.compact-mini-device {
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-mini-price {
  color: var(--success);
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}

.compact-mini-status {
  font-size: 1.2rem;
}

.compact-stats-header {
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.12), rgba(74, 172, 254, 0.06));
  border: 1px solid rgba(10, 132, 255, 0.2);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.stat-box {
  text-align: center;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  display: block;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-top: 0.2rem;
}

.stat-box.total .stat-value {
  color: var(--accent);
}

.stat-box.done .stat-value {
  color: var(--success);
}

.stat-box.pending .stat-value {
  color: var(--warning);
}

.date-separator {
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.15), rgba(74, 172, 254, 0.08));
  border: 1px solid rgba(10, 132, 255, 0.25);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  margin: 1rem 0 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
}

.date-separator:first-child {
  margin-top: 0;
}

.date-separator.today {
  background: linear-gradient(135deg, rgba(255, 69, 58, 0.15), rgba(255, 159, 10, 0.1));
  border-color: rgba(255, 69, 58, 0.3);
  color: #ff453a;
}

.date-separator.tomorrow {
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.15), rgba(74, 172, 254, 0.1));
  border-color: rgba(10, 132, 255, 0.3);
  color: #0a84ff;
}

.date-separator.later {
  background: linear-gradient(135deg, rgba(142, 142, 147, 0.15), rgba(174, 174, 178, 0.1));
  border-color: rgba(142, 142, 147, 0.3);
  color: #8e8e93;
}

.date-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.date-icon {
  font-size: 1rem;
}

.date-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.sidebar-header {
  padding: 2.5rem 2rem 2rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  background: linear-gradient(135deg, 
    rgba(10, 132, 255, 0.15) 0%, 
    rgba(74, 172, 254, 0.08) 50%,
    rgba(10, 132, 255, 0.03) 100%);
  position: relative;
  overflow: hidden;
}

.sidebar-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.sidebar-logo {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent) 50%, #74c0fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 2;
  letter-spacing: -0.02em;
}

.sidebar-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 2;
  font-weight: 500;
}

.sidebar-content {
  padding: 1rem;
  animation: slideInFromLeft 0.6s ease-out 0.2s both;
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.sidebar-section {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
  padding: 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.appointments-sidebar-section {
  background: linear-gradient(135deg, 
    rgba(10, 132, 255, 0.12) 0%, 
    rgba(74, 172, 254, 0.06) 30%,
    rgba(10, 132, 255, 0.02) 70%,
    transparent 100%);
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(10, 132, 255, 0.15);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.appointments-sidebar-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(10, 132, 255, 0.1) 50%, 
    transparent 100%);
  transition: left 1s ease;
}

.appointments-sidebar-section:hover::before {
  left: 100%;
}

.appointments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.appointments-header:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(2px);
}

.appointments-title-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.appointments-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.appointments-count {
  background: linear-gradient(135deg, var(--accent) 0%, #4facfe 50%, #74c0fc 100%);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 0.8rem;
  animation: pulse-badge 2s ease-in-out infinite;
  box-shadow: 
    0 4px 12px rgba(10, 132, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@keyframes pulse-badge {
  0%, 100% { 
    transform: scale(1); 
    box-shadow: 0 4px 12px rgba(10, 132, 255, 0.4);
  }
  50% { 
    transform: scale(1.05); 
    box-shadow: 0 6px 16px rgba(10, 132, 255, 0.6);
  }
}

.appointments-arrow {
  font-size: 1.2rem;
  color: var(--accent);
  transition: all 0.3s ease;
}

.appointments-arrow.expanded {
  transform: rotate(180deg);
}

.appointments-collapsible {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, opacity 0.3s ease;
  opacity: 0;
}

.appointments-collapsible.expanded {
  max-height: 400px;
  opacity: 1;
  transition: max-height 0.5s ease-in, opacity 0.4s ease;
  overflow-y: auto;
}

.appointment-card-sidebar {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.appointment-card-sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 1rem;
}

.appointment-card-sidebar:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(10, 132, 255, 0.3);
  transform: translateX(4px) translateY(-1px);
  box-shadow: 0 8px 25px rgba(10, 132, 255, 0.15);
}

.appointment-card-sidebar:hover::before {
  opacity: 1;
}

.appointment-card-sidebar.attended {
  border-left: 3px solid var(--success);
}

.appointment-card-sidebar.pending {
  border-left: 3px solid var(--warning);
}

.appointment-card-sidebar.not-attended {
  border-left: 3px solid var(--danger);
}

.appointment-card-sidebar.overdue {
  border-left: 3px solid var(--danger);
  animation: pulse 2s ease-in-out infinite;
}

.appointment-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.appointment-customer {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.appointment-time {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
}

.appointment-device {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
}

.appointment-price {
  color: var(--success);
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 0.3rem;
  padding: 0.3rem 0.6rem;
  background: rgba(50, 215, 75, 0.15);
  border-radius: 0.5rem;
  display: inline-block;
  border: 1px solid rgba(50, 215, 75, 0.3);
}

.appointment-status-badge {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.appointment-status-badge.attended {
  background: rgba(50, 215, 75, 0.2);
  color: var(--success);
}

.appointment-status-badge.pending {
  background: rgba(255, 159, 10, 0.2);
  color: var(--warning);
}

.appointment-status-badge.not-attended {
  background: rgba(255, 69, 58, 0.2);
  color: var(--danger);
}

.appointment-status-badge.overdue {
  background: rgba(255, 69, 58, 0.2);
  color: var(--danger);
  animation: pulse 1s infinite;
}

.appointments-empty {
  text-align: center;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.appointments-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.appointment-action-btn {
  flex: 1;
  padding: 0.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

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

.appointment-action-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.appointment-action-btn:hover {
  transform: translateY(-1px);
}

.sidebar-loading {
  text-align: center;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.sidebar-loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--muted);
  border-top: 2px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 0.5rem;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 1rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

  left: 100%;
}

.quick-action:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(10, 132, 255, 0.2);
  transform: translateX(6px);
  box-shadow: 0 6px 20px rgba(10, 132, 255, 0.1);
}

.quick-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent) 0%, #4facfe 50%, #74c0fc 100%);
  box-shadow: 
    0 4px 12px rgba(10, 132, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 2;
}

.quick-action-content {
  flex: 1;
  z-index: 2;
  position: relative;
}

.quick-action-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.quick-action-desc {
  font-size: 0.8rem;
  color: var(--muted);
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* NEWS STYLES */
.news-box {
  flex: 0 0 100%;
  width: 100%;
  border-radius: 1.5rem;
  padding: 2rem;
  margin-bottom: 0;
  margin-right: 0;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: block;
}

.news-box,
.news-box.warning {
  background: linear-gradient(135deg, rgba(255, 159, 10, 0.15) 0%, rgba(255, 159, 10, 0.08) 50%, rgba(255, 159, 10, 0.03) 100%);
  border: 2px solid rgba(255, 159, 10, 0.4);
  box-shadow: 0 8px 32px rgba(255, 159, 10, 0.25);
}

.news-box::before,
.news-box.warning::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    #ff9f0a 0%, 
    #ffb347 25%, 
    #ffc966 50%, 
    #ffb347 75%, 
    #ff9f0a 100%);
  border-radius: 1.5rem 1.5rem 0 0;
  animation: shimmer 3s ease-in-out infinite;
}

.news-box .news-icon,
.news-box.warning .news-icon {
  background: linear-gradient(135deg, #ff9f0a, #ffb347);
  box-shadow: 0 4px 15px rgba(255, 159, 10, 0.3);
}

.news-box.info {
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.15) 0%, rgba(10, 132, 255, 0.08) 50%, rgba(10, 132, 255, 0.03) 100%);
  border: 2px solid rgba(10, 132, 255, 0.4);
  box-shadow: 0 8px 32px rgba(10, 132, 255, 0.25);
}

.news-box.info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    #0a84ff 0%, 
    #4facfe 25%, 
    #74c0fc 50%, 
    #4facfe 75%, 
    #0a84ff 100%);
  border-radius: 1.5rem 1.5rem 0 0;
  animation: shimmer 3s ease-in-out infinite;
}

.news-box.info .news-icon {
  background: linear-gradient(135deg, #0a84ff, #4facfe);
  box-shadow: 0 4px 15px rgba(10, 132, 255, 0.3);
}

.news-box.info:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 8px 32px rgba(10, 132, 255, 0.25),
    0 15px 50px rgba(10, 132, 255, 0.35);
  border-color: rgba(10, 132, 255, 0.6);
}

.news-box.success {
  background: linear-gradient(135deg, rgba(50, 215, 75, 0.15) 0%, rgba(50, 215, 75, 0.08) 50%, rgba(50, 215, 75, 0.03) 100%);
  border: 2px solid rgba(50, 215, 75, 0.4);
  box-shadow: 0 8px 32px rgba(50, 215, 75, 0.25);
}

.news-box.success::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    #32d74b 0%, 
    #5de467 25%, 
    #7ef083 50%, 
    #5de467 75%, 
    #32d74b 100%);
  border-radius: 1.5rem 1.5rem 0 0;
  animation: shimmer 3s ease-in-out infinite;
}

.news-box.success .news-icon {
  background: linear-gradient(135deg, #32d74b, #5de467);
  box-shadow: 0 4px 15px rgba(50, 215, 75, 0.3);
}

.news-box.success:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 8px 32px rgba(50, 215, 75, 0.25),
    0 15px 50px rgba(50, 215, 75, 0.35);
  border-color: rgba(50, 215, 75, 0.6);
}

.news-box.danger {
  background: linear-gradient(135deg, rgba(255, 69, 58, 0.15) 0%, rgba(255, 69, 58, 0.08) 50%, rgba(255, 69, 58, 0.03) 100%);
  border: 2px solid rgba(255, 69, 58, 0.4);
  box-shadow: 0 8px 32px rgba(255, 69, 58, 0.25);
}

.news-box.danger::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    #ff453a 0%, 
    #ff6b5a 25%, 
    #ff8a7a 50%, 
    #ff6b5a 75%, 
    #ff453a 100%);
  border-radius: 1.5rem 1.5rem 0 0;
  animation: shimmer 3s ease-in-out infinite;
}

.news-box.danger .news-icon {
  background: linear-gradient(135deg, #ff453a, #ff6b5a);
  box-shadow: 0 4px 15px rgba(255, 69, 58, 0.3);
}

.news-box.danger:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 8px 32px rgba(255, 69, 58, 0.25),
    0 15px 50px rgba(255, 69, 58, 0.35);
  border-color: rgba(255, 69, 58, 0.6);
}

.news-box:hover,
.news-box.warning:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 8px 32px rgba(255, 159, 10, 0.25),
    0 15px 50px rgba(255, 159, 10, 0.35);
  border-color: rgba(255, 159, 10, 0.6);
}

.news-icon {
  width: 50px;
  height: 50px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  position: relative;
  overflow: hidden;
  animation: iconPulse 1.5s ease-in-out infinite;
}

}

.news-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.news-box h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.6rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
}

.news-content {
  position: relative;
  z-index: 2;
}

.news-box p {
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1.6;
  margin: 0;
  text-align: center;
  font-weight: 500;
  opacity: 0.9;
}

.news-timestamp {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.3rem 0.7rem;
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  z-index: 3;
}

.news-close {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  width: 30px;
  height: 30px;
  border: none;
  background: rgba(0, 0, 0, 0.3);
  color: var(--muted);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 3;
}

.news-close:hover {
  background: rgba(255, 69, 58, 0.7);
  color: white;
  transform: scale(1.1);
}

.news-container {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.news-wrapper {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
}

.news-navigation {
  display: none !important;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  position: relative;
  z-index: 10;
}

.news-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.news-dot.active {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.news-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.news-container.paused .news-box::before {
  animation-play-state: paused;
}

.news-container.single-news .news-navigation {
  display: none;
}

/* CATEGORY GRID */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.category-card {
  background: var(--card-bg);
  border-radius: 1.25rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  height: 225px;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.02) 50%, 
    transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 1.5rem;
  pointer-events: none;
}


.category-card:hover {
  transform: translateY(-12px) scale(1.02);
  background: var(--card-bg-hover);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}


.category-card:hover::after {
  opacity: 1;
}

.category-image {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: auto;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1.0rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 1.0rem;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.category-card:hover .category-image {
  transform: scale(1.1) translateY(-4px);
  filter: drop-shadow(0 8px 20px rgba(0, 102, 255, 0.3));
}

.category-name {
  font-size: 1.0rem;
  font-weight: 600;
  color: var(--text);
  margin-top: auto;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.category-card img,
.category-card .placeholder-img {
  width: 130%;
  max-width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: auto;
}

.category-card .placeholder-img {
  border-radius: 0.5rem;
}

.category-card span {
  display: block;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  margin-top: auto;
}

/* RECENT DEVICES */
.recent-devices-container {
  overflow-x: auto;
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  margin-bottom: 2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.recent-devices-container::-webkit-scrollbar {
  height: 6px;
}

.recent-devices-container::-webkit-scrollbar-track {
  background: var(--scroll-track);
}

.recent-devices-container::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 4px;
}

.recent-device {
  flex: 0 0 auto;
  background-color: var(--card-bg);
  border-radius: 1rem;
  width: 160px;
  height: 220px;
  padding: 1rem;
  text-align: center;
  scroll-snap-align: start;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.recent-device:hover {
  transform: translateY(-5px);
}

.recent-device img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.recent-device span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
}

/* SERVICE GRID */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-kachel {
  background: var(--card-bg);
  border-radius: 1.25rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  min-height: 225px;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.service-kachel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
}

.service-kachel::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 2px 1.2px hsl(0 0% 100% / 0.7) inset;
  mask: linear-gradient(
    var(--pointer-angle),
    #ffffff80,
    #ffffff30 30% 60%,
    #fff
  );
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 10;
  animation: none;
}

.service-kachel:hover {
  transform: translateY(-12px) scale(1.02);
  background: var(--card-bg-hover);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.service-kachel:hover::before {
  opacity: 0;
}

.service-kachel:hover::after {
  opacity: 1;
}

.service-kachel-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: auto;
  gap: 0.75rem;
  position: relative;
  z-index: 2;
}

.service-icon {
  font-size: 32px;
  width: 80px;
  height: 80px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
  position: relative;
  z-index: 2;
}

.service-kachel:hover .service-icon {
  transform: scale(1.1) translateY(-4px);
  filter: drop-shadow(0 8px 20px rgba(0, 102, 255, 0.3));
}

.device-type {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
}

.problem-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0.5rem 0;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.model-info {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.iphone { 
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
  color: white; 
}

.macbook { 
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); 
  color: white; 
}

.airpods { 
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); 
  color: white; 
}

.beats { 
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); 
  color: white; 
}

.netzteil { 
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); 
  color: #333; 
}

/* SAME DAY STATUS DOT */
.status-dot-minimal {
  position: fixed;
  top: 3rem;
  left: 6rem;
  z-index: 1000;
  cursor: pointer;
}

.status-indicator-dot {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--muted);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.status-indicator-dot.green {
  background: var(--success);
}

.status-indicator-dot.yellow {
  background: #ff9f0a !important;
  box-shadow: 0 2px 8px rgba(255, 159, 10, 0.4) !important;
}

.status-indicator-dot.red {
  background: var(--danger);
}

.status-indicator-dot:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.status-tooltip {
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  margin-left: 0.5rem;
  background: var(--card-bg);
  border: 1px solid #333;
  border-radius: 0.5rem;
  padding: 0.75rem;
  min-width: 200px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.status-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -6px;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: var(--card-bg);
}

.status-dot-minimal:hover .status-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(4px);
}

.tooltip-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.tooltip-status {
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  display: inline-block;
}

.tooltip-status.green {
  background: rgba(50, 215, 75, 0.2);
  color: var(--success);
}

.tooltip-status.yellow {
  background: rgba(255, 159, 10, 0.2) !important;
  color: #ff9f0a !important;
}

.tooltip-status.red {
  background: rgba(255, 69, 58, 0.2);
  color: var(--danger);
}

.tooltip-message {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.3;
}

/* HALL OF FAME BUTTON */
.hall-of-fame-button {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hall-of-fame-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.1);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 215, 0, 0.3);
  color: #ffd700;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.hall-of-fame-btn:hover {
  transform: translateY(-5px) rotateY(10deg) scale(1.1);
  box-shadow: 
    0 15px 40px rgba(255, 215, 0, 0.4),
    0 0 30px rgba(255, 215, 0, 0.5);
  border-color: rgba(255, 215, 0, 0.6);
}

/* Dashboard Quick Action */
.dashboard-quick-action {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 1rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), min-height 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  min-height: 68px;
}

.dashboard-quick-action.morphing {
  min-height: 180px;
  align-items: stretch;
}

.dashboard-quick-action.morphing .quick-action-icon,
.dashboard-quick-action.morphing .quick-action-content {
  opacity: 0.3;
  transition: opacity 0.2s ease;
}

  left: 100%;
}

.dashboard-quick-action:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(10, 132, 255, 0.2);
  transform: translateX(6px);
  box-shadow: 0 6px 20px rgba(10, 132, 255, 0.1);
}

.morphing-password-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(10, 132, 255, 0.25) 0%, 
    rgba(74, 172, 254, 0.18) 50%,
    rgba(10, 132, 255, 0.12) 100%);
  border-radius: 1rem;
  backdrop-filter: blur(20px) saturate(1.5);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.morphing-password-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

@keyframes morphIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.morphing-password-form {
  padding: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.morphing-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.morphing-icon {
  width: 32px;
  height: 32px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  box-shadow: 0 2px 8px rgba(10, 132, 255, 0.3);
  flex-shrink: 0;
}

.morphing-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.morphing-input-wrapper {
  position: relative;
  margin-bottom: 0.75rem;
  flex: 1;
  display: flex;
  align-items: center;
}

.morphing-input-wrapper input {
  width: 100%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.5rem;
  padding: 0.75rem;
  color: var(--text);
  font-size: 0.85rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  font-family: 'Inter', sans-serif;
}

.morphing-input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

.morphing-input-wrapper input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.3);
}

.morphing-error {
  color: #ff6b6b;
  font-size: 0.75rem;
  padding: 0.5rem;
  background: rgba(255, 69, 58, 0.2);
  border-radius: 0.5rem;
  text-align: center;
  margin-bottom: 0.75rem;
  display: none;
}

.morphing-error.show {
  display: block;
  animation: errorSlideIn 0.3s ease-out;
}

@keyframes errorSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.morphing-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.morphing-btn {
  flex: 1;
  padding: 0.6rem 0.75rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.morphing-btn.cancel {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.morphing-btn.cancel:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.02);
}

.morphing-btn.submit {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: white;
  border: 1px solid rgba(59, 130, 246, 0.5);
}

.morphing-btn.submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(10, 132, 255, 0.4);
}

.morphing-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.morphing-btn.loading::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.morphing-password-overlay.success {
  background: linear-gradient(135deg, 
    rgba(50, 215, 75, 0.25) 0%, 
    rgba(40, 200, 64, 0.18) 50%,
    rgba(50, 215, 75, 0.12) 100%);
  border-color: rgba(50, 215, 75, 0.6);
}

.morphing-password-overlay.error {
  animation: errorShake 0.5s ease-out;
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0) scale(1); }
  25% { transform: translateX(-3px) scale(1); }
  75% { transform: translateX(3px) scale(1); }
}

.dashboard-quick-action:focus-visible {
  outline: 2px solid rgba(10, 132, 255, 0.6);
  outline-offset: 2px;
}

.morphing-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 1px;
}

/* APPOINTMENT EDIT MODAL */
.appointment-edit-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  z-index: 2001;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.appointment-edit-modal.active {
  display: flex;
  opacity: 1;
}

.appointment-edit-modal-content {
  background: var(--card-bg);
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.appointment-edit-modal.active .appointment-edit-modal-content {
  transform: scale(1);
}

.appointment-edit-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.appointment-edit-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.appointment-edit-form label {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}

.appointment-edit-form input,
.appointment-edit-form select,
.appointment-edit-form textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  padding: 0.75rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.appointment-edit-form input:focus,
.appointment-edit-form select:focus,
.appointment-edit-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.2);
}

.appointment-status-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.status-btn {
  flex: 1;
  padding: 0.6rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.status-btn.attended {
  background: rgba(50, 215, 75, 0.2);
  color: var(--success);
  border: 1px solid rgba(50, 215, 75, 0.3);
}

.status-btn.not-attended {
  background: rgba(255, 69, 58, 0.2);
  color: var(--danger);
  border: 1px solid rgba(255, 69, 58, 0.3);
}

.status-btn.pending {
  background: rgba(255, 159, 10, 0.2);
  color: var(--warning);
  border: 1px solid rgba(255, 159, 10, 0.3);
}

.status-btn.active {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.appointment-edit-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* FEEDBACK BUTTON */
.feedback-button {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 1000;
  cursor: pointer;
  transition: all 0.3s ease;
}

.feedback-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4facfe, var(--accent));
  border: none;
  color: white;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 25px rgba(10, 132, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.feedback-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 40px rgba(10, 132, 255, 0.4);
}

/* FEEDBACK MODAL */
.feedback-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.feedback-modal.active {
  display: flex;
  opacity: 1;
}

.feedback-modal-content {
  background: var(--card-bg);
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.feedback-modal.active .feedback-modal-content {
  transform: scale(1);
}

.feedback-modal h3 {
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  padding: 0.75rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.rating-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.star {
  font-size: 1.5rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.star:hover,
.star.active {
  color: #ffd700;
  transform: scale(1.1);
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.success-message {
  text-align: center;
  color: var(--success);
  font-weight: 600;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(50, 215, 75, 0.1);
  border-radius: 0.75rem;
  border: 1px solid rgba(50, 215, 75, 0.3);
}

.loading-state {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--muted);
  border-top: 3px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

/* ANIMATIONS */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.02); }
}

@keyframes shimmer {
  0%, 100% { 
    background-position: -200% 0;
  }
  50% { 
    background-position: 200% 0;
  }
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(255, 159, 10, 0.3);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 
      0 4px 15px rgba(255, 159, 10, 0.3),
      0 0 25px rgba(255, 159, 10, 0.5);
  }
}

@keyframes slideIn {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* CHANGELOG IN SIDEBAR */
.changelog-section {
  background: linear-gradient(135deg, 
    rgba(74, 172, 254, 0.12) 0%, 
    rgba(10, 132, 255, 0.06) 30%,
    rgba(74, 172, 254, 0.02) 70%,
    transparent 100%);
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(74, 172, 254, 0.15);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.changelog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.changelog-header:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(2px);
}

.changelog-title-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.changelog-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.changelog-count {
  background: linear-gradient(135deg, #4facfe 0%, #74c0fc 50%, #a8e6cf 100%);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: 
    0 4px 12px rgba(74, 172, 254, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.changelog-arrow {
  font-size: 1.2rem;
  color: #4facfe;
  transition: all 0.3s ease;
}

.changelog-arrow.expanded {
  transform: rotate(180deg);
}

.changelog-collapsible {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, opacity 0.3s ease;
  opacity: 0;
}

.changelog-collapsible.expanded {
  max-height: 400px;
  opacity: 1;
  transition: max-height 0.5s ease-in, opacity 0.4s ease;
  overflow-y: auto;
}

.changelog-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.changelog-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(74, 172, 254, 0.3);
  transform: translateX(4px) translateY(-1px);
  box-shadow: 0 8px 25px rgba(74, 172, 254, 0.15);
}

.changelog-item.new {
  border-left: 3px solid var(--success);
}

.changelog-item.improvement {
  border-left: 3px solid #4facfe;
}

.changelog-item.fix {
  border-left: 3px solid var(--warning);
}

.changelog-header-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.changelog-version {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.changelog-date {
  color: #4facfe;
  font-weight: 600;
  font-size: 0.8rem;
}

.changelog-description {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.changelog-type-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.changelog-type-badge.new {
  background: rgba(50, 215, 75, 0.2);
  color: var(--success);
}

.changelog-type-badge.improvement {
  background: rgba(74, 172, 254, 0.2);
  color: #4facfe;
}

.changelog-type-badge.fix {
  background: rgba(255, 159, 10, 0.2);
  color: var(--warning);
}

.changelog-empty {
  text-align: center;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.changelog-modal {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  z-index: 2002;
  display: none !important;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  visibility: hidden !important;
}

.changelog-modal.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.changelog-modal-content {
  background: var(--card-bg);
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.changelog-modal.active .changelog-modal-content {
  transform: scale(1);
}

.changelog-content {
  max-height: 60vh;
  overflow-y: auto;
  margin-bottom: 2rem;
}

.changelog-item-modal {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.changelog-item-modal:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.changelog-item-modal.new {
  border-left: 4px solid var(--success);
}

.changelog-item-modal.improvement {
  border-left: 4px solid #4facfe;
}

.changelog-item-modal.fix {
  border-left: 4px solid var(--warning);
}

.changelog-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.changelog-version-modal {
  font-weight: 700;
  color: var(--text);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.changelog-date-modal {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(10, 132, 255, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 1rem;
  border: 1px solid rgba(10, 132, 255, 0.3);
}

.changelog-description-modal {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.changelog-type-badge-modal {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.changelog-type-badge-modal.new {
  background: linear-gradient(135deg, var(--success), #5de467);
  color: white;
  box-shadow: 0 4px 12px rgba(50, 215, 75, 0.3);
}

.changelog-type-badge-modal.improvement {
background: linear-gradient(135deg, #4facfe, #74c0fc);
  color: white;
  box-shadow: 0 4px 12px rgba(74, 172, 254, 0.3);
}

.changelog-type-badge-modal.fix {
  background: linear-gradient(135deg, var(--warning), #ffb347);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 159, 10, 0.3);
}

.changelog-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.changelog-empty-modal {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--muted);
}

.changelog-empty-modal h4 {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

/* MOBILE RESPONSIVE - OPTIMIERT FÜR iOS & iPAD */
@media (max-width: 768px) {
  /* Body & Typography */
  body {
    padding: max(0.75rem, env(safe-area-inset-top)) 
             max(0.75rem, env(safe-area-inset-right)) 
             max(0.75rem, env(safe-area-inset-bottom)) 
             max(0.75rem, env(safe-area-inset-left));
  }
  
  h1 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  /* Touch-freundliche Buttons (mindestens 44px für iOS) */
  .btn,
  .appointment-action-btn,
  .status-btn,
  .morphing-btn,
  .calendar-nav-btn {
    min-height: 44px;
    padding: 0.75rem 1rem;
  }

  /* iOS Zoom-Prevention für Inputs */
  input,
  textarea,
  select {
    font-size: 16px !important;
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.875rem;
    font-size: 16px;
  }
  
  .morphing-input-wrapper input {
    font-size: 16px !important;
    padding: 0.875rem;
  }

  .appointment-edit-form input,
  .appointment-edit-form select,
  .appointment-edit-form textarea {
    font-size: 16px;
    padding: 0.875rem;
  }

  /* Sidebar */
  .sidebar {
    width: 350px;
    left: -350px;
  }

  .sidebar.open + .sidebar-toggle {
    left: 370px;
  }

  .sidebar-toggle {
    width: 52px;
    height: 52px;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 22px;
  }

  .sidebar-header {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
  }

  .sidebar-logo {
    font-size: 1.5rem;
  }

  .sidebar-subtitle {
    font-size: 0.85rem;
  }

  .appointments-sidebar-section,
  .sidebar-section {
    margin: 0 1rem 1.5rem 1rem;
  }

  /* Calendar für Touch optimiert */
  .calendar-section {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .calendar-day {
    min-height: 40px;
    aspect-ratio: 1;
  }
  
  .calendar-day-number {
    font-size: 0.8rem;
  }
  
  .calendar-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  
  .calendar-legend {
    font-size: 0.7rem;
    gap: 0.5rem;
  }

  .calendar-indicator {
    width: 3px;
    height: 3px;
  }

  /* Appointments Compact */
  .appointment-compact-mini {
    grid-template-columns: 45px 1fr auto;
    gap: 0.5rem;
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
  }
  
  .compact-mini-time {
    font-size: 0.85rem;
  }
  
  .compact-mini-device {
    font-size: 0.7rem;
  }
  
  .compact-mini-price {
    font-size: 0.8rem;
  }
  
  .compact-mini-status {
    font-size: 1rem;
  }
  
  .compact-stats-header {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
  }
  
  .stat-value {
    font-size: 1rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }
  
  .date-separator {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }

  /* Status Dot */
  .status-dot-minimal {
    top: 1.5rem;
    left: 5rem;
  }

  .status-indicator-dot {
    width: 30px;
    height: 30px;
  }

  .status-tooltip {
    top: auto;
    bottom: 100%;
    right: 50%;
    transform: translateX(50%);
    margin-bottom: 0.75rem;
    margin-left: 0;
  }

  .status-tooltip::after {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: var(--card-bg);
    border-right-color: transparent;
  }

  /* Hall of Fame Button */
  .hall-of-fame-button {
    top: 1.5rem;
    right: 1rem;
  }

  .hall-of-fame-btn {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  /* Feedback Button */
  .feedback-button {
    bottom: 1rem;
    left: 1rem;
  }

  .feedback-btn {
    width: 56px;
    height: 56px;
    font-size: 22px;
  }

  /* Modals für kleine Screens */
  .feedback-modal-content,
  .appointment-edit-modal-content,
  .changelog-modal-content {
    width: 95%;
    max-height: 85vh;
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .feedback-modal h3,
  .appointment-edit-modal h3,
  .changelog-modal h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .form-actions {
    gap: 0.5rem;
  }
  
  .btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    min-height: 44px;
  }

  /* Category Grid */
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .category-card {
    height: 160px;
    padding: 0.75rem;
    min-height: auto;
  }
  
  .category-image {
    width: 70px;
    height: 70px;
    padding: 0.5rem;
  }
  
  .category-name {
    font-size: 0.85rem;
  }

  .category-card img,
  .category-card .placeholder-img {
    height: 100px;
  }

  /* Service Grid */
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .service-kachel {
    padding: 1rem;
    min-height: 180px;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .device-type {
    font-size: 0.7rem;
  }
  
  .problem-title {
    font-size: 0.9rem;
  }
  
  .model-info {
    font-size: 0.8rem;
  }

  /* News */
  .news-box {
    padding: 1.25rem;
  }
  
  .news-box h2 {
    font-size: 1.2rem;
  }
  
  .news-box p {
    font-size: 0.95rem;
  }
  
  .news-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .news-close {
    width: 36px;
    height: 36px;
    font-size: 18px;
    min-height: 36px;
  }

  .news-header {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  /* Appointment Info */
  .appointment-info {
    flex-direction: column;
    gap: 0.3rem;
  }

  /* Morphing Dashboard */
  .morphing-password-form {
    padding: 0.875rem;
  }
  
  .morphing-actions {
    gap: 0.4rem;
  }
  
  .morphing-btn {
    padding: 0.65rem 0.5rem;
    font-size: 0.75rem;
    min-height: 44px;
  }

  /* Quick Actions */
  .quick-action {
    padding: 0.875rem;
    gap: 0.875rem;
  }

  .quick-action-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .quick-action-title {
    font-size: 0.85rem;
  }

  .quick-action-desc {
    font-size: 0.75rem;
  }
}

/* iPad & Tablets (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .sidebar {
    width: 400px;
    left: -400px;
  }
  
  .sidebar.open + .sidebar-toggle {
    left: 430px;
  }
  
  body {
    padding: 1.5rem;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Sehr kleine Screens (iPhone SE, etc.) */
@media (max-width: 480px) {
  body {
    padding: max(0.5rem, env(safe-area-inset-top)) 
             max(0.5rem, env(safe-area-inset-right)) 
             max(0.5rem, env(safe-area-inset-bottom)) 
             max(0.5rem, env(safe-area-inset-left));
  }
  
  h1 {
    font-size: 1.3rem;
  }

  .sidebar {
    width: 320px;
    left: -320px;
  }

  .sidebar.open + .sidebar-toggle {
    left: 340px;
  }

  .sidebar-toggle {
    width: 48px;
    height: 48px;
    font-size: 20px;
    top: 1rem;
    left: 1rem;
  }

  .status-dot-minimal {
    top: 1rem;
    left: 4.5rem;
  }

  .status-indicator-dot {
    width: 28px;
    height: 28px;
  }

  .hall-of-fame-btn {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .feedback-btn {
    width: 52px;
    height: 52px;
    font-size: 20px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .category-card {
    height: 140px;
    padding: 0.6rem;
  }
  
  .category-image {
    width: 60px;
    height: 60px;
  }
  
  .category-name {
    font-size: 0.8rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .service-kachel {
    min-height: 140px;
    padding: 0.875rem;
  }

  .calendar-day {
    min-height: 36px;
  }
  
  .calendar-day-number {
    font-size: 0.75rem;
  }

  .calendar-nav-btn {
    width: 36px;
    height: 36px;
  }

  .feedback-modal-content,
  .appointment-edit-modal-content,
  .changelog-modal-content {
    width: 98%;
    padding: 1rem;
  }

  .news-box {
    padding: 1rem;
  }

  .news-box h2 {
    font-size: 1.1rem;
  }

  .news-box p {
    font-size: 0.9rem;
  }

  .appointment-compact-mini {
    grid-template-columns: 40px 1fr auto;
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
  }

  .compact-mini-time {
    font-size: 0.8rem;
  }

  .stat-value {
    font-size: 0.9rem;
  }

  .stat-label {
    font-size: 0.6rem;
  }
}

/* Landscape Mode für Phones */
@media (max-height: 500px) and (orientation: landscape) {
  .sidebar {
    width: 300px;
    left: -300px;
  }

  .sidebar.open + .sidebar-toggle {
    left: 320px;
  }

  .modal-content,
  .feedback-modal-content,
  .appointment-edit-modal-content,
  .changelog-modal-content {
    max-height: 90vh;
    padding: 1rem;
  }

  body {
    padding: 0.5rem;
  }

  .calendar-section {
    padding: 0.75rem;
  }

  .news-box {
    padding: 1rem;
  }
}

/* Service Grid Responsive */
@media (max-width: 1200px) {
  .service-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Hochauflösende Displays (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .category-image,
  .service-icon,
  .news-icon {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Dark Mode Support (falls System Dark Mode aktiv) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0b;
    --card-bg: #1a1a1c;
  }
}

/* Reduzierte Bewegung für Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .category-card:hover,
  .service-kachel:hover,
  .news-box:hover {
    transform: none;
  }

  .category-card:active,
  .service-kachel:active {
    transform: scale(0.98);
  }

  .btn:active,
  .appointment-action-btn:active,
  .morphing-btn:active {
    transform: scale(0.95);
  }
}
  
  /* Termin Counter */
.calendar-day-counter {
  position: top;
  bottom: 2px;
  right: 2px;
  background: var(--accent);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 8px;
  line-height: 1;
  z-index: 3;
  box-shadow: 0 2px 4px rgba(10, 132, 255, 0.4);
}

/* Freie Kapazität Indikator */
.calendar-day.has-capacity::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(50, 215, 75, 0.6);
  z-index: 3;
}

.calendar-day.has-capacity {
  border-color: rgba(50, 215, 75, 0.2);
}

.calendar-day.has-capacity:hover {
  border-color: rgba(50, 215, 75, 0.4);
  box-shadow: 0 0 12px rgba(50, 215, 75, 0.2);
}

/* Gesperrte Tage */
.calendar-day.locked {
  background: rgba(255, 69, 58, 0.15);
  border-color: rgba(255, 69, 58, 0.4);
  position: relative;
  cursor: not-allowed;
}

.calendar-day.locked::before {
  content: '🔒';
  position: absolute;
  top: 2px;
  left: 2px;
  font-size: 0.7rem;
  z-index: 3;
}

.calendar-day.locked .calendar-day-number {
  text-decoration: line-through;
  opacity: 0.6;
}

.calendar-day.locked:hover {
  background: rgba(255, 69, 58, 0.2);
  transform: scale(1);
  cursor: not-allowed;
}

.calendar-day.locked.has-capacity::after {
  display: none; /* Kein grüner Punkt bei gesperrten Tagen */
}
   
/* ============================================
   DEVICE SEARCH STYLING
   Bense Service - Marco
   ============================================ */

/* Search Container */
.search-container {
  position: absolute;
  top: 2.2rem;
  right: 2rem;
  width: 400px;
  z-index: 10001; /* Höher als Overlay */
  margin: 0;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--card-bg);
  border-radius: 1rem;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.search-wrapper:focus-within {
  box-shadow: 0 6px 20px rgba(10, 132, 255, 0.3);
  transform: translateY(-2px);
  border-color: var(--accent);
  background-color: #242426;
}

.search-icon {
  font-size: 1.5rem;
  margin-right: 0.75rem;
  color: var(--accent);
}

#deviceSearch {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

#deviceSearch::placeholder {
  color: var(--muted);
  font-weight: 400;
}

/* Bessere Sichtbarkeit bei Eingabe */
#deviceSearch:focus {
  color: #ffffff;
}

.search-shortcut {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  margin-left: 0.5rem;
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 10000; /* Unter dem Suchfeld */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  overflow-y: auto;
  padding-top: 7rem; /* Platz für Suchfeld oben */
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-overlay-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.search-overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.search-overlay-title {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 600;
}

#closeSearch {
  background-color: var(--card-bg);
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

#closeSearch:hover {
  background-color: var(--accent);
  transform: rotate(90deg);
}

/* Search Results */
#searchResults {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.search-result-item {
  background-color: var(--card-bg);
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.search-result-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(10, 132, 255, 0.3);
  background-color: #242426;
}

.search-result-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 0.5rem;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

.search-result-category {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.no-results-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-results p {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.no-results span {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Mobile Responsiveness */
@media (max-width: 1200px) {
  .search-container {
    width: 350px;
  }
}

@media (max-width: 900px) {
  .search-container {
    width: 300px;
  }
}

@media (max-width: 768px) {
  .search-container {
    position: fixed;
    width: calc(100% - 2rem);
    margin: 0;
    top: 1rem;
    right: 1rem;
    left: 1rem;
    z-index: 10001;
  }

  .search-overlay {
    padding-top: 6rem; /* Weniger Padding auf Mobile */
  }

  .search-overlay-content {
    padding: 1rem;
    margin: 0 auto;
  }

  #searchResults {
    grid-template-columns: 1fr;
  }

  .search-result-item {
    padding: 0.75rem;
  }

  .search-shortcut {
    display: none;
  }

  .search-overlay-title {
    font-size: 1.25rem;
  }
}

/* Animation for results */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-result-item {
  animation: fadeInUp 0.3s ease forwards;
}

.search-result-item:nth-child(1) { animation-delay: 0.05s; }
.search-result-item:nth-child(2) { animation-delay: 0.1s; }
.search-result-item:nth-child(3) { animation-delay: 0.15s; }
.search-result-item:nth-child(4) { animation-delay: 0.2s; }
.search-result-item:nth-child(5) { animation-delay: 0.25s; }
.search-result-item:nth-child(6) { animation-delay: 0.3s; }

/* ========================================

/* ========================================
   MASKED INSET BORDER SHINE EFFECT
   Ersetzt bestehende ::after Effekte
   ======================================== */

/* CSS Variable für Winkel */
.category-card,
.service-kachel,
.quick-action,
.dashboard-quick-action,
.news-box,
.btn-primary,
.btn-secondary,
.morphing-btn.submit,
.sidebar-toggle,
.appointment-card-sidebar,
.calendar-day,
.search-wrapper,
.service-kachel {
  --pointer-angle: 325deg;
}

/* CATEGORY CARD - Ersetze ::after */
.category-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 2px 1.2px hsl(0 0% 100% / 0.7) inset;
  mask: linear-gradient(
    var(--pointer-angle),
    #ffffff80,
    #ffffff30 30% 60%,
    #fff
  );
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 10;
  animation: none; /* Entferne alte Animation */
}

.category-card:hover::after {
  opacity: 1;
}

/* QUICK ACTION - Ergänze ::after wenn nicht vorhanden */
.quick-action::after,
.dashboard-quick-action::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 2px 1.2px hsl(0 0% 100% / 0.7) inset;
  mask: linear-gradient(
    var(--pointer-angle),
    #ffffff80,
    #ffffff30 30% 60%,
    #fff
  );
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.quick-action:hover::after,
.dashboard-quick-action:hover::after {
  opacity: 1;
}

/* NEWS BOX - Ersetze ::after */
.news-box::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 2px 1.2px hsl(0 0% 100% / 0.7) inset;
  mask: linear-gradient(
    var(--pointer-angle),
    #ffffff80,
    #ffffff30 30% 60%,
    #fff
  );
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.news-box:hover::after {
  opacity: 1;
}

/* BUTTONS */
.btn-primary::after,
.btn-secondary::after,
.morphing-btn.submit::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 2px 1.2px hsl(0 0% 100% / 0.7) inset;
  mask: linear-gradient(
    var(--pointer-angle),
    #ffffff80,
    #ffffff30 30% 60%,
    #fff
  );
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.btn-primary:hover::after,
.btn-secondary:hover::after,
.morphing-btn.submit:hover::after {
  opacity: 1;
}

/* SIDEBAR TOGGLE */
.sidebar-toggle::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 2px 1.2px hsl(0 0% 100% / 0.7) inset;
  mask: linear-gradient(
    var(--pointer-angle),
    #ffffff80,
    #ffffff30 30% 60%,
    #fff
  );
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.sidebar-toggle:hover::after {
  opacity: 1;
}

/* APPOINTMENT CARD */
.appointment-card-sidebar::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 2px 1.2px hsl(0 0% 100% / 0.7) inset;
  mask: linear-gradient(
    var(--pointer-angle),
    #ffffff80,
    #ffffff30 30% 60%,
    #fff
  );
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.appointment-card-sidebar:hover::after {
  opacity: 1;
}

/* CALENDAR DAY */
.calendar-day::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 2px 1.2px hsl(0 0% 100% / 0.7) inset;
  mask: linear-gradient(
    var(--pointer-angle),
    #ffffff80,
    #ffffff30 30% 60%,
    #fff
  );
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.calendar-day:hover::after {
  opacity: 1;
}

/* Nicht auf leeren/anderen Monats-Tagen */
.calendar-day.empty::after,
.calendar-day.other-month::after {
  display: none;
}

/* SEARCH WRAPPER */
.search-wrapper::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 2px 1.2px hsl(0 0% 100% / 0.7) inset;
  mask: linear-gradient(
    var(--pointer-angle),
    #ffffff80,
    #ffffff30 30% 60%,
    #fff
  );
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.search-wrapper:hover::after {
  opacity: 1;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .category-card::after,
  .quick-action::after,
  .dashboard-quick-action::after,
  .news-box::after,
  .btn-primary::after,
  .btn-secondary::after,
  .morphing-btn.submit::after,
  .sidebar-toggle::after,
  .appointment-card-sidebar::after,
  .calendar-day::after,
  .search-wrapper::after {
    display: none !important;
  }
}

/* Mobile Touch Support */
@media (hover: none) and (pointer: coarse) {
  .category-card::after,
  .quick-action::after,
  .dashboard-quick-action::after,
  .news-box::after,
  .btn-primary::after,
  .btn-secondary::after,
  .morphing-btn.submit::after,
  .sidebar-toggle::after,
  .appointment-card-sidebar::after,
  .calendar-day::after,
  .search-wrapper::after {
    opacity: 0.4;
  }
  
  .category-card:active::after,
  .quick-action:active::after,
  .dashboard-quick-action:active::after,
  .news-box:active::after,
  .btn-primary:active::after,
  .btn-secondary:active::after,
  .morphing-btn.submit:active::after,
  .sidebar-toggle:active::after,
  .appointment-card-sidebar:active::after,
  .calendar-day:active::after,
  .search-wrapper:active::after {
    opacity: 0.7;
  }
}