:root {
  --primary-blue: #7CB2D3;
  --primary-blue-dark: #5B9BBF;
  --accent-pink: #D81B60;
  --accent-pink-hover: #C2185B;
  --bg-main: #F4F8FA;
  --card-bg: #FFFFFF;
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
}

/* Overlays & Modals */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.auth-card {
  background: var(--card-bg);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.logo-box {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-pink));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.logo-box .material-icons-round {
  font-size: 36px;
}

.auth-card h2 {
  font-size: 24px;
  font-weight: 700;
}

.subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.input-group {
  position: relative;
  margin-bottom: 16px;
}

.input-group .material-icons-round {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.input-group input {
  width: 100%;
  padding: 12px 14px 12px 44px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.input-group input:focus {
  border-color: var(--primary-blue-dark);
  box-shadow: 0 0 0 3px rgba(124, 178, 211, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.btn-primary:hover {
  background: var(--accent-pink-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #E2E8F0;
  color: var(--text-dark);
}

.btn-secondary:hover {
  background: #CBD5E1;
}

.btn-full {
  width: 100%;
}

.btn-icon {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: #F1F5F9;
  color: var(--text-dark);
}

/* Layout */
#app-wrapper {
  display: flex;
  width: 100vw;
  height: 100vh;
}

.sidebar {
  width: 280px;
  background: white;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.mini-logo {
  width: 40px;
  height: 40px;
  background: var(--primary-blue);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-title {
  font-size: 16px;
  font-weight: 700;
}

.badge {
  font-size: 10px;
  background: rgba(216, 27, 96, 0.1);
  color: var(--accent-pink);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.nav-item:hover {
  background: #F8FAFC;
  color: var(--text-dark);
}

.nav-item.active {
  background: rgba(124, 178, 211, 0.15);
  color: #0F172A;
}

.sidebar-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.topbar {
  background: white;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-main);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  width: 360px;
}

.search-bar input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 14px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-selector {
  display: flex;
  background: var(--bg-main);
  padding: 3px;
  border-radius: var(--radius-sm);
}

.lang-btn {
  border: none;
  background: none;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}

.lang-btn.active {
  background: white;
  box-shadow: var(--shadow-sm);
}

.content-body {
  padding: 32px;
  flex: 1;
}

.tab-page {
  display: none;
}

.tab-page.active {
  display: block;
}

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

.counter-pill {
  background: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

/* Tables */
.table-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th, .data-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.data-table th {
  background: #F8FAFC;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gesture-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  background: #F1F5F9;
}

/* Modals */
.modal-card {
  background: white;
  width: 100%;
  max-width: 1060px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.modal-body-layout {
  display: flex;
  gap: 32px;
}

.modal-form-side {
  flex: 1.2;
}

.modal-preview-side {
  flex: 0.8;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-left: 1px solid var(--border-color);
  padding-left: 28px;
}

.preview-title-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Smartphone Mockup Frame */
.phone-mockup {
  width: 310px;
  height: 580px;
  background: #0F172A;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  position: relative;
}

.phone-screen {
  background: #F4F8FA;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  font-family: 'Outfit', sans-serif;
}

.phone-notch {
  width: 120px;
  height: 20px;
  background: #0F172A;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
}

.phone-header {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  color: white;
  padding: 32px 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-header-title {
  font-size: 15px;
  font-weight: 700;
}

.phone-content {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
}

.phone-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.phone-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #E2E8F0;
}

.phone-card-body {
  padding: 14px;
}

.phone-card-category {
  display: inline-block;
  background: #E0F2FE;
  color: #0284C7;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.phone-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 8px;
  line-height: 1.3;
}

.phone-card-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  white-space: pre-wrap;
}

.preview-lang-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.preview-lang-btn {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: white;
  font-size: 12px;
  cursor: pointer;
}

.preview-lang-btn.active {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}

.error-msg {
  color: var(--accent-pink);
  font-size: 13px;
  margin-top: 12px;
}

/* Premium Input Styles */
.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-dark);
  background-color: #F8FAFC;
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

.form-group input:hover, 
.form-group select:hover, 
.form-group textarea:hover {
  background-color: #FFFFFF;
  border-color: #94A3B8;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  background-color: #FFFFFF;
  border-color: var(--primary-blue-dark);
  box-shadow: 0 0 0 4px rgba(91, 155, 191, 0.15), 0 2px 4px rgba(0,0,0,0.05);
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}
