/* Flash Pro Clean Theme - Google Meet Style */
:root {
  --fp-primary: #1a73e8;
  --fp-primary-hover: #1765cc;
  --fp-bg: #ffffff;
  --fp-text: #3c4043;
  --fp-text-dark: #202124;
  --fp-muted: #5f6368;
  --fp-border: #dadce0;
  --fp-shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
  --fp-radius: 8px;
}

body {
  background: var(--fp-bg) !important;
  color: var(--fp-text) !important;
}

.body-wrap {
  background: var(--fp-bg) !important;
}

/* Buttons - Google Meet Style */
.button,
button,
input[type="submit"],
input[type="button"] {
  border-radius: var(--fp-radius) !important;
  border: 1px solid var(--fp-border) !important;
  box-shadow: none !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0.25px !important;
}

.button.button-primary,
button.button-primary,
#joinRoomButton {
  background: var(--fp-primary) !important;
  border-color: var(--fp-primary) !important;
  color: #fff !important;
  box-shadow: var(--fp-shadow) !important;
}

.button.button-primary:hover,
button.button-primary:hover,
#joinRoomButton:hover {
  background: var(--fp-primary-hover) !important;
  border-color: var(--fp-primary-hover) !important;
  box-shadow: 0 1px 3px 0 rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15) !important;
}

#genRoomButton {
  background: #fff !important;
  border: 1px solid var(--fp-border) !important;
  color: var(--fp-primary) !important;
  box-shadow: var(--fp-shadow) !important;
}

#genRoomButton:hover {
  background: #f8f9fa !important;
  box-shadow: 0 1px 3px 0 rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15) !important;
}

/* Inputs - Clean Style */
.form-input,
input[type="text"],
input[type="search"],
select {
  border-radius: var(--fp-radius) !important;
  border: 1px solid var(--fp-border) !important;
  padding: 12px 16px !important;
  box-shadow: none !important;
  background: #fff !important;
  color: var(--fp-text-dark) !important;
}

.form-input:focus,
input[type="text"]:focus,
input[type="search"]:focus,
select:focus {
  border-color: var(--fp-primary) !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1) !important;
}

/* Cards / containers - Minimal */
.section-inner,
.cta-inner,
.init-user,
#joinRoomForm,
#loginForm {
  border-radius: var(--fp-radius) !important;
  box-shadow: none !important;
  border: 1px solid var(--fp-border) !important;
  background: #fff !important;
}

.cta-inner {
  padding: 32px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 24px !important;
}

/* Header - Clean with transparency for dynamic backgrounds */
.site-header {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
  padding: 12px 0 !important;
}

.site-header-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* Logo styling */
.site-header .brand img {
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.site-header .brand img:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
}

/* Links */
a:not(.button) { color: var(--fp-primary) !important; text-decoration: none !important; }
a:not(.button):hover { color: var(--fp-primary-hover) !important; text-decoration: underline !important; }

/* Hero Section - Google Meet Style */
.hero {
  padding: 80px 0 60px !important;
  text-align: center !important;
}

#appTitle {
  font-size: 48px !important;
  line-height: 56px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  color: #ffffff !important;
  margin: 0 0 16px 0 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

#appDescription {
  font-size: 18px !important;
  line-height: 28px !important;
  color: #ffffff !important;
  max-width: 600px !important;
  margin: 0 auto 48px !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.7) !important;
}

.hero-content {
  text-align: center !important;
  padding: 20px !important;
  border-radius: 16px !important;
  background: rgba(0, 0, 0, 0.35) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

/* Header actions container */
.header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

/* Settings button (top-right) - Minimal */
#prejoinSettingsBtn,
#scheduleRoomButton {
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--fp-text) !important;
  border: 1px solid var(--fp-border) !important;
  box-shadow: var(--fp-shadow) !important;
  padding: 10px 16px !important;
  height: 42px !important;
  min-width: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

#prejoinSettingsBtn:hover,
#scheduleRoomButton:hover {
  background: #ffffff !important;
  color: var(--fp-text-dark) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-1px) !important;
}

/* Footer - Minimal */
.site-footer {
  background: #fff !important;
  padding: 48px 0 !important;
}
.site-footer-inner { 
  border-top: 1px solid var(--fp-border) !important;
  padding-top: 24px !important;
}
.footer-copyright,
.footer-nav a {
  color: var(--fp-muted) !important;
  font-size: 14px !important;
}

/* Sidebar removed for cleaner landing page design */

/* Additional overrides for clean white theme */
.site-content,
main,
.section {
  background: var(--fp-bg) !important;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--fp-text-dark) !important;
}

/* Remove any illustration backgrounds */
.illustration-section-01::before,
.illustration-section-01::after,
.illustration-section-02::before,
.illustration-section-02::after {
  display: none !important;
}

/* Clean section styling */
.section-inner {
  background: transparent !important;
  border: none !important;
}

.hero .section-inner {
  padding: 0 !important;
}

/* CTA specific styling - matching hero section design */
.cta-inner {
  background: rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.cta-slogan h3 {
  font-size: 22px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  margin: 0 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) !important;
}

/* Room name input styling for dark background */
.cta-action .form-input,
.cta-action #roomName {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #1f2937 !important;
}

.cta-action .form-input:focus,
.cta-action #roomName:focus {
  border-color: var(--fp-primary) !important;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.3) !important;
}

/* genRoomButton - Random button styling */
#genRoomButton {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: var(--fp-primary) !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  transition: all 0.3s ease !important;
}

#genRoomButton:hover {
  background: #ffffff !important;
  transform: rotate(180deg) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* JOIN ROOM button sizing to match */
#joinRoomButton {
  height: 48px !important;
  padding: 0 24px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

/* Last room link styling */
.last-room {
  margin-top: 12px !important;
}

.last-room a {
  color: #60a5fa !important;
  font-weight: 500 !important;
  text-decoration: underline !important;
}

.last-room a:hover {
  color: #93c5fd !important;
}

.last-room span,
#appJoinLastRoom {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Form group desktop - proper alignment */
.form-group-desktop {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
}

.form-group-desktop .form-input,
.form-group-desktop #roomName {
  flex: 1 !important;
  min-width: 200px !important;
  height: 48px !important;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  #appTitle {
    font-size: 28px !important;
    line-height: 36px !important;
  }
  
  #appDescription {
    font-size: 14px !important;
    line-height: 22px !important;
  }
  
  .cta-inner {
    padding: 20px !important;
  }
  
  .hero-content {
    padding: 16px !important;
    margin: 0 16px !important;
  }
  
  /* Mobile header buttons */
  .header-actions {
    gap: 8px !important;
  }
  
  #prejoinSettingsBtn,
  #scheduleRoomButton {
    padding: 8px 12px !important;
    height: 38px !important;
    min-width: auto !important;
    font-size: 13px !important;
  }
  
  #prejoinSettingsBtn span:last-child,
  #scheduleRoomButton span:last-child {
    display: none !important;
  }
  
  .site-header .brand img {
    width: 36px !important;
    height: 36px !important;
  }
}

@media (max-width: 480px) {
  #appTitle {
    font-size: 24px !important;
    line-height: 32px !important;
  }
  
  #appDescription {
    font-size: 13px !important;
    line-height: 20px !important;
  }
  
  #prejoinSettingsBtn,
  #scheduleRoomButton {
    padding: 8px 10px !important;
    height: 36px !important;
  }
  
  /* CTA mobile adjustments */
  .form-group-desktop {
    flex-direction: column !important;
    width: 100% !important;
  }
  
  .form-group-desktop .form-input,
  .form-group-desktop #roomName {
    width: 100% !important;
    min-width: unset !important;
  }
  
  #genRoomButton {
    width: 44px !important;
    height: 44px !important;
  }
  
  #joinRoomButton {
    width: 100% !important;
    height: 44px !important;
  }
  
  .cta-slogan h3 {
    font-size: 18px !important;
  }
}

/*--------------------------------------------------------------
# Settings Panel - Improved Contrast
--------------------------------------------------------------*/

/* Settings panel container */
#mySettings {
  background: rgba(30, 30, 30, 0.98) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}

/* Settings header */
#mySettingsHeader {
  background: rgba(40, 40, 40, 0.95) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Tab sidebar - darker background for better contrast */
#mySettings .tab {
  background: linear-gradient(180deg, rgba(45, 45, 45, 0.98) 0%, rgba(35, 35, 35, 0.98) 100%) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* Tab buttons - High contrast styling */
#mySettings .tab button {
  background: linear-gradient(135deg, #3d3d3d 0%, #2d2d2d 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  font-weight: 500 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

#mySettings .tab button:hover {
  background: linear-gradient(135deg, #4d4d4d 0%, #3d3d3d 100%) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4) !important;
}

#mySettings .tab button.active {
  background: linear-gradient(135deg, var(--fp-primary) 0%, var(--fp-primary-hover) 100%) !important;
  border-color: var(--fp-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4) !important;
}

/* Tab button icons */
#mySettings .tab button i {
  color: #ffffff !important;
  margin-right: 8px !important;
  opacity: 0.9 !important;
}

#mySettings .tab button.active i {
  opacity: 1 !important;
}

#mySettings .tab button.fas,
#mySettings .tab button.fa-solid,
#mySettings .tab button.far,
#mySettings .tab button.fa-regular,
#mySettings .tab button.fab,
#mySettings .tab button.fa-brands {
  font-weight: 900 !important;
}

/* Tab content area */
#mySettings .tabActions,
#mySettings .tabcontent {
  background: rgba(35, 35, 35, 0.95) !important;
}

/* Dropdown/Select elements - High contrast */
#mySettings select {
  background: linear-gradient(135deg, #404040 0%, #2a2a2a 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  padding-right: 36px !important;
}

#mySettings select:hover {
  background: linear-gradient(135deg, #4a4a4a 0%, #353535 100%) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4) !important;
}

#mySettings select:focus {
  outline: none !important;
  border-color: var(--fp-primary) !important;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.3), 0 4px 8px rgba(0, 0, 0, 0.3) !important;
}

#mySettings select option {
  background: #2d2d2d !important;
  color: #ffffff !important;
  padding: 10px !important;
}

/* Settings table text */
#mySettings p,
#mySettings label,
#mySettings span,
#mySettings .title,
#mySettingsTable,
#mySettingsTable td,
#mySettingsTable th {
  color: #ffffff !important;
}

/* Settings close button */
#mySettingsCloseBtn {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
}

#mySettingsCloseBtn:hover {
  background: rgba(255, 80, 80, 0.9) !important;
  border-color: rgba(255, 80, 80, 0.5) !important;
  transform: scale(1.05) !important;
}

/* Settings buttons in content */
#mySettings .tabcontent button,
#mySettings button.buttons {
  background: linear-gradient(135deg, #3d3d3d 0%, #2d2d2d 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
}

#mySettings .tabcontent button:hover,
#mySettings button.buttons:hover {
  background: linear-gradient(135deg, #4d4d4d 0%, #3d3d3d 100%) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  transform: translateY(-2px) !important;
}

/* Input fields in settings */
#mySettings input[type="text"],
#mySettings input[type="number"],
#mySettings input[type="email"],
#myPeerNameSet {
  background: rgba(50, 50, 50, 0.9) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 8px !important;
}

#mySettings input[type="text"]:focus,
#mySettings input[type="number"]:focus,
#mySettings input[type="email"]:focus,
#myPeerNameSet:focus {
  border-color: var(--fp-primary) !important;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.3) !important;
}

/* Extra info container */
#mySettings .extra-info-container {
  background: rgba(40, 40, 40, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
}

#mySettings #extraInfo {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Shortcuts table */
#mySettings #shortcutsTable {
  background: transparent !important;
}

#mySettings #shortcutsTable td {
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#mySettings #shortcutsTable td i {
  color: var(--fp-primary) !important;
}
