/* ==========================================================================
   LEAME AUTHOR PANEL CENTRAL DESIGN SYSTEM
   Theme: Midnight Metallic & Amber Gold
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,400&display=swap');

:root {
  --bg-dark: #070708;
  --bg-sidebar: #0b0c0e;
  --bg-card: #121316;
  --bg-card-hover: #1a1b20;
  
  --gold-primary: #D4AF37;
  --gold-secondary: #FFD700;
  --gold-glow: rgba(212, 175, 55, 0.18);
  
  --text-primary: #FFFFFF;
  --text-secondary: #A0A5B5;
  --text-muted: #626675;
  
  --glass-bg: rgba(18, 19, 22, 0.75);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-border-focus: rgba(212, 175, 55, 0.35);
  
  --error: #FF4A4A;
  --success: #10B981;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Base resets & scrollbars */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  min-height: 100vh;
}

/* Scrollbar Style */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #1e2026;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

.hidden {
  display: none !important;
}

/* UI Background Glows */
.glow-blob {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow) 0%, rgba(7, 7, 8, 0) 70%);
  pointer-events: none;
  z-index: -1;
  filter: blur(40px);
}
.glow-1 { top: -100px; right: -50px; }
.glow-2 { bottom: -100px; left: -100px; }

/* Global Loading Spinner Overlay */
#global-spinner {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(7, 7, 8, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px stroke rgba(212, 175, 55, 0.1);
  border-left: 4px solid var(--gold-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Auth Section UI styling */
#auth-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 10;
}

.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
  gap: 10px;
}

.auth-logo img {
  height: 58px;
  filter: drop-shadow(0 0 10px var(--gold-glow));
}

.auth-logo-text {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 2px;
}
.auth-logo-text span {
  background: linear-gradient(135deg, var(--gold-secondary) 0%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 30px;
}

.auth-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.auth-tab.active {
  background: linear-gradient(135deg, var(--gold-secondary) 0%, var(--gold-primary) 100%);
  color: #000000;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

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

.auth-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-icon-wrapper {
  position: relative;
}

.input-icon-wrapper i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.05rem;
}

.auth-form-group input, 
.auth-form-group textarea,
.auth-form-group select {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--text-primary);
  padding: 14px 16px 14px 44px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  outline: none;
  transition: var(--transition-fast);
}

select option {
  background-color: #121316 !important;
  color: #ffffff !important;
}

.auth-form-group input:focus,
.auth-form-group textarea:focus,
.auth-form-group select:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.cta-button {
  width: 100%;
  background: linear-gradient(135deg, var(--gold-secondary) 0%, var(--gold-primary) 100%);
  color: #000000;
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
  transition: var(--transition-fast);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.35);
}

.cta-button:active {
  transform: translateY(0);
}

/* Alert Notification box */
.notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 24px;
  border-radius: 12px;
  background: #121316;
  border-left: 5px solid var(--gold-primary);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  transform: translateY(150px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
}

.notification.success {
  border-left-color: var(--success);
}

.notification.error {
  border-left-color: var(--error);
}

/* ==========================================================================
   DASHBOARD MAIN VIEW STYLING
   ========================================================================== */

#dashboard-view {
  min-height: 100vh;
  display: flex;
}

/* Sidebar Navigation */
.sidebar {
  width: 280px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
  flex-shrink: 0;
  z-index: 50;
  position: relative;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  padding-left: 10px;
}

.sidebar-logo img {
  height: 38px;
  filter: drop-shadow(0 0 6px var(--gold-glow));
}

.sidebar-logo-text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 800;
}
.sidebar-logo-text span {
  background: linear-gradient(135deg, var(--gold-secondary) 0%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-user {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-secondary) 0%, var(--gold-primary) 100%);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px var(--gold-glow);
}

.sidebar-user-info {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.sidebar-user-role {
  font-size: 0.75rem;
  color: var(--gold-primary);
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 0.5px;
}

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

.sidebar-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-fast);
}

.sidebar-menu-item:hover {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

.sidebar-menu-item.active {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.15);
  color: var(--gold-primary);
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--error);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.sidebar-logout:hover {
  background: rgba(255, 74, 74, 0.08);
}

/* Dashboard Core Content Area */
.main-content {
  flex: 1;
  padding: 40px 4% 60px;
  overflow-y: auto;
  height: 100vh;
  position: relative;
  z-index: 10;
}

/* Top bar with Greeting and Action */
.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.content-header-title h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.content-header-title p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Dashboard summary widgets */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.stat-widget {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.stat-widget::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle, var(--gold-glow) 0%, rgba(7, 7, 8, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.stat-widget-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.15);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.stat-widget-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-family: var(--font-sans);
}

.stat-widget-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Books Grid section styling */
.books-section-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.author-books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Card item inside grid */
.author-book-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.author-book-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.book-card-cover-area {
  height: 200px;
  position: relative;
  background: #0f1013;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-card-cover-area img {
  width: auto;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.author-book-card:hover .book-card-cover-area img {
  transform: scale(1.05);
}

.book-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(7, 7, 8, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--gold-primary);
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  z-index: 5;
}

.book-card-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.book-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-card-meta {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
}

.book-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.book-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.book-card-actions {
  display: flex;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
}

.action-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.action-btn.edit:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.action-btn.delete:hover {
  border-color: var(--error);
  color: var(--error);
  background: rgba(255, 74, 74, 0.04);
}

/* Profile Form styling */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  max-width: 800px;
  position: relative;
  overflow: hidden;
}

.profile-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--gold-glow) 0%, rgba(7, 7, 8, 0) 70%);
  pointer-events: none;
}

.profile-grid-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}

.profile-grid-full {
  grid-column: 1 / -1;
}

.profile-card label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-card input,
.profile-card textarea,
.profile-card select {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--text-primary);
  padding: 14px 16px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  outline: none;
  transition: var(--transition-fast);
}

.profile-card input:focus,
.profile-card textarea:focus,
.profile-card select:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.profile-card textarea {
  resize: vertical;
  min-height: 120px;
}

/* Empty Catalog View */
.empty-catalog {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  background: var(--bg-card);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--text-muted);
}

.empty-catalog i {
  font-size: 3rem;
  color: var(--gold-primary);
  margin-bottom: 20px;
  display: block;
}

.empty-catalog h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-catalog p {
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* ==========================================================================
   DRAWER / MODAL STYLING (Glassmorphic)
   ========================================================================== */

.drawer-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(7, 7, 8, 0.6);
  backdrop-filter: blur(10px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0; right: -90vw;
  width: 90vw;
  max-width: 1200px;
  height: 100%;
  background: var(--bg-sidebar);
  border-left: 1px solid var(--glass-border);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer.active {
  right: 0;
}

.drawer-header {
  padding: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-primary);
}

.drawer-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.drawer-close:hover {
  color: var(--text-primary);
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
}

.drawer-footer {
  padding: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 16px;
}

.drawer-footer button {
  flex: 1;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border-radius: 12px;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

/* File Upload Selectors */
.file-upload-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.file-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.01);
  position: relative;
  transition: var(--transition-fast);
}

.file-dropzone:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.02);
}

.file-dropzone i {
  font-size: 2rem;
  color: var(--gold-primary);
  margin-bottom: 12px;
  display: block;
}

.file-dropzone input[type="file"] {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-preview {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cover-preview-img {
  width: 60px;
  height: 80px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: none;
}

/* Confirm Dialog Modal styling */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(7, 7, 8, 0.7);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.confirm-modal {
  width: 100%;
  max-width: 400px;
  background: var(--bg-sidebar);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

.modal-overlay.active .confirm-modal {
  transform: translateY(0);
}

.modal-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 74, 74, 0.08);
  border: 1px solid rgba(255, 74, 74, 0.15);
  color: var(--error);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 20px;
}

.modal-icon.warning {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.15);
  color: var(--gold-primary);
}

.confirm-modal h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.confirm-modal p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

.confirm-modal-buttons {
  display: flex;
  gap: 12px;
}

.confirm-modal-buttons button {
  flex: 1;
}

.btn-danger {
  background: var(--error);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 74, 74, 0.25);
  transition: var(--transition-fast);
}

.btn-danger:hover {
  background: #e03f3f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 74, 74, 0.35);
}

.btn-danger:active {
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN ADAPTATIONS
   ========================================================================== */

@media (max-width: 992px) {
  .stats-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .profile-grid-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  #dashboard-view {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
    padding: 20px;
    height: auto;
  }
  
  .sidebar-logo {
    margin-bottom: 20px;
  }
  
  .sidebar-user {
    margin-bottom: 20px;
  }
  
  .sidebar-menu {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 10px;
    gap: 8px;
  }
  
  .sidebar-menu-item {
    padding: 10px 16px;
    white-space: nowrap;
  }
  
  .sidebar-footer {
    display: none; /* In mobile logout goes to menu list or top bar */
  }
  
    .main-content {
    padding: 30px 20px;
    height: auto;
    overflow-y: visible;
  }
  
  .content-header h1 {
    font-size: 1.8rem;
  }
}

/* ==========================================================================
   PREMIUM DUAL PANE BOOK MANAGER & SMARTPHONE PREVIEW
   ========================================================================== */

.drawer-grid-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100vh - 150px);
  background: rgba(7, 7, 8, 0.4);
}

.drawer-left-pane {
  flex: 1;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

.drawer-right-pane {
  width: 400px;
  background: rgba(11, 12, 14, 0.6);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
}

/* Content Ingest Selector Options */
.ingest-selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

.ingest-option {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.ingest-option i {
  font-size: 1.4rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.ingest-option h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text-secondary);
}

.ingest-option p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.ingest-option:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(212, 175, 55, 0.25);
}

.ingest-option.active {
  background: rgba(212, 175, 55, 0.06);
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px var(--gold-glow);
}

.ingest-option.active i {
  color: var(--gold-primary);
}

.ingest-option.active h4 {
  color: #ffffff;
}

/* Chapters Manager & List */
.chapters-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 250px;
  overflow-y: auto;
  padding: 4px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 15px;
}

.empty-chapters {
  padding: 30px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.chapter-list-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
}

.chapter-list-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(212, 175, 55, 0.2);
}

.chapter-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.chapter-item-actions {
  display: flex;
  gap: 8px;
}

.chapter-action-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 0.85rem;
  border-radius: 6px;
  transition: var(--transition-fast);
}

.chapter-action-btn.edit:hover {
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
}

.chapter-action-btn.delete:hover {
  color: var(--error);
  background: rgba(255, 74, 74, 0.1);
}

/* Nest Chapter Editor Pane */
.chapter-editor-pane {
  background: rgba(18, 19, 22, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 16px;
  padding: 20px;
  margin-top: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: slideDown 0.3s ease-out;
}

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

/* Rich Editor Toolbar & WYSIWYG Editable area */
.rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background: #1c1d24;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  padding: 6px 10px;
}

.rich-editor-toolbar button {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.rich-editor-toolbar button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.rich-editor-toolbar button.active {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-primary);
}

.rich-editable-area {
  min-height: 180px;
  max-height: 320px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  padding: 14px 16px;
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  font-family: var(--font-sans);
  line-height: 1.6;
}

.rich-editable-area:focus {
  border-color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.03);
}

.rich-editable-area h3 {
  font-family: var(--font-serif);
  color: var(--gold-primary);
  margin-top: 15px;
  margin-bottom: 8px;
}

.rich-editable-area p {
  margin-bottom: 12px;
}

/* Smartphone Device Mockup Styling */
.preview-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.zoom-btn {
  background: none;
  border: none;
  color: var(--gold-primary);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition-fast);
  padding: 4px;
}

.zoom-btn:hover {
  transform: scale(1.1);
  color: #ffffff;
}

.smartphone-preview-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  perspective: 1000px;
}

.smartphone-frame {
  width: 290px;
  height: 580px;
  background: #000000;
  border: 10px solid #1a1a24;
  border-radius: 40px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 
              0 0 0 2px rgba(255, 255, 255, 0.05),
              0 0 30px var(--gold-glow);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.smartphone-frame::before {
  content: '';
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 16px;
  background: #000000;
  border-radius: 10px;
  z-index: 100;
}

.smartphone-screen {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(20, 80, 160, 0.35), transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(10, 140, 90, 0.2), transparent 60%),
              #070708;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Cover and Reader views inside the mock screen */
.screen-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 60px; /* Space for phone bottom tabs */
}

.cover-glass-header {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 16px 20px 0;
}

.reader-glass-header {
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.cover-display-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  overflow: hidden;
}

.book-intro-row {
  display: flex;
  gap: 16px;
  align-items: center;
  width: 100%;
  margin-bottom: 16px;
}

.book-details-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex: 1;
  min-width: 0; /* Prevent overflow */
}

.premium-shadow-box {
  width: 90px;
  height: 135px;
  min-width: 90px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.premium-shadow-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-book-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  line-height: 1.25;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.preview-book-author {
  font-size: 0.72rem;
  color: var(--gold-primary);
  margin-bottom: 8px;
  font-weight: 600;
  text-align: left;
}

.preview-meta-chips {
  display: flex;
  gap: 6px;
}

.preview-meta-chips span {
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.book-synopsis-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  flex: 1;
  overflow-y: auto;
  margin-top: 10px;
  padding-right: 4px;
}

/* Custom scrollbar for beautiful, thin display */
.book-synopsis-section::-webkit-scrollbar {
  width: 3px;
}

.book-synopsis-section::-webkit-scrollbar-track {
  background: transparent;
}

.book-synopsis-section::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.book-synopsis-section h3 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.synopsis-body-text {
  font-size: 0.72rem;
  color: #a0aec0;
  line-height: 1.5;
  text-align: justify;
  padding-bottom: 24px;
}

/* Smartphone screen state: Reading content */
.reader-content-area {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  color: #ececec;
  font-family: var(--font-serif);
  line-height: 1.6;
  font-size: 0.8rem;
  text-align: justify;
}

.reader-content-area h3 {
  color: var(--gold-primary);
  font-size: 1.05rem;
  margin-bottom: 12px;
  text-align: left;
}

.reader-content-area p {
  margin-bottom: 10px;
}

/* Smartphone inside tab navigation */
.smartphone-nav-tabs {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 52px;
  background: rgba(18, 19, 22, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  z-index: 10;
}

.phone-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.phone-tab i {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.phone-tab span {
  font-size: 0.6rem;
  font-weight: 600;
}

.phone-tab:hover {
  color: #ffffff;
}

.phone-tab.active {
  color: var(--gold-primary);
}

/* FullScreen Premium Device Preview Styles */
.fullscreen-preview-card {
  width: 100%;
  max-width: 500px;
  height: 90vh;
  background: var(--bg-sidebar);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
  padding: 40px 20px;
  animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.fullscreen-preview-card .modal-close {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 1000;
}

.fullscreen-preview-card .modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.fullscreen-preview-card .smartphone-frame {
  transform: scale(1.15);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9);
}

/* Responsive adjustment for Wide Drawer */
@media (max-width: 1100px) {
  .drawer {
    width: 100vw;
    right: -100vw;
    overflow-y: auto;
  }
  
  .drawer.active {
    right: 0;
  }

  .drawer-grid-layout {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }
  
  .drawer-left-pane {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow-y: visible;
  }
  
  .drawer-content {
    overflow-y: visible;
    padding: 20px;
  }
  
  .drawer-right-pane {
    width: 100%;
    overflow-y: visible;
  }
  
  .smartphone-preview-container {
    padding: 20px;
  }
}

/* ----------------------------------------------------
   PROFILE AVATAR AND CROP MODAL STYLING
   ---------------------------------------------------- */
.profile-avatar-row {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 24px;
  width: 100%;
}

@media (max-width: 768px) {
  .profile-avatar-row {
    flex-direction: column;
    align-items: center;
  }
}

.profile-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 160px;
}

.profile-avatar-container {
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  margin-bottom: 12px;
}

.profile-avatar-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-avatar-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold-secondary) 0%, var(--gold-primary) 100%);
  color: #000000 !important;
  font-weight: bold;
  font-size: 3.5rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-avatar-container:hover .profile-avatar-initials {
  transform: scale(1.08);
}


.avatar-hover-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.3s ease;
  gap: 6px;
}

.avatar-hover-overlay i {
  font-size: 1.4rem;
  color: var(--gold-primary);
}

.avatar-hover-overlay span {
  font-size: 0.65rem;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.profile-avatar-container:hover .avatar-hover-overlay {
  opacity: 1;
}

.profile-avatar-container:hover img {
  transform: scale(1.08);
}

.avatar-help-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  max-width: 180px;
  line-height: 1.4;
  margin-top: 4px;
}

/* Crop Modal overlays */
.crop-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.crop-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.crop-modal-card {
  width: 90%;
  max-width: 420px;
  background: var(--bg-sidebar);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.crop-modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crop-modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.crop-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.crop-close-btn:hover {
  color: #ffffff;
}

.crop-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.crop-area-container {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
  background: #000000;
}

#crop-canvas-preview {
  width: 100%;
  height: 100%;
  display: block;
}

.crop-controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crop-controls .control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.crop-controls .control-group label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.crop-controls .control-group label i {
  color: var(--gold-primary);
}

.crop-controls .control-group input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.crop-controls .control-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold-primary);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
  transition: transform 0.1s ease;
}

.crop-controls .control-group input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.crop-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   LANGUAGE SWITCHER STYLES (PT-BR, EN, ES)
   ========================================================================== */
.lang-switcher {
  position: relative;
  display: inline-block;
  font-family: var(--font-sans);
}

.lang-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(255, 167, 81, 0.15);
}

.lang-dropdown {
  position: absolute;
  bottom: 125%;
  left: 0;
  width: 100%;
  min-width: 150px;
  background: rgba(22, 22, 34, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.lang-switcher.open .lang-dropdown {
  display: flex;
}

.lang-opt {
  padding: 8px 12px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-decoration: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.lang-opt:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.lang-opt.active {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-primary);
  font-weight: 600;
}

/* Floating Switcher for Auth View */
.floating-lang-switcher {
  position: absolute;
  top: 25px;
  right: 25px;
  z-index: 1000;
}
.floating-lang-switcher .lang-dropdown {
  bottom: auto;
  top: 125%;
}

