/* ==========================================================================
   DigMeet Barcelona - Enterprise & Corporate Pro Theme (Teams / Zoom Style)
   Clean, Solid, Structured & High-Legibility Professional UI
   ========================================================================== */

:root {
  /* Microsoft 365 / Teams Dark Palette */
  --bg-primary: #181818;
  --bg-secondary: #202020;
  --bg-main: #181818;
  --bg-card: #242424;
  --bg-sidebar: #1b1a19;
  --sidebar-text: #adadad;
  --sidebar-text-active: #ffffff;

  --accent-cyan: #4f93d4;
  --accent-blue: #0078d4;
  --accent-purple: #6264a7;
  --accent-danger: #c4314b;
  --accent-success: #107c41;
  --accent-warning: #d89614;

  --text-main: #f3f2f1;
  --text-muted: #979593;
  --border-color: #3b3a39;
  --glass-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
}

[data-theme="light"] {
  /* Microsoft 365 / Teams Light Palette */
  --bg-primary: #f5f5f5;
  --bg-secondary: #ffffff;
  --bg-main: #f5f5f5;
  --bg-card: #ffffff;
  --bg-sidebar: #ebebeb;
  --sidebar-text: #424242;
  --sidebar-text-active: #0f6cbd;

  --accent-cyan: #0f6cbd;
  --accent-blue: #005a9e;
  --accent-purple: #464775;
  --accent-danger: #a80000;
  --accent-success: #107c41;
  --accent-warning: #8a3b00;

  --text-main: #242424;
  --text-muted: #616161;
  --border-color: #d1d1d1;
  --glass-shadow: 0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108);
}

/* Base Body & Typography */
body {
  font-family: var(--font-family) !important;
  background-color: var(--bg-main) !important;
  color: var(--text-main) !important;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family) !important;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

/* Enterprise App Layout & Sidebar */
.app-sidebar {
  background: var(--bg-sidebar) !important;
  border-right: 1px solid var(--border-color) !important;
  box-shadow: none !important;
}

.sidebar-brand {
  border-bottom: 1px solid var(--border-color) !important;
  padding: 1.1rem 1.25rem !important;
}

.sidebar-nav-item {
  border-radius: var(--radius-sm) !important;
  color: var(--sidebar-text) !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  padding: 0.6rem 0.9rem !important;
  margin: 0.15rem 0.5rem !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}

.sidebar-nav-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-main) !important;
}

[data-theme="light"] .sidebar-nav-item:hover {
  background: rgba(0, 0, 0, 0.04) !important;
  color: #111827 !important;
}

.sidebar-nav-item.active {
  background: rgba(0, 120, 212, 0.15) !important;
  color: var(--accent-cyan) !important;
  border-left: 3px solid var(--accent-blue) !important;
}

[data-theme="light"] .sidebar-nav-item.active {
  background: #e1dfdd !important;
  color: #0f6cbd !important;
  border-left: 3px solid #0f6cbd !important;
}

.sidebar-section-title {
  font-size: 0.7rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  color: var(--text-muted) !important;
  font-weight: 700 !important;
  padding: 0.8rem 1rem 0.3rem !important;
}

/* Cards & Panels - Solid Enterprise Styling */
.card,
.dashboard-card,
.stat-card,
.panel-box,
.timeline-session-box,
.pricing-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--glass-shadow) !important;
  backdrop-filter: none !important;
}

.card-header,
.panel-header {
  border-bottom: 1px solid var(--border-color) !important;
  padding: 0.9rem 1.25rem !important;
  background: transparent !important;
}

/* Form Controls & Inputs */
.form-input,
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-main) !important;
  font-family: var(--font-family) !important;
  font-size: 0.9rem !important;
  padding: 0.55rem 0.85rem !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.form-input:focus,
.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-blue) !important;
  outline: 2px solid var(--accent-blue) !important;
  outline-offset: -1px;
}

/* Buttons - Teams & Zoom Solid Action Style */
.btn {
  font-family: var(--font-family) !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.55rem 1.1rem !important;
  border: 1px solid transparent !important;
  cursor: pointer !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
  box-shadow: none !important;
}

.btn-primary {
  background: #0078d4 !important;
  border-color: #0078d4 !important;
  color: #ffffff !important;
}
.btn-primary:hover {
  background: #106ebe !important;
  border-color: #106ebe !important;
}
[data-theme="light"] .btn-primary {
  background: #0f6cbd !important;
  border-color: #0f6cbd !important;
}
[data-theme="light"] .btn-primary:hover {
  background: #115ea3 !important;
}

.btn-secondary {
  background: var(--bg-secondary) !important;
  border-color: var(--border-color) !important;
  color: var(--text-main) !important;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}
[data-theme="light"] .btn-secondary:hover {
  background: #edebe9 !important;
}

.btn-success {
  background: #107c41 !important;
  border-color: #107c41 !important;
  color: #ffffff !important;
}
.btn-success:hover {
  background: #0e6b37 !important;
}

.btn-danger {
  background: #c4314b !important;
  border-color: #c4314b !important;
  color: #ffffff !important;
}
.btn-danger:hover {
  background: #a82a40 !important;
}
[data-theme="light"] .btn-danger {
  background: #a80000 !important;
  border-color: #a80000 !important;
}

/* Tables - High Legibility Enterprise Matrix */
table,
.table {
  width: 100%;
  border-collapse: collapse !important;
}

table th,
.table th {
  background: rgba(0, 0, 0, 0.25) !important;
  color: var(--text-muted) !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  padding: 0.75rem 1rem !important;
  border-bottom: 2px solid var(--border-color) !important;
}

[data-theme="light"] table th,
[data-theme="light"] .table th {
  background: #edebe9 !important;
  color: #424242 !important;
  border-bottom: 2px solid #d1d1d1 !important;
}

table td,
.table td {
  padding: 0.75rem 1rem !important;
  border-bottom: 1px solid var(--border-color) !important;
  color: var(--text-main) !important;
  font-size: 0.88rem !important;
}

table tr:hover,
.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03) !important;
}

[data-theme="light"] table tr:hover,
[data-theme="light"] .table tbody tr:hover {
  background: #f8f8f8 !important;
}

/* Badges & Status Pills */
.badge {
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  border-radius: 3px !important;
  padding: 0.2rem 0.55rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.4px !important;
}

/* ==========================================================================
   Room & Video Conferencing UI - Microsoft Teams / Zoom Style
   ========================================================================== */
.room-container {
  background-color: #111111 !important;
}

.room-header {
  background: #181818 !important;
  border-bottom: 1px solid #292827 !important;
  padding: 0.6rem 1.25rem !important;
}

.room-title-badge {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}

/* Video Grid Tiles */
.video-grid {
  gap: 0.75rem !important;
  padding: 0.75rem !important;
}

.video-tile {
  background: #1f1f1f !important;
  border: 1px solid #333333 !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

.video-tile .peer-name-tag,
.video-tile .user-label {
  background: rgba(24, 24, 24, 0.85) !important;
  backdrop-filter: blur(4px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 3px !important;
  color: #ffffff !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  padding: 0.25rem 0.6rem !important;
  bottom: 0.65rem !important;
  left: 0.65rem !important;
}

/* Lower Third Badge - Enterprise Clean */
.lower-third-overlay {
  border-radius: 4px !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.6) !important;
}

/* Bottom Control Dock (Teams / Zoom Meeting Bar) */
.room-controls {
  background: #181818 !important;
  border-top: 1px solid #292827 !important;
  padding: 0.65rem 1rem !important;
  gap: 0.5rem !important;
  border-radius: 0 !important;
}

.control-btn {
  background: #292827 !important;
  border: 1px solid #3b3a39 !important;
  color: #f3f2f1 !important;
  border-radius: var(--radius-sm) !important;
  min-width: 44px !important;
  height: 44px !important;
  font-size: 1.1rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.15s ease, border-color 0.15s ease !important;
}

.control-btn:hover {
  background: #3b3a39 !important;
  border-color: #484644 !important;
  color: #ffffff !important;
}

.control-btn.active {
  background: #0078d4 !important;
  border-color: #0078d4 !important;
  color: #ffffff !important;
}

.control-btn.btn-hangup,
.control-btn.leave-btn {
  background: #c4314b !important;
  border-color: #c4314b !important;
  color: #ffffff !important;
  padding: 0 1.25rem !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
}

.control-btn.btn-hangup:hover,
.control-btn.leave-btn:hover {
  background: #a82a40 !important;
}

/* Chat & Transcription Sidebar in Room */
.chat-panel,
.room-sidebar {
  background: #1f1f1f !important;
  border-left: 1px solid #292827 !important;
}

.chat-bubble {
  background: #292827 !important;
  border: 1px solid #3b3a39 !important;
  border-radius: 4px !important;
  padding: 0.65rem 0.85rem !important;
  font-size: 0.85rem !important;
}

.chat-bubble.mine {
  background: #0078d4 !important;
  border-color: #0078d4 !important;
  color: #ffffff !important;
}

/* Modals & Dialogs */
.modal-content,
.popup-dialog {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6) !important;
}

.modal-header {
  border-bottom: 1px solid var(--border-color) !important;
  padding: 1rem 1.25rem !important;
}

.modal-footer {
  border-top: 1px solid var(--border-color) !important;
  padding: 0.85rem 1.25rem !important;
}

/* ==========================================================================
   Landing Page Corporate Styling (Teams / Microsoft 365 Pro Aesthetic)
   ========================================================================== */
.app-header {
  background: var(--bg-secondary) !important;
  border-bottom: 1px solid var(--border-color) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: none !important;
}

[data-theme="light"] .app-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e1dfdd !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

.hero-title {
  font-family: var(--font-family) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
}

.hero-subtitle {
  color: var(--text-muted) !important;
  font-size: 1.05rem !important;
  line-height: 1.6 !important;
}

.btn-primary {
  background: #0078d4 !important;
  border: 1px solid #005a9e !important;
  color: #ffffff !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 4px rgba(0, 120, 212, 0.3) !important;
}

.btn-primary:hover {
  background: #106ebe !important;
}

[data-theme="light"] .btn-primary {
  background: #0f6cbd !important;
  border-color: #0f6cbd !important;
}

[data-theme="light"] .btn-primary:hover {
  background: #115ea3 !important;
}

.badge {
  border-radius: 4px !important;
  font-weight: 600 !important;
}

.hero-mockup-frame {
  border-radius: var(--radius-md) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35) !important;
  border: 1px solid var(--border-color) !important;
}

[data-theme="light"] .hero-mockup-frame {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid #d1d1d1 !important;
}

.floating-theme-btn,
.floating-skin-btn {
  border-radius: var(--radius-sm) !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--glass-shadow) !important;
  color: var(--text-main) !important;
}

[data-theme="light"] .floating-theme-btn,
[data-theme="light"] .floating-skin-btn {
  background: #ffffff !important;
  color: #242424 !important;
  border-color: #d1d1d1 !important;
}

.btn-skin-toggle {
  background: var(--bg-card) !important;
  border-color: var(--border-color) !important;
  color: var(--text-main) !important;
  border-radius: 4px !important;
}

[data-theme="light"] .btn-skin-toggle {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}

/* ==========================================================================
   Client Login & Auth Corporate Skin (Teams / Zoom / Microsoft 365)
   ========================================================================== */
.login-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

[data-theme="light"] .login-card {
  background: #ffffff !important;
  border: 1px solid #d1d1d1 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

.bg-orb {
  opacity: 0.05 !important;
}

.tabs {
  background: var(--bg-primary) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
  padding: 3px !important;
}

[data-theme="light"] .tabs {
  background: #edebe9 !important;
  border-color: #d1d1d1 !important;
}

.tab-btn {
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  color: var(--text-muted) !important;
}

.tab-btn.active {
  background: #0078d4 !important;
  color: #ffffff !important;
  border: 1px solid #005a9e !important;
  box-shadow: none !important;
}

[data-theme="light"] .tab-btn.active {
  background: #0f6cbd !important;
  color: #ffffff !important;
  border-color: #0f6cbd !important;
}

.magic-note {
  background: rgba(0, 120, 212, 0.08) !important;
  border: 1px solid rgba(0, 120, 212, 0.25) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-main) !important;
}

[data-theme="light"] .magic-note {
  background: #f0f7ff !important;
  border-color: #bee3f8 !important;
  color: #0c4a6e !important;
}

/* ==========================================================================
   Client Portal Corporate Skin (Teams / Zoom Professional Dashboard)
   ========================================================================== */
header {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.header-lang-btn {
  border-radius: var(--radius-sm) !important;
}

.header-lang-menu {
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

.client-task-row {
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--border-color) !important;
  background: var(--bg-card) !important;
}

.client-doc-card {
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--border-color) !important;
  background: var(--bg-card) !important;
}

/* ==========================================================================
   Landing Page Rhythm & Block Containers (Corporate Theme)
   ========================================================================== */
.landing-block-card {
  border-radius: 12px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

[data-theme="light"] .landing-block-card {
  background: #ffffff !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
}

@media (min-width: 992px) {
  .features-showcase-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
  }
  .features-showcase-grid > .card:last-child:nth-child(3n+1) {
    grid-column: 2 !important;
  }
}

