/* AЯM GARAGE (Phetchaburi) - Tablet Pro Edition DMS & CRM */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@600;700&display=swap');

:root {
  --bg-app: #070b14;
  --bg-sidebar: #0a111f;
  --bg-surface: #0e172a;
  --bg-card: #131f38;
  --border-color: rgba(255, 255, 255, 0.1);
  --bosch-blue: #005691;
  --bosch-cyan: #007bc0;
  --bosch-bright: #00a3e0;
  --bosch-red: #e20015;
  --bosch-green: #008752;
  --accent-cyan: #06b6d4;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Kanit', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-app);
  color: #f8fafc;
  margin: 0;
  padding: 0;
  font-size: 15px; /* Bigger base font for Tablet readability */
  line-height: 1.5;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

input, textarea, select {
  user-select: auto;
  -webkit-user-select: auto;
  font-size: 15px !important;
}

/* Tablet App Container */
.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* Tablet Sidebar */
.app-sidebar {
  width: 270px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: radial-gradient(circle at top right, rgba(0, 123, 192, 0.1), transparent 45%),
              radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.06), transparent 45%),
              var(--bg-app);
}

/* Tablet Touch Target Buttons (min-height: 48px) */
.touch-btn {
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.touch-btn:active {
  transform: scale(0.97);
}

.touch-btn-sm {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.touch-btn-sm:active {
  transform: scale(0.96);
}

/* Preset Symptom Tap Chips */
.symptom-chip {
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(14, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.symptom-chip:hover, .symptom-chip:active {
  background: #007bc0;
  border-color: #00a3e0;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 123, 192, 0.4);
}

/* Card Design */
.app-card {
  background: linear-gradient(180deg, rgba(19, 31, 56, 0.9) 0%, rgba(12, 20, 36, 0.96) 100%);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  transition: all 0.25s ease;
}

.app-card:hover {
  border-color: rgba(0, 163, 224, 0.4);
  box-shadow: 0 14px 36px -10px rgba(0, 86, 145, 0.28);
}

/* Shimmer Button */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-25deg);
  transition: 0.6s;
}

.btn-shimmer:hover::before {
  left: 150%;
}

.btn-bosch-primary {
  background: linear-gradient(135deg, #005691 0%, #007bc0 50%, #00a3e0 100%);
  box-shadow: 0 4px 20px rgba(0, 86, 145, 0.4);
}

.btn-bosch-primary:hover {
  box-shadow: 0 6px 28px rgba(0, 163, 224, 0.6);
}

/* Logo styling */
.logo-brand {
  font-family: 'Arial Black', Impact, sans-serif;
  letter-spacing: 1px;
}

.reverse-r {
  display: inline-block;
  transform: scaleX(-1);
}

/* Glass Panels */
.glass-panel {
  background: rgba(14, 23, 42, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #25334d;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #007bc0;
}

@media (max-width: 1024px) {
  .app-sidebar {
    width: 86px;
  }
  .app-sidebar .sidebar-text {
    display: none;
  }
  .app-sidebar .sidebar-item {
    justify-content: center;
    padding: 14px;
  }
}
