@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap");

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

body {
font-family: "Montserrat", sans-serif;
background-color: #0f1117;
color: #e5e7eb;
line-height: 1.6;
padding: 20px;
}

.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 15px;
}

/* -----------------------------
Header
----------------------------- */

.header {
text-align: center;
margin-bottom: 40px;
}

.header h1 {
font-size: 2.5rem;
font-weight: 700;
color: #818cf8;
margin-bottom: 10px;
}

.header p {
font-size: 1.1rem;
color: #9ca3af;
}

/* -----------------------------
Controls
----------------------------- */

.controls {
background-color: #181b24;
border-radius: 12px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
padding: 20px;
margin-bottom: 30px;
border: 1px solid #272b36;
}

.controls-container {
display: flex;
flex-direction: column;
gap: 15px;
}

@media (min-width: 768px) {
.controls-container {
flex-direction: row;
}
}

.search-input {
flex: 1;
padding: 12px 15px;
border: 1px solid #343947;
border-radius: 8px;
font-size: 1rem;
background-color: #11141b;
color: #e5e7eb;
transition: border-color 0.3s, box-shadow 0.3s;
}

.search-input::placeholder {
color: #6b7280;
}

.search-input:focus {
outline: none;
border-color: #6366f1;
box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.add-btn {
background-color: #6366f1;
color: white;
border: none;
border-radius: 8px;
padding: 12px 20px;
font-size: 1rem;
font-weight: 500;
cursor: pointer;
display: flex;
align-items: center;
gap: 8px;
transition: background-color 0.3s, transform 0.2s;
}

.add-btn:hover {
background-color: #4f46e5;
transform: translateY(-1px);
}

/* -----------------------------
Notes
----------------------------- */

.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 {
position: relative;
min-height: 220px;
background-color: #181b24;
border-radius: 12px;
border: 1px solid #272b36;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
overflow: hidden;
transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.note-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
border-color: #3b4050;
}

.note-content {
padding: 20px;
height: 100%;
}

.note-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 15px;
}

.note-title {
font-size: 1.25rem;
font-weight: 600;
color: #f3f4f6;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 80%;
}

.note-actions {
display: flex;
gap: 10px;
}

.delete-btn {
color: #6b7280;
background: none;
border: none;
font-size: 1rem;
cursor: pointer;
transition: color 0.3s;
}

.delete-btn:hover {
color: #f87171;
}

.note-text {
color: #b8bec9;
margin-bottom: 40px;
white-space: pre-line;
}

.note-footer {
display: flex;
gap: 10px;
align-items: center;
position: absolute;
bottom: 10px;
left: 20px;
right: 20px;
}

/* -----------------------------
Tags
----------------------------- */

.note-tag {
display: inline-flex;
align-items: center;
padding: 5px 12px;
gap: 8px;
border-radius: 20px;
font-size: 0.85rem;
font-weight: 500;
}

.tag-school {
background-color: #252b52;
color: #a5b4fc;
}

.tag-random {
background-color: #342653;
color: #c4b5fd;
}

.tag-ideas {
background-color: #123c35;
color: #6ee7b7;
}

.tag-reminders {
background-color: #493817;
color: #fcd34d;
}

.note-date {
font-size: 0.75rem;
color: #6b7280;
}

/* -----------------------------
Empty state
----------------------------- */

.empty-state {
text-align: center;
padding: 60px 20px;
opacity: 0.8;
display: none;
}

.empty-state i {
font-size: 4rem;
color: #374151;
margin-bottom: 20px;
}

.empty-state h3 {
font-size: 1.5rem;
color: #9ca3af;
margin-bottom: 10px;
}

.empty-state p {
color: #6b7280;
margin-bottom: 20px;
}

/* -----------------------------
Modals
----------------------------- */

.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.75);
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: #181b24;
border: 1px solid #2d3340;
border-radius: 12px;
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
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 #2d3340;
}

.modal-title {
font-size: 1.25rem;
font-weight: 600;
color: #f3f4f6;
}

.modal-close {
background: none;
border: none;
font-size: 1.25rem;
color: #6b7280;
cursor: pointer;
transition: color 0.3s;
}

.modal-close:hover {
color: #e5e7eb;
}

.modal-body {
padding: 20px;
}

/* -----------------------------
Forms
----------------------------- */

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

.form-label {
display: block;
margin-bottom: 8px;
font-size: 0.9rem;
font-weight: 500;
color: #cbd5e1;
}

.form-input {
width: 100%;
padding: 12px 15px;
border: 1px solid #343947;
border-radius: 8px;
font-size: 1rem;
background-color: #11141b;
color: #e5e7eb;
transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input::placeholder {
color: #6b7280;
}

.form-input:focus {
outline: none;
border-color: #6366f1;
box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.form-textarea {
min-height: 120px;
resize: vertical;
}

.filter-group {
display: flex;
gap: 10px;
}

.filter-select {
padding: 12px 15px;
border: 1px solid #343947;
border-radius: 8px;
font-size: 1rem;
background-color: #11141b;
color: #e5e7eb;
cursor: pointer;
transition: border-color 0.3s, box-shadow 0.3s;
}

.filter-select:focus {
outline: none;
border-color: #6366f1;
box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* -----------------------------
Tag selector
----------------------------- */

.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-school {
background-color: #4f46e5;
}

.tag-radio:checked + .tag-random {
background-color: #7c3aed;
}

.tag-radio:checked + .tag-ideas {
background-color: #10b981;
}

.tag-radio:checked + .tag-reminders {
background-color: #f59e0b;
}

/* -----------------------------
Submit
----------------------------- */

.submit-btn {
width: 100%;
padding: 14px;
background-color: #6366f1;
color: white;
border: none;
border-radius: 8px;
font-size: 1rem;
font-weight: 500;
cursor: pointer;
transition: background-color 0.3s, transform 0.2s;
}

.submit-btn:hover {
background-color: #4f46e5;
transform: translateY(-1px);
}

/* -----------------------------
Delete confirmation
----------------------------- */

.confirmation-modal .modal-body {
text-align: center;
}

.confirmation-text {
font-size: 1.1rem;
color: #e5e7eb;
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: #374151;
color: #e5e7eb;
border: none;
}

.cancel-btn:hover {
background-color: #4b5563;
}

/* -----------------------------
Animations
----------------------------- */

@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}

to {
opacity: 1;
transform: translateY(0);
}
}

.fade-in {
animation: fadeIn 0.4s ease-out forwards;
}

/* -----------------------------
Authentication
----------------------------- */

.auth-section {
background-color: #181b24 !important;
color: #e5e7eb;
border: 1px solid #272b36;
}

.auth-title {
color: #f3f4f6;
}

.auth-input {
background-color: #11141b !important;
color: #e5e7eb !important;
border-color: #343947 !important;
}

.auth-input::placeholder {
color: #6b7280;
}

.auth-status {
color: #9ca3af;
}

.auth-error {
color: #f87171 !important;
}

.auth-success {
color: #6ee7b7 !important;
}

.login-button {
background-color: #6366f1 !important;
}

.signup-button {
background-color: #10b981 !important;
}

.logout-button {
background-color: #ef4444 !important;
}
