* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: url('GCT.png') no-repeat center center fixed;
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
  color: #1a1a1a;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
  overflow-x: hidden;
  width: 100%;
}

.app-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 10px;
  box-sizing: border-box;
  overflow-x: hidden;
}

.main-content {
  width: 100%;
  max-width: 1600px;
  background: transparent;
  padding: 0;
  transition: transform 0.3s ease-in-out;
  overflow-x: hidden;
}

.main-content.sidebar-open {
  transform: translateX(175px);
}

.container {
  padding: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Compact Task Form */
.quick-form {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 25px;
  border: 1px solid rgba(218, 165, 32, 0.4);
  box-shadow: 0 8px 32px rgba(218, 165, 32, 0.25);
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
}

.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(218, 165, 32, 0.2);
}

.form-header h3 {
  color: #1a1a1a;
  margin: 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  font-size: 18px;
}

.close-btn {
  background: rgba(255, 71, 87, 0.1);
  border: 1px solid rgba(255, 71, 87, 0.3);
  color: #ff4757;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: rgba(255, 71, 87, 0.2);
  transform: scale(1.1);
}

.form-row {
  margin-bottom: 15px;
}

.form-row.time-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 15px;
  align-items: end;
}

.form-row:not(.time-row):last-of-type {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.time-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.time-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.time-dropdown.compact,
.minute-input.compact,
.time-format-btn.compact {
  padding: 8px 10px;
  font-size: 13px;
  min-width: 60px;
}

.priority-dropdown {
  padding: 10px 12px;
  border: 2px solid rgba(218, 165, 32, 0.4);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.9);
  color: #1a1a1a;
  cursor: pointer;
  transition: all 0.3s ease;
}

.priority-dropdown:focus {
  border-color: rgba(218, 165, 32, 0.8);
  box-shadow: 0 0 10px rgba(218, 165, 32, 0.3);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(218, 165, 32, 0.2);
}

.btn-primary {
  flex: 2;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.9), rgba(218, 165, 32, 0.7));
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(218, 165, 32, 1), rgba(218, 165, 32, 0.8));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(218, 165, 32, 0.4);
}

.btn-secondary {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(218, 165, 32, 0.3);
  border-radius: 8px;
  color: #1a1a1a;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(218, 165, 32, 0.5);
  transform: translateY(-1px);
}

#cancel-form {
  background: rgba(255, 255, 255, 0.7) !important;
  color: #666 !important;
}

#cancel-form:hover {
  background: rgba(255, 255, 255, 0.9) !important;
}

/* Calendar Layout with Right Panel */
.calendar-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
}

.calendar-main {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 28px;
  flex: 1;
  min-width: 400px;
  width: 100%;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.calendar-right-panel {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 15px;
  padding: 18px;
  border: 1px solid rgba(218, 165, 32, 0.4);
  box-shadow: 0 6px 20px rgba(218, 165, 32, 0.25);
  height: fit-content;
  width: 220px;
  flex-shrink: 0;
  backdrop-filter: blur(12px);
  min-height: 180px;
}

.panel-header {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(218, 165, 32, 0.2);
}

.panel-header h4 {
  color: #1a1a1a;
  margin: 0;
  font-size: 15px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

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

.calendar-header h2 {
  color: #1a1a1a;
  font-size: 1.8em;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

.calendar-header button {
  background: rgba(218, 165, 32, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calendar-header button:hover {
  background: rgba(218, 165, 32, 1);
  transform: scale(1.05);
}

/* Inline Year Selector in Calendar Header */
.year-selector-inline {
  margin-left: 15px;
}

.year-dropdown-inline {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #DAA520;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  min-width: 80px;
}

.year-dropdown-inline:hover {
  background: rgba(218, 165, 32, 0.1);
  border-color: #B8860B;
  transform: translateY(-1px);
}

.year-dropdown-inline:focus {
  background: rgba(218, 165, 32, 0.15);
  border-color: #DAA520;
  box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.2);
}

.calendar-day {
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
}

.calendar-day:hover {
  background: rgba(218, 165, 32, 0.2);
  transform: scale(1.05);
}

.calendar-day.selected {
  background: rgba(218, 165, 32, 0.8);
  color: white;
  font-weight: bold;
}

/* Task Display */
.selected-day-tasks {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  border-radius: 15px;
  padding: 20px;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Notification Sidebar */
.notification-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 350px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.9);
  border-right: 2px solid rgba(218, 165, 32, 0.4);
  box-shadow: 2px 0 10px rgba(218, 165, 32, 0.2);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  overflow-y: auto;
}

.notification-sidebar.show {
  transform: translateX(0);
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgba(218, 165, 32, 0.1);
  border-bottom: 1px solid rgba(218, 165, 32, 0.2);
}

.notification-header h3 {
  color: #1a1a1a;
  margin: 0;
  font-size: 1.2em;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.close-btn {
  background: rgba(255, 71, 87, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: bold;
}

.close-btn:hover {
  background: rgba(255, 71, 87, 1);
  transform: scale(1.1);
}

.notifications-list {
  padding: 20px;
}

.notification-item {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(218, 165, 32, 0.3);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  position: relative;
  transition: all 0.2s ease;
}

.notification-item.urgent {
  border-color: rgba(255, 71, 87, 0.5);
  background: rgba(255, 245, 245, 0.9);
  animation: pulse 2s infinite;
}

.notification-item.due-soon {
  border-color: rgba(255, 167, 38, 0.5);
  background: rgba(255, 248, 220, 0.9);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.4); }
  50% { transform: scale(1.02); box-shadow: 0 0 20px 5px rgba(255, 71, 87, 0.2); }
}

.notification-task-name {
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  font-size: 1.1em;
}

.notification-time {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #666;
  font-size: 0.9em;
  margin-bottom: 10px;
}

.notification-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.acknowledge-btn, .snooze-btn, .complete-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85em;
  font-weight: 600;
  transition: all 0.2s ease;
}

.acknowledge-btn {
  background: rgba(218, 165, 32, 0.8);
  color: white;
}

.acknowledge-btn:hover {
  background: rgba(218, 165, 32, 1);
}

.snooze-btn {
  background: rgba(255, 167, 38, 0.8);
  color: white;
}

.snooze-btn:hover {
  background: rgba(255, 167, 38, 1);
}

.complete-btn {
  background: rgba(76, 175, 80, 0.8);
  color: white;
}

.complete-btn:hover {
  background: rgba(76, 175, 80, 1);
}

/* Upcoming Tasks Section */
.upcoming-section {
  margin-bottom: 25px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 15px;
  backdrop-filter: blur(3px);
}

.upcoming-list {
  max-height: 150px;
  overflow-y: auto;
}

.upcoming-task {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  border-left: 3px solid #DAA520;
}

.upcoming-task.high {
  border-left-color: #ff4757;
}

.upcoming-task.medium {
  border-left-color: #ffa726;
}

.upcoming-task.low {
  border-left-color: #26a69a;
}

.upcoming-task-text {
  color: #1a1a1a;
  font-size: 0.85em;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}

.upcoming-task-time {
  color: #444;
  font-size: 0.75em;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.no-upcoming {
  color: #666;
  font-style: italic;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9em;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

/* Quick Actions */
.actions-section {
  margin-bottom: 25px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 15px;
  backdrop-filter: blur(3px);
}

.quick-action {
  width: 100%;
  background: rgba(218, 165, 32, 0.3);
  color: white;
  border: 2px solid rgba(218, 165, 32, 0.8);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 0.85em;
  font-weight: 600;
  backdrop-filter: blur(5px);
  box-shadow: 0 0 15px rgba(218, 165, 32, 0.4);
  text-shadow: 0 0 10px rgba(218, 165, 32, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.quick-action:hover {
  background: rgba(218, 165, 32, 0.6);
  border-color: rgba(218, 165, 32, 1);
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(218, 165, 32, 0.8), 0 4px 15px rgba(218, 165, 32, 0.4);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
}

.quick-action:last-child {
  margin-bottom: 0;
}

/* Progress Ring */
.progress-section {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 15px;
  backdrop-filter: blur(3px);
  text-align: center;
}

.progress-ring-container {
  position: relative;
  display: inline-block;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-fill {
  transition: stroke-dashoffset 0.5s ease;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.9em;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

/* Main content */
.main-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.25);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
}

h1 {
  text-align: center;
  color: #1a1a1a;
  margin-bottom: 30px;
  font-size: 2.5em;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9), 0 1px 1px rgba(0, 0, 0, 0.1);
  letter-spacing: -1px;
}

form {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

input, select {
  flex: 1;
  min-width: 150px;
  padding: 12px 15px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  color: #1a1a1a;
}

input:focus, select:focus {
  border-color: #DAA520;
}

/* Priority Select Color Coding */
#priority-select {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #DAA520;
  transition: all 0.3s ease;
}

#priority-select[data-priority="high"] {
  background: rgba(255, 71, 87, 0.1);
  border-color: #ff4757;
  color: #ff4757;
  font-weight: bold;
}

#priority-select[data-priority="medium"] {
  background: rgba(218, 165, 32, 0.1);
  border-color: #DAA520;
  color: #DAA520;
  font-weight: bold;
}

#priority-select[data-priority="low"] {
  background: rgba(38, 166, 154, 0.1);
  border-color: #26a69a;
  color: #26a69a;
  font-weight: bold;
}

/* Priority Select Options Styling */
#priority-select option[value="high"] {
  background-color: rgba(255, 71, 87, 0.1);
  color: #ff4757;
  font-weight: bold;
}

#priority-select option[value="medium"] {
  background-color: rgba(218, 165, 32, 0.1);
  color: #DAA520;
  font-weight: bold;
}

#priority-select option[value="low"] {
  background-color: rgba(38, 166, 154, 0.1);
  color: #26a69a;
  font-weight: bold;
}

/* Time Selector Styling */
.time-selector-container {
  width: 100%;
  margin: 10px 0;
}

.time-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1a1a1a;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.time-dropdowns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-dropdown {
  flex: 1;
  padding: 10px 12px;
  border: 2px solid rgba(218, 165, 32, 0.4);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  color: #1a1a1a;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(218, 165, 32, 0.15);
}

.time-dropdown:focus {
  border-color: rgba(218, 165, 32, 0.8);
  box-shadow: 0 0 15px rgba(218, 165, 32, 0.4);
  background: rgba(255, 255, 255, 0.9);
}

.time-dropdown:hover {
  border-color: rgba(218, 165, 32, 0.6);
  box-shadow: 0 0 12px rgba(218, 165, 32, 0.3);
}

/* Enhanced Minute Selector */
.minute-selector-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.minute-input {
  flex: 1;
  padding: 10px 12px;
  border: 2px solid rgba(218, 165, 32, 0.4);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  color: #1a1a1a;
  text-align: center;
  box-shadow: 0 2px 6px rgba(218, 165, 32, 0.15);
  width: 60px;
}

.minute-input:focus {
  border-color: rgba(218, 165, 32, 0.8);
  box-shadow: 0 0 15px rgba(218, 165, 32, 0.4);
  background: rgba(255, 255, 255, 0.95);
}

.minute-input:hover {
  border-color: rgba(218, 165, 32, 0.6);
  box-shadow: 0 0 12px rgba(218, 165, 32, 0.3);
}

.minute-quick-buttons {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(218, 165, 32, 0.2);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(218, 165, 32, 0.2);
}

.minute-selector-container:hover .minute-quick-buttons,
.minute-input:focus + .minute-quick-buttons {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.minute-btn {
  padding: 6px 4px;
  border: 1px solid rgba(218, 165, 32, 0.3);
  background: rgba(255, 255, 255, 0.8);
  color: #1a1a1a;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.minute-btn:hover {
  background: rgba(218, 165, 32, 0.1);
  border-color: rgba(218, 165, 32, 0.6);
  transform: scale(1.05);
}

.minute-btn:active {
  background: rgba(218, 165, 32, 0.3);
  transform: scale(0.95);
}

.minute-btn.active {
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.8), rgba(218, 165, 32, 0.6));
  border-color: rgba(218, 165, 32, 0.8);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 6px rgba(218, 165, 32, 0.4);
}

/* Mobile Responsive Minute Selector */
@media (max-width: 768px) {
  .minute-quick-buttons {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 10px;
  }
  
  .minute-btn {
    padding: 8px 6px;
    font-size: 12px;
  }
  
  .minute-input {
    width: 50px;
    padding: 8px 10px;
  }
  
  .time-dropdowns {
    flex-wrap: wrap;
    gap: 10px;
  }
}

.time-separator {
  font-size: 18px;
  font-weight: bold;
  color: rgba(218, 165, 32, 0.8);
  text-shadow: 0 0 5px rgba(218, 165, 32, 0.4);
  margin: 0 4px;
}

.time-format-btn {
  padding: 12px 18px;
  border: 2px solid rgba(218, 165, 32, 0.6);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.15), rgba(218, 165, 32, 0.25));
  backdrop-filter: blur(8px);
  color: #DAA520;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(218, 165, 32, 0.2);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  min-width: 80px;
  text-align: center;
}

.time-format-btn:hover {
  border-color: rgba(218, 165, 32, 0.8);
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.25), rgba(218, 165, 32, 0.35));
  box-shadow: 0 4px 16px rgba(218, 165, 32, 0.3);
  transform: translateY(-2px);
  color: #B8860B;
}

.time-format-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(218, 165, 32, 0.25);
}

.time-format-btn.active-24h {
  background: linear-gradient(135deg, #DAA520, #B8860B);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Year Selector Sidebar Styling */
.year-sidebar {
  position: fixed;
  top: 20px;
  right: 120px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  border: 2px solid rgba(218, 165, 32, 0.4);
  padding: 15px;
  box-shadow: 0 4px 12px rgba(218, 165, 32, 0.25);
  transition: all 0.3s ease;
}

.year-sidebar:hover {
  border-color: rgba(218, 165, 32, 0.6);
  box-shadow: 0 0 25px rgba(218, 165, 32, 0.5);
  transform: translateY(-2px);
}

.year-selector-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.year-label {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  text-align: center;
}

.year-dropdown {
  padding: 8px 12px;
  border: 2px solid rgba(218, 165, 32, 0.4);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  color: #1a1a1a;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(218, 165, 32, 0.15);
  min-width: 80px;
  text-align: center;
}

.year-dropdown:focus {
  border-color: rgba(218, 165, 32, 0.8);
  box-shadow: 0 2px 8px rgba(218, 165, 32, 0.3);
  background: rgba(255, 255, 255, 0.9);
}

.year-dropdown:hover {
  border-color: rgba(218, 165, 32, 0.6);
  box-shadow: 0 0 12px rgba(218, 165, 32, 0.3);
}

#alarm-time {
  flex: 0 1 auto;
  min-width: 120px;
}

button {
  padding: 12px 20px;
  background: linear-gradient(135deg, #DAA520 0%, #B8860B 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(218, 165, 32, 0.3);
}

button:active {
  transform: translateY(0);
}

.current-day-tasks h2 {
  color: #1a1a1a;
  margin-bottom: 20px;
  font-size: 1.8em;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9), 0 1px 1px rgba(0, 0, 0, 0.1);
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  background: rgba(248, 249, 250, 0.6);
  margin-bottom: 12px;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #DAA520;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(3px);
}

li:hover {
  transform: translateX(5px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

li.has-alarm {
  border-left-color: #ff6b6b;
  background: rgba(255, 245, 245, 0.6);
}

.task-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.task-text {
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.task-text.completed {
  text-decoration: line-through;
  opacity: 0.6;
}

.task-checkbox {
  margin-right: 10px;
  transform: scale(1.2);
  cursor: pointer;
}

li.completed {
  opacity: 0.7;
}

.task-details {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: #444;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

.task-day {
  background: #DAA520;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
}

.task-alarm {
  background: #ff6b6b;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
}

.task-actions {
  display: flex;
  gap: 5px;
}

.delete-btn {
  background: #e74c3c;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 6px;
}

.delete-btn:hover {
  background: #c0392b;
  transform: none;
  box-shadow: 0 2px 5px rgba(231, 76, 60, 0.3);
}

/* Calendar Component */
.calendar-container {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.calendar-header button {
  background: rgba(218, 165, 32, 0.2);
  color: white;
  border: 2px solid rgba(218, 165, 32, 0.8);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  box-shadow: 0 0 12px rgba(218, 165, 32, 0.3);
  text-shadow: 0 0 8px rgba(218, 165, 32, 0.8);
}

.calendar-header button:hover {
  background: rgba(218, 165, 32, 0.4);
  border-color: rgba(218, 165, 32, 1);
  box-shadow: 0 0 20px rgba(218, 165, 32, 0.7);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
  transform: scale(1.1);
}

#current-month {
  font-size: 1.5em;
  font-weight: 600;
  color: #1a1a1a;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

.calendar-grid {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 15px;
  backdrop-filter: blur(3px);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 10px;
}

.calendar-weekdays div {
  text-align: center;
  font-weight: 600;
  color: #1a1a1a;
  padding: 10px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: #1a1a1a;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
  position: relative;
  background: rgba(255, 255, 255, 0.3);
}

.calendar-day:hover {
  background: rgba(218, 165, 32, 0.2);
  border: 1px solid rgba(218, 165, 32, 0.8);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(218, 165, 32, 0.4);
  backdrop-filter: blur(3px);
}

.calendar-day.today {
  background: rgba(218, 165, 32, 0.4);
  color: white;
  border: 2px solid rgba(218, 165, 32, 0.9);
  box-shadow: 0 0 20px rgba(218, 165, 32, 0.6);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.calendar-day.selected {
  background: rgba(218, 165, 32, 0.3);
  color: white;
  font-weight: 700;
  border: 2px solid rgba(218, 165, 32, 1);
  box-shadow: 0 0 25px rgba(218, 165, 32, 0.8), inset 0 0 15px rgba(218, 165, 32, 0.2);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
}

.calendar-day.other-month {
  opacity: 0.4;
  color: #888;
}

.calendar-day.has-tasks {
  border: 2px solid rgba(218, 165, 32, 0.8);
  box-shadow: 0 0 12px rgba(218, 165, 32, 0.3);
}

.task-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.task-indicator.high { background: #ff4757; }
.task-indicator.medium { background: #DAA520; }
.task-indicator.low { background: #26a69a; }

/* Priority background colors for calendar days */
.calendar-day.priority-high {
  background: linear-gradient(135deg, rgba(255, 71, 87, 0.2), rgba(255, 71, 87, 0.1));
  border-color: rgba(255, 71, 87, 0.4);
}

.calendar-day.priority-medium {
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.2), rgba(218, 165, 32, 0.1));
  border-color: rgba(218, 165, 32, 0.4);
}

.calendar-day.priority-low {
  background: linear-gradient(135deg, rgba(38, 166, 154, 0.2), rgba(38, 166, 154, 0.1));
  border-color: rgba(38, 166, 154, 0.4);
}

/* Highlighted day animation */
.calendar-day.highlighted {
  animation: highlightPulse 1s ease-in-out 3;
  border: 3px solid #DAA520 !important;
  transform: scale(1.1);
}

@keyframes highlightPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(218, 165, 32, 0.7); }
  50% { box-shadow: 0 0 0 10px rgba(218, 165, 32, 0); }
}

.calendar-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
  font-size: 12px;
}

.calendar-legend.vertical {
  flex-direction: column;
  gap: 12px;
  margin-top: 0;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #1a1a1a;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.calendar-legend.vertical .legend-item:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateX(2px);
}

.legend-text {
  font-size: 12px;
}

/* Time Input Styling */
.time-input {
  padding: 12px 15px;
  border: 2px solid rgba(218, 165, 32, 0.4);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  width: 140px;
  box-shadow: 0 2px 8px rgba(218, 165, 32, 0.1);
}

.time-input:focus {
  outline: none;
  border-color: #DAA520;
  box-shadow: 0 0 0 4px rgba(218, 165, 32, 0.25);
  background: rgba(255, 255, 255, 1);
}

.time-input:hover {
  border-color: rgba(218, 165, 32, 0.6);
  box-shadow: 0 4px 12px rgba(218, 165, 32, 0.15);
}

/* Month/Year Header at Top */
.month-year-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 15px;
  margin-bottom: 15px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.language-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 100;
  position: relative;
}

.language-select {
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(218, 165, 32, 0.6);
  border-radius: 8px;
  padding: 8px 12px;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
  min-width: 100px;
}

.language-select:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(218, 165, 32, 1);
  transform: translateY(-1px);
}

.language-select option {
  background: rgba(50, 50, 50, 0.95);
  color: white;
}





/* RTL Support for Arabic */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .task-sidebar {
  right: auto;
  left: 0;
  transform: translateX(-100%);
}

[dir="rtl"] .task-sidebar.show {
  transform: translateX(0);
}

[dir="rtl"] .language-controls {
  flex-direction: row-reverse;
}

/* Task Sidebar */
.task-sidebar {
  position: fixed;
  right: 0;
  top: 0;
  width: 400px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  border-left: 2px solid rgba(218, 165, 32, 0.4);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.task-sidebar.show {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.4);
  color: #333;
  border-bottom: 1px solid rgba(218, 165, 32, 0.2);
  backdrop-filter: blur(12px);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.close-btn {
  background: rgba(255, 0, 0, 0.1);
  border: 2px solid rgba(255, 0, 0, 0.3);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: #d32f2f;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  background: rgba(255, 0, 0, 0.2);
  border-color: rgba(255, 0, 0, 0.6);
  transform: scale(1.1);
}

.sidebar-form {
  padding: 25px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  height: calc(100% - 80px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sidebar-form .form-actions {
  margin-top: auto;
  padding-top: 20px;
  border-top: 2px solid rgba(218, 165, 32, 0.2);
  background: rgba(255, 255, 255, 0.9);
  margin: 20px -25px -25px;
  padding: 20px 25px;
}

.form-actions-inline {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: none !important;
  background: transparent !important;
  margin: 15px 0 !important;
  padding: 0 !important;
}

.sidebar-form .form-group {
  margin-bottom: 20px;
  min-height: auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group.half {
  flex: 1;
}

.sidebar-form .form-row {
  display: flex;
  gap: 15px;
  width: 100%;
  align-items: flex-start;
}

.sidebar-form .form-row .form-group {
  flex: 1;
  min-width: 0;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.form-input, .form-select, #sidebar-task-title, #sidebar-start-time, #sidebar-end-time, #sidebar-priority {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid rgba(218, 165, 32, 0.5);
  border-radius: 8px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease;
  box-sizing: border-box;
  display: block;
  visibility: visible;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: #DAA520;
  background: white;
  box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.1);
}

.format-toggle-btn {
  padding: 10px 20px;
  border: 2px solid rgba(218, 165, 32, 0.4);
  background: rgba(255, 255, 255, 0.9);
  color: #1a1a1a;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
}

.format-toggle-btn:hover {
  background: rgba(218, 165, 32, 0.1);
  border-color: #DAA520;
}

/* Alarm Toggle Styling */
.alarm-toggle-group {
  margin-bottom: 20px;
}

.alarm-toggle-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alarm-toggle-btn {
  padding: 12px 20px;
  border: 2px solid rgba(255, 152, 0, 0.4);
  background: rgba(255, 255, 255, 0.9);
  color: #1a1a1a;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.alarm-toggle-btn:hover {
  background: rgba(255, 152, 0, 0.1);
  border-color: #ff9800;
}

.alarm-toggle-btn[data-enabled="true"] {
  background: rgba(76, 175, 80, 0.15);
  border-color: #4CAF50;
  color: #2E7D32;
}

.alarm-toggle-btn[data-enabled="true"]:hover {
  background: rgba(76, 175, 80, 0.25);
}

.alarm-toggle-btn[data-enabled="false"] {
  background: rgba(158, 158, 158, 0.1);
  border-color: #9E9E9E;
  color: #666;
}

.alarm-toggle-btn .alarm-icon {
  font-size: 16px;
  transition: all 0.3s ease;
}

.alarm-toggle-btn .alarm-text {
  font-weight: 600;
}

.alarm-info {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  color: #8B6914;
}

.sidebar-legend {
  padding: 20px 25px;
  border-top: 1px solid rgba(218, 165, 32, 0.2);
  background: rgba(218, 165, 32, 0.05);
}

.sidebar-legend h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 16px;
}

.legend-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Adjust calendar layout when sidebar is open */
body.sidebar-open .calendar-layout {
  margin-right: 420px;
  transition: margin-right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* View Controls Section Below */
.view-controls-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 25px;
  backdrop-filter: blur(8px);
}

/* Legacy calendar-controls for any remaining references */
.calendar-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px;
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.12), rgba(218, 165, 32, 0.08));
  border-radius: 15px;
  margin-bottom: 25px;
  border: 1px solid rgba(218, 165, 32, 0.25);
  backdrop-filter: blur(6px);
  box-shadow: 0 3px 15px rgba(218, 165, 32, 0.1);
}

.view-controls {
  display: flex;
  gap: 5px;
}

.view-btn {
  padding: 10px 18px;
  border: 2px solid rgba(218, 165, 32, 0.4);
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 8px rgba(218, 165, 32, 0.1);
}

.view-btn:hover {
  background: rgba(218, 165, 32, 0.15);
  border-color: #DAA520;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(218, 165, 32, 0.2);
}

.view-btn.active {
  background: linear-gradient(135deg, #DAA520, #B8860B);
  color: white;
  border-color: #DAA520;
  box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.navigation-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.navigation-controls h2 {
  color: #333;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
  margin: 0;
}

.period-display h2 {
  margin: 0;
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 600;
}

/* Time-Slot Calendar Grid */
.timeslot-calendar {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 100%;
}

.calendar-grid-container {
  display: flex;
  min-height: 600px;
  overflow-x: auto;
  width: 100%;
}

.time-column {
  width: 90px;
  background: linear-gradient(180deg, #f8f9fa, #f1f3f4);
  border-right: 2px solid rgba(218, 165, 32, 0.2);
}

.time-header {
  height: 50px;
  border-bottom: 1px solid rgba(218, 165, 32, 0.2);
}

.time-slot {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  border-bottom: 1px solid rgba(218, 165, 32, 0.1);
  padding: 0 4px;
}

.days-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  min-width: 0;
  overflow: hidden;
}

.day-column {
  border-right: 1px solid rgba(218, 165, 32, 0.1);
}

.day-column:last-child {
  border-right: none;
}

.day-header {
  height: 55px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(218, 165, 32, 0.1), rgba(218, 165, 32, 0.05));
  border-bottom: 2px solid rgba(218, 165, 32, 0.2);
  font-weight: 600;
  color: #1a1a1a;
  padding: 0 8px;
}

.day-name {
  font-size: 11px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.day-number {
  font-size: 16px;
}

.time-block {
  height: 60px;
  border-bottom: 1px solid rgba(218, 165, 32, 0.1);
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.time-block:hover {
  background-color: rgba(218, 165, 32, 0.05);
}

.time-block.has-task {
  background: linear-gradient(135deg, var(--task-color, #DAA520), var(--task-color-light, rgba(218, 165, 32, 0.7)));
  border-left: 4px solid var(--task-color, #DAA520);
}

.task-block {
  position: absolute;
  left: 3px;
  right: 3px;
  top: 3px;
  bottom: 3px;
  border-radius: 5px;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 500;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.task-alarm-icon {
  display: inline-block;
  margin-right: 4px;
  font-size: 10px;
  opacity: 0.9;
  animation: gentle-pulse 2s infinite ease-in-out;
}

@keyframes gentle-pulse {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.6; }
}

.task-block.high-priority {
  background: linear-gradient(135deg, #ff4757, #ff6b7a);
  --task-color: #ff4757;
  --task-color-light: rgba(255, 71, 87, 0.7);
}

.task-block.medium-priority {
  background: linear-gradient(135deg, #DAA520, #f1c40f);
  --task-color: #DAA520;
  --task-color-light: rgba(218, 165, 32, 0.7);
}

.task-block.low-priority {
  background: linear-gradient(135deg, #2ed573, #7bed9f);
  --task-color: #2ed573;
  --task-color-light: rgba(46, 213, 115, 0.7);
}

/* Hidden states */
.hidden {
  display: none !important;
}

/* Responsive Design for Time-Slot Calendar */
@media (max-width: 768px) {
  .month-year-header {
    padding: 15px;
  }
  
  .view-controls-section {
    padding: 12px;
  }
  
  .calendar-controls {
    flex-direction: column;
    gap: 15px;
  }
  
  .view-controls {
    order: 2;
  }
  
  .navigation-controls {
    order: 1;
    justify-content: center;
  }
  
  .days-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .time-column {
    width: 60px;
  }
  
  .time-slot {
    font-size: 10px;
    height: 40px;
  }
  
  .time-block {
    height: 40px;
  }
  
  .task-block {
    font-size: 10px;
    padding: 2px 4px;
  }
  
  .sidebar-toggle-btn {
    left: 5px;
    top: 15px;
    padding: 10px;
    font-size: 12px;
  }
  
  .sidebar-toggle-btn .toggle-text {
    display: none;
  }
}

@media (max-width: 480px) {
  .days-grid {
    grid-template-columns: 1fr;
  }
  
  .view-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* Recurring Task Section */
.recurring-section {
  margin: 15px 0;
  border: 2px dashed rgba(218, 165, 32, 0.3);
  border-radius: 10px;
  background: rgba(218, 165, 32, 0.05);
  transition: all 0.3s ease;
}

.recurring-section.expanded {
  border-style: solid;
  background: rgba(218, 165, 32, 0.08);
  box-shadow: 0 2px 10px rgba(218, 165, 32, 0.1);
}

.recurring-header {
  padding: 12px 15px;
}

.recurring-toggle-btn {
  background: transparent;
  border: none;
  color: #DAA520;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  width: 100%;
  justify-content: space-between;
}

.recurring-toggle-btn:hover {
  background: rgba(218, 165, 32, 0.1);
  color: #B8860B;
}

.toggle-icon {
  transition: transform 0.3s ease;
  font-size: 12px;
}

.recurring-toggle-btn.expanded .toggle-icon {
  transform: rotate(180deg);
}

.recurring-options {
  padding: 0 15px 15px 15px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Recurring Preview Styles */
.recurring-preview {
  margin-top: 15px;
  padding: 12px;
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 8px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.preview-header {
  color: #2E7D32;
  font-size: 13px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.preview-content {
  font-size: 12px;
  color: #4A4A4A;
  line-height: 1.4;
}

.preview-task-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.preview-task-item {
  padding: 4px 8px;
  margin: 2px 0;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  border-left: 3px solid #4CAF50;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preview-count {
  background: #4CAF50;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: bold;
}

.recurring-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.recurring-dropdown, .recurring-input {
  padding: 10px 12px;
  border: 2px solid rgba(218, 165, 32, 0.4);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.recurring-dropdown:focus, .recurring-input:focus {
  outline: none;
  border-color: #DAA520;
  box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.2);
}

/* Weekly Options */
.weekly-options {
  margin: 15px 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  border: 1px solid rgba(218, 165, 32, 0.2);
}

.weekday-selector {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 15px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(218, 165, 32, 0.2);
}

.weekday-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.weekday-label {
  font-size: 11px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.weekday-toggle {
  position: relative;
  width: 50px;
  height: 24px;
  background: #333;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.weekday-toggle::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.weekday-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.weekday-item input[type="checkbox"]:checked + .weekday-content .weekday-toggle {
  background: linear-gradient(135deg, #DAA520 0%, #FFD700 50%, #DAA520 100%);
  box-shadow: inset 0 2px 4px rgba(218, 165, 32, 0.3), 0 0 15px rgba(218, 165, 32, 0.4);
}

.weekday-item input[type="checkbox"]:checked + .weekday-content .weekday-toggle::before {
  left: 28px;
  background: #FFF8DC;
  box-shadow: 0 2px 8px rgba(218, 165, 32, 0.4);
}

.weekday-item input[type="checkbox"]:checked + .weekday-content .weekday-label {
  color: #DAA520;
  font-weight: 700;
}

.weekday-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.weekday-toggle:hover {
  transform: scale(1.05);
}

/* Quick Presets */
.recurring-presets {
  margin-top: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  border: 1px solid rgba(218, 165, 32, 0.2);
}

.preset-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.preset-btn {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(218, 165, 32, 0.4);
  border-radius: 6px;
  color: #DAA520;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.preset-btn:hover {
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.1), rgba(218, 165, 32, 0.2));
  border-color: #DAA520;
  color: #B8860B;
  transform: translateY(-1px);
}

.preset-btn:active {
  transform: translateY(0);
}

/* Enhanced Recurring Options Styles */
.recurring-type-selector {
  margin-bottom: 1rem;
}

.recurring-duration {
  background: rgba(255, 255, 255, 0.2);
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid rgba(218, 165, 32, 0.3);
}

.daily-options, .monthly-options, .custom-options {
  background: rgba(255, 255, 255, 0.15);
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.monthly-pattern-selector {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.radio-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.radio-option input[type="radio"] {
  margin: 0;
  accent-color: #667eea;
}

.radio-label {
  font-size: 0.9rem;
  color: #4a5568;
  line-height: 1.4;
}

.custom-examples {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  border-left: 3px solid #667eea;
}

.custom-examples p {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  color: #2d3748;
  font-size: 0.85rem;
}

.custom-examples ul {
  margin: 0.5rem 0 0 1rem;
  padding: 0;
}

.custom-examples li {
  font-size: 0.8rem;
  color: #4a5568;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

/* Enhanced Form Elements */
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-textarea:focus {
  outline: none;
  border-color: #667eea;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-textarea::placeholder {
  color: #9ca3af;
}

/* Improved Preset Buttons */
.preset-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.preset-btn {
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px solid rgba(218, 165, 32, 0.4);
  border-radius: 8px;
  color: #2d3748;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  line-height: 1.2;
}

.preset-btn:hover {
  background: rgba(218, 165, 32, 0.1);
  border-color: #DAA520;
  color: #B8860B;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(218, 165, 32, 0.3);
}

.preset-btn:active {
  transform: translateY(0);
}

/* Responsive adjustments for recurring options */
@media (max-width: 768px) {
  .preset-buttons {
    grid-template-columns: 1fr;
  }
  
  .monthly-pattern-selector {
    gap: 0.5rem;
  }
  
  .radio-option {
    padding: 0.4rem;
  }
  
  .custom-examples {
    padding: 0.5rem;
  }
}

/* Stats Panel styles removed - Quick Stats section removed */

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Enhanced Alarm System */
.alarm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.alarm-modal {
  background: linear-gradient(135deg, #ff4757, #ff3742);
  color: white;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(255, 71, 87, 0.4);
  animation: alarmPulse 1s infinite;
  min-width: 350px;
}

@keyframes alarmPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 20px 40px rgba(255, 71, 87, 0.4); }
  50% { transform: scale(1.02); box-shadow: 0 25px 50px rgba(255, 71, 87, 0.6); }
}

.alarm-header h2 {
  margin: 0 0 15px 0;
  font-size: 24px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.alarm-time {
  font-size: 48px;
  font-weight: bold;
  margin: 15px 0;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.alarm-content {
  margin: 20px 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.alarm-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.dismiss-btn, .snooze-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.dismiss-btn {
  background: white;
  color: #ff4757;
}

.dismiss-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.snooze-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
}

.snooze-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Removed duplicate sidebar styles that were causing golden background conflict */

.sidebar-toggle {
  position: absolute;
  right: -50px;
  top: 20px;
  background: rgba(218, 165, 32, 0.9);
  color: white;
  padding: 12px 8px;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
  box-shadow: 2px 0 10px rgba(218, 165, 32, 0.4);
  z-index: 1001;
}

.sidebar-toggle:hover {
  background: rgba(218, 165, 32, 1);
  transform: translateX(2px);
}

.toggle-icon {
  font-size: 20px;
}

.toggle-text {
  font-size: 11px;
  font-weight: bold;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.sidebar-content {
  padding: 20px;
  height: 100%;
  overflow-y: auto;
}

.sidebar-header h3 {
  margin: 0 0 20px 0;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  font-size: 18px;
}

/* Sidebar Filter Buttons */
.sidebar-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 25px;
}

.sidebar-filters .filter-btn {
  padding: 10px 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.sidebar-filters .filter-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateX(5px);
}

.sidebar-filters .filter-btn.active {
  background: rgba(255, 255, 255, 0.9);
  border-color: white;
  color: #DAA520;
  text-shadow: none;
  font-weight: 700;
}

.filter-count {
  opacity: 0.7;
  font-weight: 500;
  margin-left: 4px;
}

.sidebar-filters .filter-btn.active .filter-count {
  opacity: 0.8;
}

/* Sidebar Task List */
.sidebar-tasks {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.task-date-group {
  margin-bottom: 20px;
}

.task-date-header {
  color: white;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.task-count-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.sidebar-task-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-left: 4px solid;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.sidebar-task-item.completed {
  opacity: 0.7;
  background: rgba(255, 255, 255, 0.05);
}

.task-priority-icon {
  font-size: 14px;
  margin-top: 1px;
}

.sidebar-task-content {
  flex: 1;
}

.sidebar-task-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

.sidebar-task-item.high {
  border-left-color: #ff4757;
}

.sidebar-task-item.medium {
  border-left-color: #ffa726;
}

.sidebar-task-item.low {
  border-left-color: #26a69a;
}

.sidebar-task-text {
  color: white;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
}

.sidebar-task-time,
.sidebar-task-alarm {
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  margin-bottom: 2px;
}

/* Main content adjustment for sidebar */
.main-content {
  transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body:not(.sidebar-open) .main-content {
  margin-left: 40px;
}

body.sidebar-open .main-content {
  margin-left: 320px;
}

.legend-dot.high { background: #ff4757; }
.legend-dot.medium { background: #DAA520; }
.legend-dot.low { background: #26a69a; }

/* Task Filters */
.task-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(218, 165, 32, 0.5);
  border-radius: 20px;
  color: #1a1a1a;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(3px);
  box-shadow: 0 0 8px rgba(218, 165, 32, 0.2);
}

.filter-btn:hover {
  background: rgba(218, 165, 32, 0.2);
  border-color: rgba(218, 165, 32, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(218, 165, 32, 0.4);
}

.filter-btn.active {
  background: rgba(218, 165, 32, 0.4);
  border-color: rgba(218, 165, 32, 1);
  color: white;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 20px rgba(218, 165, 32, 0.6);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Priority indicators in tasks */
.task-priority {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}

.task-priority.high { background: #ff4757; }
.task-priority.medium { background: #DAA520; }
.task-priority.low { background: #26a69a; }

/* Enhanced form styling */
form {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
  gap: 10px;
  margin-bottom: 30px;
  align-items: center;
}

#task-input {
  grid-column: span 2;
}

/* Empty state */
#task-list:empty::after {
  content: "No tasks yet. Add one above!";
  display: block;
  text-align: center;
  color: #555;
  font-style: italic;
  font-weight: 500;
  padding: 30px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Responsive design */
@media (max-width: 900px) {
  .calendar-layout {
    flex-direction: column;
    gap: 15px;
  }
  
  .calendar-main {
    max-width: 100%;
    min-width: unset;
  }
  
  .calendar-right-panel {
    order: -1;
    width: 100%;
  }
  
  .app-container {
    padding: 15px;
  }
  
  .main-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
    padding: 10px;
  }
  
  .dashboard-sidebar {
    width: 100%;
    padding: 15px;
    border-right: none;
    border-bottom: 1px solid rgba(225, 229, 233, 0.4);
  }
  
  .dashboard-sidebar h2 {
    font-size: 1.2em;
    margin-bottom: 20px;
  }
  
  .stats-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
  }
  
  .stat-item {
    flex-direction: column;
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    border-bottom: none;
  }
  
  .upcoming-section, .actions-section {
    margin-bottom: 20px;
  }
  
  .actions-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .main-content {
    padding: 15px;
  }
  
  .container {
    padding: 20px;
  }
  
  /* Mobile form layout */
  form {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  #task-input {
    grid-column: span 1;
  }
  
  input, select, button {
    min-width: 100%;
  }
  
  /* Mobile calendar */
  .calendar-container {
    padding: 15px;
    margin: 15px 0;
  }
  
  .calendar-header h3 {
    font-size: 1.2em;
  }
  
  .calendar-header button {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .calendar-day {
    font-size: 14px;
    min-height: 40px;
  }
  
  .task-filters {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .filter-btn {
    padding: 6px 12px;
    font-size: 14px;
  }
  
  .calendar-legend {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}

/* Alarm notification */
.alarm-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #ff6b6b;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
  z-index: 1000;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Search Container */
.search-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 20px;
  flex-wrap: wrap;
}

.search-wrapper {
  position: relative;
  flex: 1;
  min-width: 300px;
}

.search-input {
  width: 100%;
  padding: 12px 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
  background: rgba(255, 255, 255, 0.95);
}

.clear-search-btn {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.clear-search-btn:hover {
  background: rgba(255, 0, 0, 0.1);
  color: #ff4444;
}

/* Header Controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  padding-left: 40px;
}

.sidebar-toggle-btn {
  padding: 8px 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  background: rgba(76, 175, 80, 0.9);
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.sidebar-toggle-btn:hover {
  background: rgba(76, 175, 80, 1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.toggle-icon {
  font-size: 16px;
}

/* Sidebar Sections */
.sidebar-section {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-section:last-child {
  border-bottom: none;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-btn {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  text-align: left;
}

.action-btn.primary {
  background: rgba(76, 175, 80, 0.9);
  color: white;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.action-btn.primary:hover {
  background: rgba(76, 175, 80, 1);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.action-btn.secondary {
  background: rgba(108, 117, 125, 0.1);
  color: #495057;
  border: 1px solid rgba(108, 117, 125, 0.3);
}

.action-btn.secondary:hover {
  background: rgba(108, 117, 125, 0.2);
  transform: translateY(-1px);
}

.action-row {
  display: flex;
  gap: 10px;
}

.action-row .action-btn {
  flex: 1;
}

/* Bulk Actions in Sidebar */
.bulk-title {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  margin-bottom: 10px;
  margin-top: 15px;
}

.bulk-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-form-section {
  border-top: 2px solid rgba(76, 175, 80, 0.3);
  padding-top: 20px;
}

.quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.bulk-actions {
  display: flex;
  gap: 8px;
  margin-left: 15px;
  padding-left: 15px;
  border-left: 2px solid rgba(255, 255, 255, 0.3);
}

.bulk-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  background: rgba(108, 117, 125, 0.9);
  color: white;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.bulk-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.bulk-btn.delete-btn {
  background: rgba(220, 53, 69, 0.9);
}

.bulk-btn.delete-btn:hover {
  background: rgba(220, 53, 69, 1);
}

.bulk-btn.complete-btn {
  background: rgba(40, 167, 69, 0.9);
}

.bulk-btn.complete-btn:hover {
  background: rgba(40, 167, 69, 1);
}

.quick-add-btn, .export-btn, .import-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 25px;
  background: rgba(76, 175, 80, 0.9);
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.quick-add-btn:hover {
  background: rgba(76, 175, 80, 1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.export-btn {
  background: rgba(33, 150, 243, 0.9);
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.export-btn:hover {
  background: rgba(33, 150, 243, 1);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.import-btn {
  background: rgba(255, 152, 0, 0.9);
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.import-btn:hover {
  background: rgba(255, 152, 0, 1);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

/* Quick Add Modal */
.quick-add-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
}

.quick-add-modal {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 0;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(-50px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  padding: 20px 25px 15px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  color: #333;
  font-size: 18px;
}

.modal-content {
  padding: 25px;
}

.quick-input {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  font-size: 16px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.quick-input:focus {
  outline: none;
  border-color: #4CAF50;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.quick-options {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.quick-date, .quick-priority {
  padding: 10px 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  transition: all 0.3s ease;
}

.quick-date:focus, .quick-priority:focus {
  outline: none;
  border-color: #4CAF50;
  background: rgba(255, 255, 255, 0.95);
}

.modal-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.cancel-btn {
  padding: 12px 25px;
  border: 2px solid rgba(108, 117, 125, 0.3);
  border-radius: 10px;
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cancel-btn:hover {
  background: rgba(108, 117, 125, 0.2);
  border-color: rgba(108, 117, 125, 0.5);
}

.add-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 10px;
  background: rgba(76, 175, 80, 0.9);
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-btn:hover {
  background: rgba(76, 175, 80, 1);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

/* Search Results Highlighting */
.task-item.search-match {
  border: 2px solid #4CAF50 !important;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3) !important;
}

.task-item.search-hidden {
  display: none !important;
}

/* Task Selection */
.task-checkbox {
  margin-right: 10px;
  transform: scale(1.2);
  cursor: pointer;
}

.task-item.selected {
  background: rgba(76, 175, 80, 0.1) !important;
  border-color: #4CAF50 !important;
}

.task-item {
  position: relative;
}

.task-item .task-checkbox {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%) scale(1.2);
  z-index: 10;
}

.task-item .task-content {
  margin-left: 35px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .search-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-wrapper {
    min-width: unset;
  }
  
  .quick-actions {
    justify-content: center;
  }
  
  .quick-add-modal {
    width: 95%;
    margin: 20px;
  }
  
  .quick-options {
    flex-direction: column;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .cancel-btn, .add-btn {
    width: 100%;
  }
}

/* ==========================================
   FLOATING TABS SYSTEM (SUGGESTIONS)
   ========================================== */

/* Floating Tabs Container */
.floating-tabs {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: floatIn 0.8s ease-out;
}

@keyframes floatIn {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Individual Floating Tab */
.floating-tab {
  animation: fadeInUp 0.6s ease-out;
}

.floating-tab:nth-child(2) {
  animation-delay: 0.2s;
}

@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Floating Tab Buttons with Transparency */
.floating-tab-btn {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 12px 20px;
  border-radius: 25px 25px 25px 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  min-width: 140px;
  justify-content: center;
}

.floating-tab-btn:hover {
  transform: translateY(-3px) scale(1.05);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.floating-tab-btn:active {
  transform: translateY(-1px) scale(1.02);
}

/* Modal Overlay with GCT Backdrop - Updated to match main interface */
.suggestions-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)),
    url('GCT.png') no-repeat center center fixed;
  background-size: cover;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.success-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Professional Suggestions Modal - Enhanced to match main interface */
.suggestions-modal {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  box-shadow: 
    0 32px 64px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  max-width: 420px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  position: relative;
  animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.suggestions-header {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
  color: #2d3748;
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  border-radius: 24px 24px 0 0;
  position: relative;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.suggestions-header h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.4rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.suggestions-header p {
  margin: 0;
  opacity: 0.8;
  font-size: 0.85rem;
  font-weight: 500;
}

.close-suggestions-btn {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #4a5568;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.close-suggestions-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

/* Content Container - Enhanced padding and styling */
.suggestions-content {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
}

/* Form Row Layout - Now Vertical */
.suggestions-form .form-row {
  display: block; /* Changed from flex to block for vertical layout */
  margin-bottom: 1.5rem;
}

.form-half {
  width: 100%;
  margin-bottom: 1rem !important;
}

/* Form Styling - Enhanced */
.suggestions-form {
  padding: 0;
}

.suggestions-form .form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #2d3748;
  font-size: 0.95rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.required {
  color: #dc2626;
  font-weight: 600;
}

.suggestions-form .form-input,
.suggestions-form .form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-sizing: border-box;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.suggestions-form .form-input:focus,
.suggestions-form .form-textarea:focus {
  outline: none;
  border-color: rgba(102, 126, 234, 0.7);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 0 0 3px rgba(102, 126, 234, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #9ca3af;
}

.character-count {
  text-align: right;
  font-size: 0.8rem;
  color: #718096;
  margin-top: 0.5rem;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.suggestions-form .form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
  font-family: inherit;
}

/* Form Actions - Enhanced vertical layout */
.suggestions-form .form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0 0 24px 24px;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  margin-bottom: -1rem;
}

.suggestions-form .form-actions .btn-primary,
.suggestions-form .form-actions .btn-secondary {
  width: 100%;
  max-width: 240px;
}

.suggestions-form .btn-primary,
.suggestions-form .btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.suggestions-form .btn-primary {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 6px 20px rgba(102, 126, 234, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.suggestions-form .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, rgba(90, 103, 216, 0.95) 0%, rgba(107, 70, 193, 0.95) 100%);
}

.suggestions-form .btn-secondary {
  background: rgba(255, 255, 255, 0.5);
  color: #4a5568;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.suggestions-form .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Success Modal */
.success-modal {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: pulse 1s ease-in-out infinite alternate;
}

@keyframes pulse {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.success-content h2 {
  font-size: 2rem;
  color: #27ae60;
  margin-bottom: 1rem;
  font-weight: 700;
}

.success-content p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.success-subtitle {
  font-size: 0.95rem !important;
  color: #999 !important;
}

.btn-success {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(39, 174, 96, 0.4);
}

/* Responsive Design */
/* Mobile Responsiveness */
@media (max-width: 768px) {
  .suggestions-modal {
    width: 95%;
    margin: 10px;
    max-height: 90vh;
  }
  
  .suggestions-header {
    padding: 1rem 1.5rem;
  }
  
  .suggestions-header h2 {
    font-size: 1.25rem;
  }
  
  .suggestions-content {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .form-half {
    margin-bottom: 0.75rem !important;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .success-modal {
    padding: 2rem;
    width: 95%;
  }
}

/* Context Menu Styling */
.context-menu {
  position: absolute;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 160px;
  padding: 4px 0;
}

.context-menu-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s;
}

.context-menu-item:hover {
  background-color: #f5f5f5;
}

.context-menu-item.danger {
  color: #dc3545;
}

.context-menu-item.danger:hover {
  background-color: #f8d7da;
  color: #721c24;
}

.context-menu-separator {
  height: 1px;
  background-color: #e9ecef;
  margin: 4px 0;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  background: white;
  border-radius: 8px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
  margin: 0 0 16px 0;
  color: #333;
  font-size: 18px;
}

.modal-content p {
  margin: 0 0 16px 0;
  color: #666;
  line-height: 1.5;
}

.task-preview {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 12px;
  margin: 16px 0;
}

.preview-title {
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
}

.preview-time {
  color: #666;
  font-size: 14px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

.btn-secondary {
  background: #f8f9fa;
  border: 1px solid #ddd;
  color: #333;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-secondary:hover {
  background: #e9ecef;
}

.btn-danger {
  background: #dc3545;
  border: 1px solid #dc3545;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-danger:hover {
  background: #c82333;
}

/* Inline Action Buttons */
.inline-btn {
  background: none;
  border: none;
  font-size: 14px;
  padding: 4px 6px;
  margin: 0 2px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0.7;
}

.inline-btn:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
}

.inline-btn.edit-btn:hover {
  background: rgba(74, 144, 226, 0.1);
}

.inline-btn.complete-btn:hover {
  background: rgba(76, 175, 80, 0.1);
}

.inline-btn.reschedule-btn:hover {
  background: rgba(255, 152, 0, 0.1);
}

.inline-btn.delete-btn:hover {
  background: rgba(244, 67, 54, 0.1);
}

.task-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.3s;
}

.task-item:hover .task-actions {
  opacity: 1;
}

/* Task Edit Modal Styling */
.edit-modal {
  max-width: 600px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
  margin: 0;
  color: #333;
  font-size: 20px;
}

.modal-header .close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-header .close-btn:hover {
  background: #f5f5f5;
  color: #333;
}

.modal-body {
  padding: 0;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group.half {
  flex: 1;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}

.form-input, .form-select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: #DAA520;
}

.btn-primary {
  background: #DAA520;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background: #B8860B;
}