.theme-dark .appTitle,
.theme-dark .appSlogan {
  color: #ffffff;
}

.themeBtn {
  background-color: #242fa4;
  color: white;
  border: none;
  border-radius: 7px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: all 0.1s ease-in-out;
  padding: 5px 10px;
  margin-right: 110px;
}

.themeAddBtn {
  background-color: #242fa4;
  color: white;
  border: none;
  border-radius: 7px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: all 0.1s ease-in-out;
  padding: 5px 10px;
  align-items: center;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.themeBtn:hover {
    background-color: #394cf4;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

.themeAddBtn:hover {
    background-color: #394cf4;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

/* Theme styles    */
.theme-light {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 50%, #a1c4fd 100%);
  color: #000;
}

.theme-dark {
  background: linear-gradient(135deg, #000000 0%, #38384b 100%);
  color: #c7d2fe;
}

.theme-dark body {
  background: linear-gradient(135deg, #000000 0%, #000000 100%);
  color: #c7d2fe;
}


.theme-dark .container,
.theme-dark .notes-grid {
  zbackground: transparent;
  color: #c7d2fe;
}


.theme-dark .note {
  background: #23243a;
  color: #c7d2fe;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  border: 1px solid #334155;
}

.theme-dark .note h1 {
  color: #fbbf24;
}

.theme-dark .note p {
  color: #c7d2fe;
}


.theme-dark .create-note {
  background: #23243a;
  color: #000000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  border: 1px solid #334155;
}


.theme-dark input,
.theme-dark textarea {
  background: #000000;
  color: #92a6f5;
  border: 1px solid #334155;
}

.theme-dark input::placeholder,
.theme-dark textarea::placeholder {
  color: #64748b;
}


.theme-dark .btn {
  background: #6366f1;
  color: #f9fafb;
  border-color: #6366f1;
}

.theme-dark .btn:hover {
  background: #818cf8;
  color: #f9fafb;
  border-color: #818cf8;
}


.theme-dark .invalid-feedback {
  color: #f87171;
}
/* Author: Vaibhav Parmar  */

/* Padding increases the size of the element’s background.
Margin creates space between elements.    */

* {
  padding: 0;
  margin: 0;
  overflow-x: hidden;
  font-family: "Roboto Mono", monospace;
}

.copyRight {
  text-align: right;
  font-size: 0.9rem;
  color: #000000;
  padding-right: 30px;
  text-align: center;
  padding-top: 20px;
}

.appLogo {
  float: left;
  margin-top: 6px;
  margin-left: 6.5rem;
  height: 70px;
}

.appTitle {
  color: #000000;
  font-weight: 700;
  font-size: 2em;
  margin-top: 14px;
  padding-left: 13px;
  margin-bottom: 0px;
}

.appSlogan {
  color: #000000;
  font-weight: 400;
  font-size: 0.75em;
  margin-top: 0px;
  margin-bottom: 3px;
  margin-left: 189px;
}

.notesContainer {
  margin-top: 10px;
  margin-left: 40px;
}

.note {
  background: #DCE0D9;
  box-shadow: 0 2px 5px #ccc;
  border-radius: 10px;
  padding: 15px;
  width: 300px;
  margin: 12px;
  float: left;
  /* max-height: 200px;   */
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 2fr));
  gap: 17px;
  padding: 20px;
}

.note {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.note h1 {
  color: #000000;
  font-size: 1.2em;
  margin-bottom: 6px;
}

.note p {
  color: #000000;
  font-size: 0.75em;
  word-wrap: break-word;
}

.create-note {
  background: #DCE0D9;
  border-radius: 7px;
  box-shadow: 0 2px 5px #ccc;
  padding: 1rem;
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
}

.container .btn {
  background: #eac799;
  display: block;
  margin-left: auto;
  margin-right: auto;
  color: #000000;
  font-weight: bold;
}

.container .btn:hover {
    background: #f1d1a7;  /* Darker shade of your current button color   */
    color: #000000;  /* Black text on hover   */
    border-color: #f1d1a7;
}container .btn {
    color: #000000;  /* Black text on hover   
    border-color: #f1d1a7;*/
}

.auto-expand {
  min-height: 80px;
  max-height: 300px;
  resize: none;
  overflow-y: auto;
  transition: height 0.1s ease;
}

.btn {
  background-color: #f5ba13;
  color: white;
  border: none;
  border-radius: 7px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: all 0.1s ease-in-out;
}
  
.btn:hover {
    background-color: #f0b10e;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}


input::placeholder, textarea::placeholder {
  font-family: "Roboto Mono", monospace;
}

.input-effect:focus:not(.is-invalid) {
  background-color: #f8d7a5ff;
  box-shadow: 0 2px 5px rgba(213, 194, 194, 0.2);
  transform: translateY(-1px);
  outline: none !important;
  border-color: #f8d7a5ff !important;
}

.input-effect:hover:not(:focus):not(.is-invalid) {
  background-color: #f8d7a5ff;
  box-shadow: 0 2px 5px rgba(213, 194, 194, 0.2);
  transform: translateY(-1px);
}

/* Dark mode input effects   */
.theme-dark .input-effect:focus:not(.is-invalid) {
  background-color: #656ab0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  border-color: #000000 !important;
}

.theme-dark .input-effect:hover:not(:focus):not(.is-invalid) {
  background-color: #3a3f7d;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

/* Keep dark background for invalid fields  */
.theme-dark .input-effect.is-invalid,
.theme-dark .input-effect.is-invalid:hover {
  background-color: #181824;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

/* Allow hover effects on non-invalid fields when another field is focused   */
.theme-dark .input-effect:hover:not(.is-invalid):not(:focus) {
  background-color: #3a3f7d;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

/* Disable hover effect when any input field is active   */
.active-field ~ form .input-effect:hover:not(:focus):not(.is-invalid),
form:has(.active-field) .input-effect:hover:not(:focus):not(.is-invalid) {
  background-color: #ffffff;
  box-shadow: none;
  transform: none;
}

/* Override for dark theme to maintain dark background in all states   */
.theme-dark .active-field ~ form .input-effect:hover:not(:focus),
.theme-dark form:has(.active-field) .input-effect:hover:not(:focus),
.theme-dark .input-effect:hover,
.theme-dark .input-effect:focus {
  background-color: #181824;
  color: #c7d2fe;
}

/* Remove box-shadow for input fields when error is shown   */
input.is-invalid {
  box-shadow: none !important;
}
textarea.is-invalid {
  box-shadow: none !important;
}

.toggleSwitch {
  width: 60px;
  height: 30px;
  border-radius: 30px;
  background-color: #fee0c5;
  position: relative;
  cursor: pointer;
  transition: background-color 0.4s;
  margin-right: 120px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.toggleThumb{
  position: absolute;
  left: 2px;
  top: 2px;
  width: 26px;
  height: 26px;
  background-color: #fff;
  border-radius: 50%;
  transition: left 0.4s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.theme-dark .toggleThumb {
  left: 30px;
} 
