/* forms.css */

/* Login form wrapper */
.login-form {
  max-width: 400px;
  margin: 2em auto;
  background-color: rgba(0, 0, 51, 0.5);
  padding: 2em;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(100, 100, 255, 0.1);
  backdrop-filter: blur(4px);
}

/* Headings */
.plugin-body h2 {
  color: #aaddff;
  text-align: center;
  margin-bottom: 1em;
}

/* Labels */
.login-form label {
  display: block;
  margin-top: 1em;
  margin-bottom: 0.3em;
  color: #ccccff;
  font-size: 0.95em;
}

/* Inputs */
.login-form input[type="text"],
.login-form input[type="password"],
.login-form input[type="email"],
.login-form input[type="search"],
.login-form input[type="tel"],
.login-form input[type="url"] {
  width: 100%;
  padding: 0.6em;
  background-color: #000022;
  border: 1px solid #444466;
  border-radius: 6px;
  color: #ffffff;
  font-size: 1em;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.login-form input:focus {
  outline: none;
  border-color: #66ccff;
  background-color: #000033;
}

/* Submit button */
.login-form button[type="submit"] {
  margin-top: 1.5em;
  width: 100%;
  padding: 0.75em;
  background-color: #0066cc;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-form button[type="submit"]:hover {
  background-color: #3399ff;
}

/* Checkbox label wrapper */
.form-check {
  margin-top: 1.2em;
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.9em;
  color: #ccccff;
}

.form-check input[type="checkbox"] {
  appearance: none;
  width: 1em;
  height: 1em;
  border: 1px solid #444466;
  border-radius: 3px;
  background-color: #000022;
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-check input[type="checkbox"]:checked {
  background-color: #66ccff;
  border-color: #66ccff;
}

.form-check input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 0.1em;
  left: 0.28em;
  width: 0.25em;
  height: 0.5em;
  border: solid #000022;
  border-width: 0 0.15em 0.15em 0;
  transform: rotate(45deg);
  opacity: 0;
}

.form-check input[type="checkbox"]:checked::after {
  opacity: 1;
}

.form-check a {
  color: #66ccff;
  text-decoration: underline dotted;
}

.form-check a:hover {
  color: #aaddff;
  text-decoration-style: wavy;
}

.form-separator {
  position: relative;
  margin: 2em 0 1.5em;
  text-align: center;
  color: #8888cc;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-separator::before,
.form-separator::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background-color: #444466;
}

.form-separator::before { left: 0; }
.form-separator::after { right: 0; }

.form-separator span {
  background-color: rgba(0, 0, 51, 0.8);
  padding: 0 1em;
  position: relative;
  z-index: 1;
}

.flash {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75em;
  background-color: rgba(51, 0, 0, 0.7);
  border-left: 4px solid #cc4444;
  color: #ff9999;
  padding: 0.75em 1em;
  border-radius: 6px;
  margin: 1em auto;
  max-width: 500px;
  font-size: 0.95em;
  box-shadow: 0 0 6px rgba(255, 0, 0, 0.2);
  animation: fadeIn 0.5s ease-out;
}

.flash .icon {
  font-size: 1.2em;
}

.flash .close {
  position: absolute;
  top: 0.5em;
  right: 0.75em;
  background: none;
  border: none;
  color: #ffcccc;
  font-size: 1.2em;
  cursor: pointer;
  transition: color 0.2s ease;
}

.flash .close:hover { color: #ffffff; }

.flash.info {
  background-color: rgba(0, 33, 66, 0.7);
  border-left-color: #3399ff;
  color: #99ccff;
}
.flash.success {
  background-color: rgba(0, 51, 33, 0.7);
  border-left-color: #33cc99;
  color: #99ffcc;
}
.flash.warning {
  background-color: rgba(66, 44, 0, 0.7);
  border-left-color: #ccaa44;
  color: #ffe680;
}

.login-form input[type="file"] {
  position: relative;
  color: transparent;
  background: none;
  border: none;
  outline: none;
  width: 100%;
  height: 2.5em;
  cursor: pointer;
}

.login-form input[type="file"]::file-selector-button {
  font-size: 0.9em;
  font-family: inherit;
  background-color: #000033;
  color: #66ccff;
  padding: 0.4em 1em;
  border: 1px solid #444466;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.login-form input[type="file"]::file-selector-button:hover {
  background-color: #001144;
}

form textarea {
  width: 100%;
  padding: 0.7em;
  background-color: #000022;
  border: 1px solid #444466;
  border-radius: 6px;
  color: #ffffff;
  font-size: 1em;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

form textarea:focus {
  outline: none;
  border-color: #66ccff;
  background-color: #000033;
}

.rich-form {
  max-width: 700px;
  margin: 1.5em auto;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.rich-toolbar {
  display: flex;
  gap: 0.5em;
}

.rich-toolbar button {
  background-color: #000033;
  color: #66ccff;
  border: 1px solid #444466;
  padding: 0.3em 0.6em;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.2s ease;
}
.rich-toolbar button:hover {
  background-color: #001144;
}
.rich-toolbar button.active {
  background-color: #002255;
  color: #aaddff;
  border-color: #66ccff;
}

.rich-editor {
  max-height: 300px;
  overflow-y: auto;
  background-color: #000022;
  border: 1px solid #444466;
  border-radius: 6px;
  padding: 1em;
  color: #ccccff;
  font-family: inherit;
  font-size: 1em;
  line-height: 1.4;
  outline: none;
}

.rich-editor::-webkit-scrollbar {
  width: 8px;
}
.rich-editor::-webkit-scrollbar-thumb {
  background-color: #444466;
  border-radius: 4px;
}
.rich-editor::-webkit-scrollbar-track {
  background-color: #000022;
}

.rich-editor pre {
  background: #000033;
  padding: 0.5em;
  border-radius: 4px;
  font-family: monospace;
  overflow-x: auto;
}

.emoji-wrapper {
  position: relative;
}

#emoji-picker {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4em;
  background-color: #000033;
  padding: 0.6em;
  border-radius: 6px;
  border: 1px solid #444466;
  font-size: 1.4em;
  min-width: 200px;
  max-width: 260px;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

#emoji-picker span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  width: 36px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  cursor: pointer;
}
#emoji-picker span:hover {
  background-color: #111144;
}

[hidden] {
  display: none !important;
}

.rich-form button[type="submit"] {
  background: linear-gradient(145deg, #003366, #001144);
  color: #ffffff;
  padding: 0.8em 1.5em;
  border: 1px solid #66ccff;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(102, 204, 255, 0.3);
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  align-self: flex-start;
}
.rich-form button[type="submit"]:hover {
  background: linear-gradient(145deg, #004488, #001166);
  box-shadow: 0 0 10px rgba(102, 204, 255, 0.6);
  transform: translateY(-1px);
}
.rich-form button[type="submit"]:active {
  transform: scale(0.98);
  box-shadow: 0 0 5px rgba(102, 204, 255, 0.5) inset;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  width: 100%;
  flex-wrap: wrap;
}

.form-actions button {
  font-size: 1em;
  padding: 0.75em 1.5em;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-clear {
  background: transparent;
  color: #ccccff;
  border: 1px solid #444466;
}
.btn-clear:hover {
  background-color: #111133;
  color: #ffffff;
  border-color: #66ccff;
}

.btn-submit {
  background: linear-gradient(145deg, #003366, #001144);
  color: #ffffff;
  border: 1px solid #66ccff;
  font-weight: bold;
  box-shadow: 0 0 6px rgba(102, 204, 255, 0.3);
}
.btn-submit:hover {
  background: linear-gradient(145deg, #004488, #001166);
  box-shadow: 0 0 10px rgba(102, 204, 255, 0.6);
  transform: translateY(-1px);
}
.btn-submit:active {
  transform: scale(0.98);
  box-shadow: 0 0 5px rgba(102, 204, 255, 0.5) inset;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-0.5em);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

