@charset "UTF-8";
.reminder-form {
  display: flex;
  flex-direction: column;
  background: #c0c0c0;
  border: 2px outset #c0c0c0;
  margin: 20px;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
  max-width: 600px;
  overflow: hidden;
  position: relative;
  font-family: "MS Sans Serif", sans-serif;
}
.reminder-form .reminder-form-header {
  background: linear-gradient(135deg, #00007B, #1085D2);
  color: white;
  padding: 2px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: bold;
  border-bottom: 1px solid #000080;
  min-height: 18px;
}
.reminder-form .reminder-form-header .title-text {
  margin-left: 4px;
  font-family: "MS Sans Serif", sans-serif;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
}
.reminder-form .reminder-form-header .window-controls {
  display: flex;
  gap: 2px;
}
.reminder-form .reminder-form-header .window-controls .control-button {
  width: 16px;
  height: 14px;
  border: 1px outset #c0c0c0;
  background: #c0c0c0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: bold;
  color: #000000;
}
.reminder-form .reminder-form-header .window-controls .control-button:hover {
  background: #d4d4d4;
}
.reminder-form .reminder-form-header .window-controls .control-button:active {
  border: 1px inset #c0c0c0;
  background: #a8a8a8;
}
.reminder-form .reminder-form-header .window-controls .control-button.minimize::before {
  content: "_";
  font-weight: bold;
  margin-top: -2px;
  font-size: 8px;
}
.reminder-form .reminder-form-header .window-controls .control-button.maximize::before {
  content: "□";
  font-size: 8px;
  line-height: 1;
}
.reminder-form .reminder-form-header .window-controls .control-button.close {
  background: #ff6b6b;
  border: 1px outset #ff6b6b;
}
.reminder-form .reminder-form-header .window-controls .control-button.close::before {
  content: "×";
  font-size: 10px;
  font-weight: bold;
}
.reminder-form .reminder-form-header .window-controls .control-button.close:hover {
  background: #ff5252;
}
.reminder-form .reminder-form-header .window-controls .control-button.close:active {
  border: 1px inset #ff6b6b;
  background: #e53935;
}
.reminder-form .reminder-form-content {
  padding: 15px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 20px;
}
.reminder-form .reminder-form-content .full-width {
  grid-column: 1/-1;
}
.reminder-form.success .reminder-form-content {
  border: 2px inset #008000;
  background: #c0c0c0;
}
.reminder-form.error .reminder-form-content {
  border: 2px inset #ff0000;
  background: #c0c0c0;
}
.reminder-form .status-message {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  font-weight: normal;
  font-size: 11px;
  z-index: 10;
  min-width: 120px;
  text-align: center;
  font-family: "MS Sans Serif", sans-serif;
  border: 1px outset #c0c0c0;
  background: #c0c0c0;
}
.reminder-form .status-message.success {
  background: #008000;
  color: white;
  border: 1px outset #008000;
}
.reminder-form .status-message.error {
  background: #ff0000;
  color: white;
  border: 1px outset #ff0000;
}
.reminder-form label {
  margin-bottom: 4px;
  font-weight: normal;
  color: #000000;
  font-size: 11px;
  font-family: "MS Sans Serif", sans-serif;
  background: linear-gradient(135deg, #00007B, #1085D2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.reminder-form input[type=text], .reminder-form input[type=date] {
  padding: 4px 6px;
  border: 2px inset #c0c0c0;
  margin-bottom: 5px;
  font-size: 11px;
  font-family: "MS Sans Serif", sans-serif;
  background: white;
  color: #000000;
  width: 100%;
  box-sizing: border-box;
}
.reminder-form input[type=text]:focus, .reminder-form input[type=date]:focus {
  outline: 1px dotted #000000;
  border: 2px inset #c0c0c0;
  background: white;
}
.reminder-form input[type=text]::placeholder, .reminder-form input[type=date]::placeholder {
  color: #808080;
  font-style: normal;
  opacity: 1;
}
.reminder-form .button-container {
  grid-column: 1/-1;
  display: flex;
  gap: 10px;
  margin-top: 15px;
}
.reminder-form button[type=submit], .reminder-form button[type=button] {
  flex: 1;
  padding: 8px 20px;
  margin: 0;
  background: #c0c0c0;
  border: 2px outset #c0c0c0;
  border-radius: 0;
  color: #000000;
  font-size: 11px;
  font-weight: normal;
  font-family: "MS Sans Serif", sans-serif;
  cursor: pointer;
  box-sizing: border-box;
}
.reminder-form button[type=submit]:hover:not(:disabled), .reminder-form button[type=button]:hover:not(:disabled) {
  background: #c0c0c0;
  border: 2px outset #c0c0c0;
}
.reminder-form button[type=submit]:active:not(:disabled), .reminder-form button[type=button]:active:not(:disabled) {
  border: 2px inset #c0c0c0;
  background: #c0c0c0;
}
.reminder-form button[type=submit]:disabled, .reminder-form button[type=button]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #c0c0c0;
  border: 2px outset #808080;
  color: #808080;
}

.reminder-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.reminder-popup .reminder-form {
  margin: 0;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
  .reminder-form {
    margin: 10px;
    max-width: calc(100vw - 20px);
  }
  .reminder-form .reminder-form-content {
    padding: 12px;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .reminder-popup {
    padding: 10px;
  }
  .reminder-popup .reminder-form {
    margin: 0;
    max-width: calc(100vw - 20px);
  }
}
@media (max-width: 480px) {
  .reminder-form .reminder-form-content {
    padding: 10px;
    gap: 8px;
    grid-template-columns: 1fr;
  }
  .reminder-form input {
    padding: 3px 4px;
    font-size: 11px;
  }
  .reminder-form .button-container {
    flex-direction: column;
    gap: 5px;
  }
  .reminder-form button[type=submit], .reminder-form button[type=button] {
    padding: 4px 8px;
    font-size: 11px;
  }
  .reminder-popup {
    padding: 15px;
  }
}
