/* Import Inter font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* === MONTAVIS CUSTOM DESIGN - WELCOME PAGE ONLY === */

/* Only apply to welcome page (index.html) */
body.welcome-page {
  /* Global font override */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  
  /* Body and main background with glassmorphism */
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%) !important;
  background-image: url('/custom-assets/images/glasmorphism/glassm_2.jpeg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
  color: #ffffff !important;
  background-color: #0a0a0a !important;
}

body.welcome-page * {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Dark glassmorphism overlay - Enhanced */
body.welcome-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: -1;
}

/* Welcome page styling */
body.welcome-page .welcome {
  background: transparent !important;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

/* Header styling with glassmorphism */
body.welcome-page .welcome .header {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  margin: 10px 20px; /* Reduced top margin from 20px to 10px */
  padding: 2rem 2rem !important; /* Reduced top/bottom padding from 3rem to 2rem */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 280px !important; /* Reduced from 300px to 280px */
}

/* Header container - Vertically centered */
body.welcome-page .welcome .header .header-container {
  backdrop-filter: none;
  background: transparent;
  margin: 0 !important;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Title styling - Complete text replacement */
body.welcome-page .welcome .header .header-text-title {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 3rem !important;
  letter-spacing: -0.02em;
  text-indent: -9999px !important; /* Hide original text completely */
  position: relative;
  margin-bottom: 32px !important; /* Preserve this increased spacing to subtitle */
}

/* Replace all Jitsi text with MontaVis Call */
body.welcome-page .welcome .header .header-text-title::before {
  content: "MontaVis Call";
  color: #ffffff !important;
  text-indent: 0 !important;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Replace any remaining Jitsi text globally */
body.welcome-page [data-i18n*="jitsi"],
body.welcome-page [data-i18n*="Jitsi"] {
  text-indent: -9999px;
  position: relative;
}

body.welcome-page [data-i18n*="jitsi"]::before,
body.welcome-page [data-i18n*="Jitsi"]::before {
  content: "MontaVis Call";
  text-indent: 0;
  position: absolute;
  left: 0;
  top: 0;
  color: inherit;
}

/* Subtitle styling - Replace with custom text */
body.welcome-page .welcome .header .header-text-subtitle {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500 !important;
  font-size: 1.125rem !important;
  text-indent: -9999px !important; /* Hide original text */
  position: relative;
  height: auto !important;
  overflow: visible !important;
  margin-top: 32px !important; /* Additional top margin for more spacing */
}

body.welcome-page .welcome .header .header-text-subtitle::before {
  content: ""; /* Removed "Für sichere, verschlüsselte Konferenzen" */
  text-indent: 0 !important;
  position: absolute;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: max-content !important;
  text-align: center !important;
  color: rgba(255, 255, 255, 0.8) !important;
  white-space: nowrap !important;
}

/* Room input container with glassmorphism */
body.welcome-page .welcome .header #enter_room .join-meeting-container {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px !important;
  padding: 8px !important;
  margin-bottom: 40px !important; /* Added substantial bottom margin for more spacing */
}

/* Room input field */
body.welcome-page .welcome .header #enter_room .enter-room-input-container .enter-room-input {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

body.welcome-page .welcome .header #enter_room .enter-room-input-container .enter-room-input:focus {
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.15) !important;
  outline: none !important;
}

body.welcome-page .welcome .header #enter_room .enter-room-input-container .enter-room-input::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Join button styling */
body.welcome-page .welcome .welcome-page-button {
  background: linear-gradient(135deg, #003D99 0%, #002266 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #ffffff !important;
  font-weight: 600 !important;
  transition: all 0.3s ease;
  letter-spacing: 0.01em;
}

body.welcome-page .welcome .welcome-page-button:hover {
  background: linear-gradient(135deg, #002266 0%, #001133 100%) !important;
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.25) !important;
}

body.welcome-page .welcome .welcome-page-button:active {
  background: linear-gradient(135deg, #001133 0%, #000022 100%) !important;
  transform: translateY(0);
}

/* Tab container styling */
body.welcome-page .welcome .tab-container {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  margin-top: 10px !important;
  margin-bottom: 20px !important;
}

/* Tab buttons */
body.welcome-page .welcome .tab-container .tab-buttons {
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.welcome-page .welcome .tab-container .tab-buttons [role=tab] {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.7) !important;
  border-radius: 10px !important;
  transition: all 0.3s ease;
  font-weight: 500;
}

body.welcome-page .welcome .tab-container .tab-buttons [role=tab][aria-selected=true] {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Cards styling */
body.welcome-page .welcome .welcome-card {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  transition: all 0.3s ease;
}

body.welcome-page .welcome .welcome-card:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-2px);
}

body.welcome-page .welcome .welcome-card--dark,
body.welcome-page .welcome .welcome-card--blue,
body.welcome-page .welcome .welcome-card--grey {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
}

/* Welcome card column spacing fix */
body.welcome-page .welcome .welcome-cards-container {
  padding-top: 10px !important;
  margin-bottom: 20px !important;
}

body.welcome-page .welcome .welcome-card-column {
  margin-top: 0 !important;
}

body.welcome-page .welcome .welcome-card-column > div {
  margin-bottom: 8px !important; /* Reduced spacing between cards */
}

/* Hide welcome footer */
body.welcome-page .welcome .welcome-footer {
  display: none !important;
}

/* Welcome watermark styling - Restructured to include settings button */
body.welcome-page .welcome .welcome-watermark {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

body.welcome-page .welcome .welcome-watermark .logo-settings-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
}

body.welcome-page .welcome .welcome-watermark .watermark.leftwatermark {
  position: static !important;
  width: 400px !important;
  height: 120px !important;
  max-width: 400px !important;
  max-height: 120px !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  margin: 0 !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  pointer-events: all;
}

/* Settings button styling - Repositioned to align with logo */
body.welcome-page .welcome .welcome-page-settings {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px !important;
  position: absolute !important;
  top: auto !important;
  right: 30px !important;
  margin-top: 0 !important;
  pointer-events: all !important;
}

/* Meeting list items - Fix white text on white background */
body.welcome-page .meetings-list .item {
  background: rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

body.welcome-page .meetings-list .item:hover,
body.welcome-page .meetings-list .item:focus {
  background: rgba(0, 0, 0, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

body.welcome-page .meetings-list .item .title {
  color: #ffffff !important;
}

body.welcome-page .meetings-list .item .subtitle {
  color: rgba(255, 255, 255, 0.7) !important;
}

body.welcome-page .meetings-list .item .delete-meeting svg {
  fill: rgba(255, 255, 255, 0.8) !important;
}

body.welcome-page .meetings-list .item .delete-meeting:hover svg {
  fill: #ffffff !important;
}

/* Start conference button - Dark styling */
body.welcome-page .meetings-list .button {
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

body.welcome-page .meetings-list .button:hover {
  background: rgba(0, 0, 0, 0.8) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Meeting list container dark background */
body.welcome-page .meetings-list {
  background: rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-radius: 16px !important;
  padding: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Calendar action buttons */
body.welcome-page .meetings-list .calendar-action-buttons .button {
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

body.welcome-page .meetings-list .calendar-action-buttons .button:hover {
  background: rgba(0, 0, 0, 0.8) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Empty state styling */
body.welcome-page .meetings-list .meetings-list-empty {
  color: #ffffff !important;
}

body.welcome-page .meetings-list .meetings-list-empty .description {
  color: rgba(255, 255, 255, 0.8) !important;
}

body.welcome-page .meetings-list .meetings-list-empty-button {
  color: rgba(255, 255, 255, 0.9) !important;
  background: rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px !important;
  padding: 8px 16px !important;
}

body.welcome-page .meetings-list .meetings-list-empty-button:hover {
  background: rgba(0, 0, 0, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Add button styling */
body.welcome-page .meetings-list .item .add-button {
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
}

body.welcome-page .meetings-list .item .add-button:hover {
  background: rgba(0, 0, 0, 0.8) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Join button styling */
body.welcome-page .meetings-list .item .join-button {
  background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
}

body.welcome-page .meetings-list .item .join-button:hover {
  background: linear-gradient(135deg, #0056CC 0%, #003D99 100%) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Navigate section tiles */
body.welcome-page .navigate-section-list-tile {
  background: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

body.welcome-page .navigate-section-list-tile:hover {
  background: rgba(0, 0, 0, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

body.welcome-page .navigate-section-tile-title,
body.welcome-page .navigate-section-tile-body {
  color: #ffffff !important;
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
  body.welcome-page .welcome .header {
    min-height: 260px !important; /* Reduced from 280px to 260px */
  }
}

@media (max-width: 768px) {
  body.welcome-page .welcome .header {
    min-height: 230px !important; /* Reduced from 250px to 230px */
    padding: 1.75rem 1.5rem !important; /* Reduced from 2rem to 1.75rem */
    margin-top: 8px; /* Reduced from 10px (inherited from above) to 8px */
  }
  
  body.welcome-page .welcome .header .header-text-title {
    margin-bottom: 24px !important; /* Keep this spacing for mobile */
  }
  
  body.welcome-page .welcome .header .header-text-subtitle {
    margin-top: 24px !important; /* Keep this spacing for mobile */
  }
  
  body.welcome-page .welcome .welcome-page-settings {
    right: 20px !important;
  }
}

@media (max-width: 480px) {
  body.welcome-page .welcome .header {
    min-height: 200px !important; /* Reduced from 220px to 200px */
    padding: 1.25rem 1rem !important; /* Reduced from 1.5rem to 1.25rem */
    margin-top: 5px; /* Reduced from 8px (inherited from above) to 5px */
  }
  
  body.welcome-page .welcome .header .header-text-title {
    margin-bottom: 20px !important; /* Keep this spacing for small mobile */
  }
  
  body.welcome-page .welcome .header .header-text-subtitle {
    margin-top: 20px !important; /* Keep this spacing for small mobile */
  }
  
  body.welcome-page .welcome .welcome-page-settings {
    right: 10px !important;
  }
}

/* Remove any existing shadows and fades only for welcome page */
body.welcome-page *, 
body.welcome-page *::before, 
body.welcome-page *::after {
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Ensure transitions are smooth but not fade-based */
body.welcome-page * {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Additional dark theme enforcement */
body.welcome-page .welcome .header,
body.welcome-page .welcome .tab-container,
body.welcome-page .welcome .welcome-card {
  color: #ffffff !important;
}

body.welcome-page .welcome .header *,
body.welcome-page .welcome .tab-container *,
body.welcome-page .welcome .welcome-card * {
  color: inherit !important;
}

/* Ensure background image loads properly */
@media (max-width: 768px) {
  body {
    background-attachment: scroll !important;
  }
}

/* === MONTAVIS LOGO STYLING FOR NON-WELCOME PAGES === */
/* Scale up the logo by 1.5x on all other pages (not welcome page) */
.watermark.leftwatermark {
  transform: scale(1.5) !important;
  transform-origin: left top !important;
}

/* Keep the welcome page logo as previously defined */
body.welcome-page .welcome .welcome-watermark .watermark.leftwatermark {
  transform: none !important;
}

/* Responsive adjustments for non-welcome page logo scale */
@media (max-width: 768px) {
  .watermark.leftwatermark:not(body.welcome-page *) {
    transform: scale(1.3) !important; /* Slightly smaller on tablets */
  }
}

@media (max-width: 480px) {
  .watermark.leftwatermark:not(body.welcome-page *) {
    transform: scale(1.2) !important; /* Even smaller on phones */
  }
}