/* Force light theme everywhere - custom.css */

:root,
body.dark-mode {
  --bg-color: #f6f8ff !important;
  --color: #202652 !important;
  --emphasis: #ff5a00 !important;
  --primary: #101840 !important;
  --emphasis-primary: #dfe3ff !important;
  --emphasis-secondary: #4450a7 !important;
  --light: #7c82a8 !important;
  --super-light: #ffffff !important;
  --error: #d11010 !important;
  --success: #3ed27d !important;
  --dark: #010023 !important;
  --surface: #e8ecff !important;
  --border: rgba(16, 24, 64, 0.12) !important;
}

body,
body.dark-mode {
  background: #f6f8ff !important;
  color: #202652 !important;
}

.component_filemanager_shell,
body.dark-mode .component_filemanager_shell {
  background: white !important;
}

select:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 #4450a7;
}

.connect-form input:hover,
.connect-form textarea:hover,
.connect-form input:focus,
.connect-form textarea:focus {
  border-color: #ff5a00 !important;
}

.drag-drop.dragging > div {
  background: rgba(16, 24, 64, 0.08) !important;
}

.login-form button.active {
  box-shadow: 0 2px 10px rgba(16, 24, 64, 0.18) !important;
}

::-webkit-scrollbar-track {
  background: rgba(224, 228, 255, 0.8) !important;
}

::-webkit-scrollbar-thumb {
  background: rgba(16, 24, 64, 0.22) !important;
}

body > a[aria-role="navigation"]:focus-visible {
  background: #ffffff !important;
}

button {
  color: rgba(32, 38, 82, 0.76) !important;
}

button.primary {
  background: #101840 !important;
  color: #f6f8ff !important;
}

button.emphasis {
  background: #ff5a00 !important;
  color: #ffffff !important;
}

button.dark {
  background: #010023 !important;
  color: #f6f8ff !important;
}

button.light {
  background: #ffffff !important;
  color: #101840 !important;
  border: 1px solid rgba(16, 24, 64, 0.12) !important;
}

.alert {
  background: #ffffff !important;
  border: 1px solid rgba(16, 24, 64, 0.12) !important;
}

.alert.success {
  background: #3ed27d !important;
  color: #0f2f17 !important;
}

.alert.error {
  background: #d11010 !important;
  color: #fff4f4 !important;
}

.alert img {
  border: 10px solid #ffffff !important;
}

.component_skeleton {
  background: linear-gradient(
    110deg,
    rgba(16, 24, 64, 0.08) 8%,
    rgba(255, 90, 0, 0.16) 18%,
    rgba(16, 24, 64, 0.08) 33%
  ) !important;
}

.component_input,
.component_select {
  border-bottom: 2px solid rgba(16, 24, 64, 0.22) !important;
}

.component_input:focus,
.component_select:focus,
.component_input:focus ~ component-icon img {
  border-color: #ff5a00 !important;
}

.component_input[type="file"]::file-selector-button {
  border: 2px solid rgba(16, 24, 64, 0.2) !important;
}

.component_input[type="file"]::file-selector-button:hover {
  background-color: rgba(16, 24, 64, 0.08) !important;
  border-color: rgba(16, 24, 64, 0.2) !important;
}

body.dark-mode input {
  color: #202652 !important;
}

/* Override dark backgrounds */
body.dark-mode .component_modal {
  background: rgba(246, 248, 255, 0.95) !important;
  color: #202652 !important;
}

body.dark-mode .component_modal > div {
  background: white !important;
  color: #202652 !important;
}

.dark-mode .component_breadcrumb .component_path-element .label {
  color: rgba(32, 38, 82, 0.75) !important;
}

.dark-mode .component_breadcrumb .component_path-element a.label {
  color: rgba(32, 38, 82, 0.5) !important;
}

/* Login Page Styling */
html {
  background: linear-gradient(135deg, #f6f8ff 0%, #e8ecff 100%) !important;
  min-height: 100vh;
}

body.common_response_page {
  background: transparent !important;
  color: #202652 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px !important;
  min-height: 100vh;
}

body.common_response_page h1 {
  color: #101840 !important;
  font-weight: 600 !important;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

body.common_response_page p {
  color: #7c82a8 !important;
  margin-bottom: 32px;
}

body.common_response_page form {
  background: white !important;
  border-radius: 12px !important;
  padding: 40px !important;
  box-shadow: 0 4px 24px rgba(16, 24, 64, 0.12), 
              0 0 1px rgba(16, 24, 64, 0.15) !important;
  max-width: 420px !important;
  margin: 0 auto !important;
}

body.common_response_page input:not([type="checkbox"]),
body.common_response_page textarea {
  background: #f6f8ff !important;
  border: 2px solid transparent !important;
  border-radius: 8px !important;
  padding: 14px 16px !important;
  color: #202652 !important;
  font-size: 15px !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
}

body.common_response_page input:not([type="checkbox"])::placeholder,
body.common_response_page textarea::placeholder {
  color: #9ea4cc !important;
  opacity: 1 !important;
}

body.common_response_page input:not([type="checkbox"]):hover,
body.common_response_page textarea:hover {
  background: #eef2ff !important;
  border-color: rgba(16, 24, 64, 0.12) !important;
}

body.common_response_page input:not([type="checkbox"]):focus,
body.common_response_page textarea:focus {
  background: white !important;
  border-color: #ff5a00 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(255, 90, 0, 0.1) !important;
}

body.common_response_page button {
  background: #101840 !important;
  color: white !important;
  padding: 14px 0px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  letter-spacing: 0.3px !important;
  text-transform: uppercase !important;
  margin-top: 20px !important;
  box-shadow: 0 2px 8px rgba(16, 24, 64, 0.2) !important;
  transition: all 0.2s ease !important;
  border: none !important;
  cursor: pointer !important;
}

body.common_response_page button:hover {
  background: #1a2356 !important;
  box-shadow: 0 4px 16px rgba(16, 24, 64, 0.25) !important;
  transform: translateY(-1px) !important;
}

body.common_response_page button:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(16, 24, 64, 0.2) !important;
}

body.common_response_page button:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(255, 90, 0, 0.2), 
              0 2px 8px rgba(16, 24, 64, 0.2) !important;
}

/* Optional: Add a logo/branding area */
body.common_response_page form::before {
  content: "Login";
  display: block;
  font-size: 48px;
  text-align: center;
  margin-bottom: 24px;
  filter: grayscale(0.2);
}

/* Label spacing */
body.common_response_page label {
  display: block;
  margin-bottom: 0 !important;
}

body.common_response_page label + label {
  margin-top: 16px !important;
}