* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    background-color: #ebebf0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.header-modern {
  text-align: center;
  margin-bottom: 50px;
  padding: 40px 20px;
  background: linear-gradient(135deg, #eef2ff, #f3f4f6);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}

/* Title with gradient animation */
.header-title {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(90deg, #6366f1, #4f46e5, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 4s linear infinite;
  margin-bottom: 15px;
}

@keyframes gradientMove {
  0% { background-position: 0% }
  50% { background-position: 100% }
  100% { background-position: 0% }
}

/* Highlight span */
.highlight-text {
  font-size: 3.2rem;
}

/* Subtitle */
.header-subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  color: #4b5563;
  opacity: 0.9;
  margin-top: 5px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  animation: fadeInUp 1s ease forwards;
}

/* Subtle fade-in animation */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Optional floating icon/illustration */
.header-illustration {
  font-size: 3rem;
  color: #4f46e5;
  margin-top: 20px;
  animation: floatUp 3s ease-in-out infinite;
}

/* Floating animation */
@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}


.controls {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 10px;
    margin-bottom: 30px;
}

.controls-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (min-width: 600px) {
    .controls-container {
        flex-direction: row;
    }
}

.search-input {
  flex: 1;
  padding: 12px 20px 12px 45px; /* space for icon */
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 1rem;
  background: linear-gradient(145deg, #ffffff, #f3f4f6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  color: #374151;
  transition: all 0.3s ease;
  position: relative;
}

/* Focus effect */
.search-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25), 0 4px 14px rgba(0,0,0,0.08);
  background: #fff;
}

/* Hover effect */
.search-input:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08), 0 0 8px rgba(99, 102, 241, 0.15);
}

/* Optional search icon */
.search-input::before {
  content: "\f002"; /* Font Awesome search icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

/* Smooth text */
.search-input::placeholder {
  color: #9ca3af;
  font-weight: 500;
  opacity: 1;
  transition: color 0.3s;
}

.search-input:focus::placeholder {
  color: #a5b4fc;
}


.add-btn {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

/* Hover effect */
.add-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
  background: linear-gradient(135deg, #4f46e5, #4338ca);
}

/* Active click effect */
.add-btn:active {
  transform: scale(0.97);
}

/* Ripple effect */
.add-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease, opacity 0.5s;
}

.add-btn:active::after {
  width: 220%;
  height: 220%;
  opacity: 0;
  transition: 0s;
}


.notes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .notes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .notes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.note-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.note-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.note-content {
    padding: 20px;
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.note-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 80%;
}

.note-actions {
    display: flex;
    gap: 10px;
}

.delete-btn {
    color: #999;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s;
}

.delete-btn:hover {
    color: #ef4444;
}

.note-text {
    color: #666;
    margin-bottom: 40px;
    white-space: pre-line;
}

.note-footer {
    display: flex;
    gap: 10px;
    align-items: center;
    position: absolute;
    bottom: 10px;
}

.note-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    gap: 8px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.tag-work {
    background-color: #e0e7ff;
    color: #4338ca;
}

.tag-personal {
    background-color: #ede9fe;
    color: #7c3aed;
}

.tag-ideas {
    background-color: #ecfdf5;
    color: #047857;
}

.tag-reminders {
    background-color: #fef3c7;
    color: #b45309;
}

.note-date {
    font-size: 0.75rem;
    color: #999;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    opacity: 0.6;
    display: none;
}

.empty-state i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 10px;
}

.empty-state p {
    color: #999;
    margin-bottom: 20px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    margin: 20px;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}
.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}
.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}
.modal-close:hover {
    color: #666;
}
.modal-body {
    padding: 20px;
}
 
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.filter-group {
    display: flex;
    gap: 10px;
}

.filter-select {
  appearance: none; /* remove browser default */
  -webkit-appearance: none;
  -moz-appearance: none;

  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  background: linear-gradient(145deg, #ffffff, #f3f4f6);
  color: #374151;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #ddd;

  /* Custom shadow for depth */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);

  /* Space for dropdown arrow */
  padding-right: 40px;

  /* Smooth text */
  letter-spacing: 0.3px;
}

/* On focus */
.filter-select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
  background: #fff;
}

/* Hover */
.filter-select:hover {
  background: linear-gradient(145deg, #f9fafb, #fff);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(99, 102, 241, 0.15);
}

/* Custom dropdown arrow */
.filter-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E<polyline points='6 9 12 15 18 9'></polyline>%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}


.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tag-option {
    position: relative;
}

.tag-radio {
    position: absolute;
    opacity: 0;
}

.tag-label {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.tag-radio:checked+.tag-label {
    color: white;
}

.tag-radio:checked+.tag-work {
    background-color: #4f46e5;
}

.tag-radio:checked+.tag-personal {
    background-color: #7c3aed;
}

.tag-radio:checked+.tag-ideas {
    background-color: #10b981;
}

.tag-radio:checked+.tag-reminders {
    background-color: #f59e0b;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #4338ca;
}

.confirmation-modal .modal-body {
    text-align: center;
}

.confirmation-text {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.confirmation-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.confirmation-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.confirm-btn {
    background-color: #ef4444;
    color: white;
    border: none;
}

.confirm-btn:hover {
    background-color: #dc2626;
}

.cancel-btn {
    background-color: #e5e7eb;
    color: #333;
    border: none;
}

.cancel-btn:hover {
    background-color: #d1d5db;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}
