:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --primary-gradient: linear-gradient(to right, #6366f1, #8b5cf6, #a855f7);
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-color: #1e293b;
  --text-light: #64748b;
  --border-color: #e2e8f0;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 12px;
  --input-radius: 8px;
  --input-bg: rgb(242, 242, 242);
  --input-text: #000000;
  --theme-btn-color: black;
}

[data-theme="dark"] {
  --primary: #818cf8;
  --primary-dark: #6366f1;
  --primary-light: #a5b4fc;
  --primary-gradient: linear-gradient(to right, #6366f1, #8b5cf6, #a855f7);
  --bg-color: #0f172a;
  --card-bg: #1e293b;
  --text-color: #f1f5f9;
  --text-light: #cbd5e1;
  --border-color: #334155;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4),
    0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --input-bg: #1e293b;
  --input-text: #f1f5f9;
  --theme-btn-color: white;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Bricolage Grotesque", "Segoe UI", Tahoma, Geneva, Verdana,
    sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  width: 360px;
  max-width: 100%;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
}

/* Screen Management */
.screen {
  display: none;
  padding: 16px 16px 20px;
  height: 100%;
  animation: fadeIn 0.3s ease-out forwards;
}

.screen.active {
  display: block;
}

/* Main Screen Styles */
#headingContainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

#headingContainer h2 {
  color: var(--primary);
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
}

#headingContainer h2 i {
  margin-right: 6px;
}

#changeTheme {
  background-color: var(--primary);
  color: var(--theme-btn-color);
  border: none;
  border-radius: var(--input-radius);
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

#getBookMarks{
  background-color: var(--primary);
  color: var(--theme-btn-color);
  border: none;
  border-radius: var(--input-radius);
  padding: 4px 8px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 28%;
}

#headingContainer button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.light-icon {
  display: none;
}

[data-theme="dark"] .dark-icon {
  display: none;
}

[data-theme="dark"] .light-icon {
  display: inline-block;
}

h2 {
  color: var(--primary);
  font-weight: 600;
}

#formContainer {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.input-group {
  position: relative;
  margin-bottom: 12px;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-100%);
  color: var(--text-light);
  z-index: 1;
}

input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  margin-bottom: 12px;
  border-radius: var(--input-radius);
  border: 1px solid var(--border-color);
  font-size: 14px;
  transition: all 0.2s ease;
  background-color: var(--input-bg);
  color: var(--input-text);
  position: relative;
}

input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
}

input::placeholder {
  color: var(--text-light);
}

.timeContainer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.timeContainer span {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
}

.time-inputs {
  display: flex;
  gap: 10px;
}

.time-inputs input {
  margin-bottom: 0;
}

/* Reminder Time Info */
.reminder-time-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background-color: rgba(99, 102, 241, 0.1);
  border-radius: var(--input-radius);
  margin-top: 4px;
  border: 1px dashed rgba(99, 102, 241, 0.3);
  transition: all 0.3s ease;
}

.reminder-time-info i {
  color: var(--primary);
  font-size: 14px;
}

.reminder-time-info span {
  font-size: 13px;
  color: var(--text-color);
  font-weight: 500;
}

.reminder-time-info.active {
  background-color: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.5);
}

/* 3D Button Styles */
.perspective-wrapper {
  perspective: 1000px;
  width: 100%;
}

.Btn {
  position: relative;
  width: 100%;
  padding: 14px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: var(--input-radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  transform-style: preserve-3d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 20px -10px rgba(99, 102, 241, 0.5),
    0 0 0 1px rgba(99, 102, 241, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.Btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -12px rgba(99, 102, 241, 0.7),
    0 0 0 1px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.Btn:active {
  transform: translateY(1px);
  box-shadow: 0 5px 10px -8px rgba(99, 102, 241, 0.5),
    0 0 0 1px rgba(99, 102, 241, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mt-4 {
  margin-top: 16px;
}

.show-reminders-btn {
  position: relative;
  width: 100%;
  padding: 14px;
  background: linear-gradient(to right, #3b82f6, #6366f1);
  color: white;
  border: none;
  border-radius: var(--input-radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  transform-style: preserve-3d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 20px -10px rgba(59, 130, 246, 0.5),
    0 0 0 1px rgba(59, 130, 246, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.show-reminders-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -12px rgba(59, 130, 246, 0.7),
    0 0 0 1px rgba(59, 130, 246, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.show-reminders-btn:active {
  transform: translateY(1px);
  box-shadow: 0 5px 10px -8px rgba(59, 130, 246, 0.5),
    0 0 0 1px rgba(59, 130, 246, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.show-reminders-btn .btn-highlight-top,
.show-reminders-btn .btn-highlight-bottom,
.show-reminders-btn .btn-highlight-moving,
.show-reminders-btn .btn-edge-highlight,
.show-reminders-btn .btn-content {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-highlight-top {
  position: absolute;
  inset: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
  pointer-events: none;
}

.btn-highlight-bottom {
  position: absolute;
  inset: 0;
  top: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
  pointer-events: none;
}

.btn-highlight-moving {
  position: absolute;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.5;
  pointer-events: none;
  transition: all 0.3s ease;
  top: 0;
  left: 0;
}

.Btn:hover .btn-highlight-moving {
  transform: translate(50%, 50%);
}

.btn-edge-highlight {
  position: absolute;
  inset: 0;
  border-radius: var(--input-radius);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.btn-content {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#SaveContainermain {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.header-buttons {
  display: flex;
  gap: 8px;
}

.header h3 {
  color: var(--primary);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Add styling for the header alarm icon */
.header-icon {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  vertical-align: middle;
  filter: brightness(0) saturate(100%) invert(42%) sepia(93%) saturate(1352%)
    hue-rotate(223deg) brightness(99%) contrast(101%);
}

[data-theme="dark"] .header-icon {
  filter: brightness(0) saturate(100%) invert(64%) sepia(25%) saturate(1567%)
    hue-rotate(201deg) brightness(100%) contrast(98%);
}

#clearBtn,
.view-all-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--input-radius);
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

#clearBtn {
  background-color: #ef4444;
}

#clearBtn:hover {
  background-color: #dc2626;
  transform: translateY(-2px);
}

.view-all-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.subContainer {
  padding: 16px;
  border-radius: var(--input-radius);
  border: 1px solid var(--border-color);
  margin-bottom: 12px;
  position: relative;
  transition: all 0.2s ease;
}

.subContainer:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.subContainer h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-color);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.subContainer a {
  display: block;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 14px;
  word-break: break-all;
}

.subContainer a:hover {
  text-decoration: underline;
}

.subContainer p {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 0;
}

.subContainer p::before {
  content: "\f017";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.deleteBtn {
  background-color: #ef4444;
  color: white;
  border: none;
  border-radius: var(--input-radius);
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  position: absolute;
  right: 12px;
  top: 12px;
  opacity: 0;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.deleteBtn::before {
  content: "\f1f8";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.subContainer:hover .deleteBtn {
  opacity: 1;
}

.deleteBtn:hover {
  background-color: #dc2626;
  transform: translateY(-2px);
}

.time-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--input-bg);
  border-radius: var(--input-radius);
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.time-row:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.time-row i {
  color: var(--text-light);
}

.time-row span {
  width: 50px;
}

.time-row input {
  margin-bottom: 0;
  padding: 8px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.time-row input:focus {
  transform: none;
  box-shadow: none;
}

/* Upcoming Reminders Screen */
.screen-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.screen-header h2 {
  font-size: 18px;
  margin: 0;
  flex-grow: 1;
  text-align: center;
}

.back-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--input-radius);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.clear-btn {
  background-color: #ef4444;
  color: white;
  border: none;
  border-radius: var(--input-radius);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clear-btn:hover {
  background-color: #dc2626;
  transform: translateY(-2px);
}

.reminder-filters {
  margin-bottom: 16px;
}

.search-container {
  position: relative;
  margin-bottom: 12px;
}

.search-container i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

.search-container input {
  padding-left: 40px;
}

.filter-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-btn {
  background-color: var(--bg-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: var(--input-radius);
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-grow: 1;
  text-align: center;
}

.filter-btn:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.filter-btn.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.reminders-list {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Customize scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Add animation for elements */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#formContainer,
#SaveContainermain {
  animation: fadeIn 0.3s ease-out forwards;
}

#formContainer {
  animation-delay: 0.1s;
}

#SaveContainermain {
  animation-delay: 0.2s;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-light);
}

.empty-state i {
  font-size: 40px;
  margin-bottom: 10px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 14px;
}
/* Minor update: improved styles */

/* Minor update: improved styles again */

