/* ======================
   Base Styles
   ====================== */


.note-card {
    @apply transition-all duration-300 ease-out hover:shadow-lg hover:-translate-y-1;
    break-inside: avoid;
}

.editor-bg {
    @apply transition-colors duration-200;
}

.swal2-popup {
    @apply font-['Inter'] rounded-xl !important;
}

   :root {
    --primary: #2F80ED;    /* Pleasant blue */
    --error: #EB5757;      /* Soft red */
    --success: #27AE60;    /* Natural green */
    --background: #F9FAFB; /* Light gray */
    --text-primary: #1A1A1A;
    --text-secondary: #4F4F4F;
    
    /* Note Colors */
    --note-pink: #FFE6E6;
    --note-purple: #F3E5F5;
    --note-yellow: #FFF9C4;
    --note-blue: #E3F2FD;
    --note-green: #E8F5E9;
    --note-orange: #FFE0B2;

    --color-pink-100: #fce7f3;
    --color-purple-100: #f3e8ff;
    --color-yellow-100: #fef9c3;
    --color-blue-100: #dbeafe;
    --color-green-100: #dcfce7;
    --color-orange-100: #ffedd5;
    
    /* Transitions */
    --transition-default: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ======================
   Typography
   ====================== */
h1, h2, h3 {
    font-weight: 600;
    margin: 0 0 1rem;
}

h1 {
    font-size: 2.25rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.125rem;
}

p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* ======================
   Note Cards
   ====================== */
   .note-card {
    /* Existing styles */
    min-width: 280px; /* Minimum card width */
    width: 100%; /* Allow cards to grow */
    
    box-sizing: border-box; /* Include padding in width */
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .note-card {
        min-width: 100%; /* Full width on mobile */
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .note-card {
        min-width: 240px; /* Smaller min-width for tablets */
    }
}
.note-card[data-color="pink"] { background: var(--note-pink); }
.note-card[data-color="purple"] { background: var(--note-purple); }
.note-card[data-color="yellow"] { background: var(--note-yellow); }
.note-card[data-color="blue"] { background: var(--note-blue); }
.note-card[data-color="green"] { background: var(--note-green); }
.note-card[data-color="orange"] { background: var(--note-orange); }

/* ======================
   Action Buttons
   ====================== */
.btn {
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: var(--transition-default);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #256FBF;
}

.btn-icon {
    padding: 0.5rem;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.btn-delete:hover {
    color: var(--error);
}

/* ======================
   Editor Modal
   ====================== */
.editor-modal {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.editor-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 90%;
}

.editor-input {
    background: transparent;
    border: none;
    width: 100%;
    padding: 0.75rem 0;
    font-size: 1.125rem;
    color: var(--text-primary);
    border-bottom: 2px solid transparent;
}

.editor-input:focus {
    outline: none;
    border-bottom-color: var(--primary);
}

.editor-textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

/* ======================
   Color Picker
   ====================== */
.color-picker-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: var(--transition-default);
    cursor: pointer;
}

.color-picker-btn:hover {
    transform: scale(1.1);
}

.color-picker-btn.selected {
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ======================
   Search Input
   ====================== */
.search-input {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition-default);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.1);
}

/* ======================
   Utility Classes
   ====================== */
.smooth-transition {
    transition: var(--transition-default);
}

.shadow-subtle {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hover-lift:hover {
    transform: translateY(-2px);
}