/* ====== Note Create - Start ====== */
.create-note-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.create-note-breadcrumb {
    margin-bottom: 2rem;
}

.create-note-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.create-note-header {
    text-align: center;
    padding: 2rem 2rem 1rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    position: relative;
}

.create-note-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.create-note-title {
    font-size: 2.2rem;
    font-weight: 300;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.create-note-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
}

.create-note-content {
    padding: 2rem;
}

/* Phrase Card */
.note-phrase-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.03) 100%);
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.note-phrase-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.15);
}

.note-phrase-title {
    color: #667eea;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.note-phrase-body {
    padding: 1.5rem;
    text-align: center;
}

.note-phrase-text {
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

/* Context Card */
.note-context-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.02) 100%);
    border: 2px solid rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.note-context-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.04) 100%);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.note-context-title {
    color: #667eea;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.note-context-body {
    padding: 1.5rem;
}

.note-context-text {
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
    white-space: pre-line;
    font-size: 1.05rem;
}

/* Form */
.create-note-form {
    margin-top: 1rem;
}

.create-note-form .create-form-group {
    margin-bottom: 2rem;
    position: relative;
}

.create-note-form .create-form-label {
    color: #374151;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.create-note-form .create-form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

.create-note-form .create-form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.2);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.create-note-form .create-form-control::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.create-note-form .create-textarea {
    min-height: 150px;
}

.create-note-form .create-validation-summary:empty {
    display: none;
}

.create-note-form .create-validation-summary {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #dc2626;
}

.create-note-form .create-validation-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 500;
    display: block;
}

.create-note-form .create-form-hint {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 0.5rem;
    font-style: italic;
    background: rgba(102, 126, 234, 0.05);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.create-note-form .create-form-hint strong {
    color: #667eea;
}

.create-note-form .create-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.create-note-form .create-btn {
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 140px;
    cursor: pointer;
    border: none;
}

.create-note-form .create-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.create-note-form .create-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.create-note-form .create-btn-primary:active {
    transform: translateY(-1px);
}

.create-note-form .create-btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(107, 114, 128, 0.3);
    color: #6b7280;
}

.create-note-form .create-btn-secondary:hover {
    background: #6b7280;
    color: white;
    border-color: #6b7280;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.3);
    text-decoration: none;
}

.create-note-form .create-btn-secondary:active {
    transform: translateY(-1px);
}

/* Dark theme adaptations */
[data-bs-theme="dark"] .create-note-card {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.95) 0%, rgba(26, 32, 44, 0.9) 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .create-note-header {
    background: linear-gradient(135deg, rgba(144, 205, 244, 0.1) 0%, rgba(167, 139, 250, 0.05) 100%);
}

[data-bs-theme="dark"] .create-note-title {
    background: linear-gradient(135deg, #90cdf4 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-bs-theme="dark"] .create-note-subtitle {
    color: #a0aec0;
}

[data-bs-theme="dark"] .note-phrase-card,
[data-bs-theme="dark"] .note-context-card {
    background: linear-gradient(135deg, rgba(144, 205, 244, 0.08) 0%, rgba(167, 139, 250, 0.05) 100%);
    border-color: rgba(144, 205, 244, 0.2);
}

[data-bs-theme="dark"] .note-phrase-header,
[data-bs-theme="dark"] .note-context-header {
    background: linear-gradient(135deg, rgba(144, 205, 244, 0.15) 0%, rgba(167, 139, 250, 0.08) 100%);
    border-bottom-color: rgba(144, 205, 244, 0.2);
}

[data-bs-theme="dark"] .note-phrase-title,
[data-bs-theme="dark"] .note-context-title {
    color: #90cdf4;
}

[data-bs-theme="dark"] .note-phrase-text {
    background: linear-gradient(135deg, #90cdf4 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-bs-theme="dark"] .note-context-text {
    color: #cbd5e0;
}

[data-bs-theme="dark"] .create-note-form .create-form-label {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .create-note-form .create-form-control {
    background: rgba(45, 55, 72, 0.8);
    border-color: rgba(144, 205, 244, 0.2);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .create-note-form .create-form-control:focus {
    border-color: #90cdf4;
    background: rgba(45, 55, 72, 1);
    box-shadow: 0 0 0 0.2rem rgba(144, 205, 244, 0.2);
}

[data-bs-theme="dark"] .create-note-form .create-form-control::placeholder {
    color: #6b7280;
}

[data-bs-theme="dark"] .create-note-form .create-form-hint {
    color: #718096;
    background: rgba(144, 205, 244, 0.08);
    border-color: rgba(144, 205, 244, 0.2);
}

[data-bs-theme="dark"] .create-note-form .create-form-hint strong {
    color: #90cdf4;
}

[data-bs-theme="dark"] .create-note-form .create-btn-secondary {
    background: rgba(45, 55, 72, 0.9);
    border-color: rgba(160, 174, 192, 0.3);
    color: #a0aec0;
}

[data-bs-theme="dark"] .create-note-form .create-btn-secondary:hover {
    background: #a0aec0;
    color: #1a202c;
    border-color: #a0aec0;
}

[data-bs-theme="dark"] .create-note-form .create-form-actions {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .create-note-container {
        padding: 1rem;
    }

    .create-note-content {
        padding: 1.5rem;
    }

    .create-note-title {
        font-size: 1.8rem;
    }

    .note-phrase-text {
        font-size: 1.4rem;
    }

    .create-note-form .create-form-actions {
        flex-direction: column;
    }

    .create-note-form .create-btn {
        width: 100%;
    }
}
/* ====== Note Create - End ====== */


/* ====== Note Edit - Start ====== */
.edit-note-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.edit-note-breadcrumb {
    margin-bottom: 2rem;
}

.edit-note-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.edit-note-header {
    text-align: center;
    padding: 2rem 2rem 1rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    position: relative;
}

.edit-note-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.edit-note-title {
    font-size: 2.2rem;
    font-weight: 300;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.edit-note-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
}

.edit-note-content {
    padding: 2rem;
}

/* Phrase Card */
.note-phrase-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.03) 100%);
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.note-phrase-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.15);
}

.note-phrase-title {
    color: #667eea;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.note-phrase-body {
    padding: 1.5rem;
    text-align: center;
}

.note-phrase-text {
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

/* Context Card */
.note-context-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.02) 100%);
    border: 2px solid rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.note-context-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.04) 100%);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.note-context-title {
    color: #667eea;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.note-context-body {
    padding: 1.5rem;
}

.note-context-text {
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
    white-space: pre-line;
    font-size: 1.05rem;
}

/* Form */
.edit-note-form {
    margin-top: 1rem;
}

.edit-form-group {
    margin-bottom: 2rem;
    position: relative;
}

.edit-form-label {
    color: #374151;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.edit-form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

.edit-form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.2);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.edit-textarea {
    min-height: 180px;
}

.edit-validation-summary:empty {
    display: none;
}

.edit-validation-summary {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #dc2626;
}

.edit-validation-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 500;
    display: block;
}

.edit-form-hint {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 0.5rem;
    font-style: italic;
    background: rgba(102, 126, 234, 0.05);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.edit-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Buttons */
.edit-btn {
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 140px;
    cursor: pointer;
    border: none;
}

.edit-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.edit-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.edit-btn-primary:active {
    transform: translateY(-1px);
}

.edit-btn-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.edit-btn-delete:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(239, 68, 68, 0.4);
    color: white;
}

.edit-btn-delete:active {
    transform: translateY(-1px);
}

.edit-btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(107, 114, 128, 0.3);
    color: #6b7280;
}

.edit-btn-secondary:hover {
    background: #6b7280;
    color: white;
    border-color: #6b7280;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.3);
    text-decoration: none;
}

.edit-btn-secondary:active {
    transform: translateY(-1px);
}

/* Delete Note Modal Styling - Updated */
.delete-note-modal-styled {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.delete-note-header-styled {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    border-bottom: 1px solid rgba(239, 68, 68, 0.1);
    padding: 2rem 2rem 1rem 2rem;
    position: relative;
}

.delete-note-header-styled::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    border-radius: 2px;
}

.delete-note-title-styled {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: -0.5px;
}

.delete-note-close-styled {
    background: rgba(107, 114, 128, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
}

.delete-note-close-styled:hover {
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.1);
}

.delete-note-body-styled {
    padding: 2rem;
}

.delete-note-question {
    font-weight: 500;
    color: #374151;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.delete-note-warning-styled {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%) !important;
    border: 1px solid rgba(251, 191, 36, 0.3) !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    border-left: 4px solid #f59e0b !important;
}

.delete-note-warning-styled strong {
    color: #92400e !important;
    font-weight: 700;
}

.delete-note-warning-styled em {
    color: #6b7280;
    font-style: italic;
    margin-top: 0.5rem;
    display: block;
    line-height: 1.5;
}

.delete-note-undone-text {
    color: #6b7280 !important;
    font-style: italic;
    text-align: center;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.delete-note-footer-styled {
    padding: 1.5rem 2rem 2rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    justify-content: center;
    gap: 1rem;
    display: flex;
}

.delete-note-form-inline {
    display: inline-flex;
    margin: 0;
}

.delete-note-btn-delete-styled {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border: none !important;
    border-radius: 16px !important;
    padding: 1rem 2rem !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3) !important;
    min-width: 140px;
}

.delete-note-btn-delete-styled:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 35px rgba(239, 68, 68, 0.4) !important;
    color: white !important;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
}

.delete-note-btn-delete-styled:active {
    transform: translateY(-1px) !important;
}

.delete-note-btn-cancel-styled {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(107, 114, 128, 0.3) !important;
    color: #6b7280 !important;
    border-radius: 16px !important;
    padding: 1rem 2rem !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    min-width: 140px;
}

.delete-note-btn-cancel-styled:hover {
    background: #6b7280 !important;
    color: white !important;
    border-color: #6b7280 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.3) !important;
}

.delete-note-btn-cancel-styled:active {
    transform: translateY(-1px) !important;
}

/* Dark theme for delete note modal */
[data-bs-theme="dark"] .delete-note-modal-styled {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.95) 0%, rgba(26, 32, 44, 0.9) 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .delete-note-header-styled {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.08) 100%);
    border-bottom-color: rgba(239, 68, 68, 0.2);
}

[data-bs-theme="dark"] .delete-note-title-styled {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-bs-theme="dark"] .delete-note-close-styled {
    background: rgba(160, 174, 192, 0.1);
    color: #a0aec0;
}

[data-bs-theme="dark"] .delete-note-close-styled:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

[data-bs-theme="dark"] .delete-note-question {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .delete-note-warning-styled {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%) !important;
    border-color: rgba(251, 191, 36, 0.4) !important;
    border-left-color: #fbbf24 !important;
}

[data-bs-theme="dark"] .delete-note-warning-styled strong {
    color: #fbbf24 !important;
}

[data-bs-theme="dark"] .delete-note-warning-styled em {
    color: #a0aec0;
}

[data-bs-theme="dark"] .delete-note-undone-text {
    color: #a0aec0 !important;
}

[data-bs-theme="dark"] .delete-note-footer-styled {
    border-top-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .delete-note-btn-cancel-styled {
    background: rgba(45, 55, 72, 0.9) !important;
    border-color: rgba(160, 174, 192, 0.3) !important;
    color: #a0aec0 !important;
}

[data-bs-theme="dark"] .delete-note-btn-cancel-styled:hover {
    background: #a0aec0 !important;
    color: #1a202c !important;
    border-color: #a0aec0 !important;
}

/* Mobile responsiveness for delete note modal */
@media (max-width: 768px) {
    .delete-note-header-styled,
    .delete-note-body-styled {
        padding: 1.5rem;
    }

    .delete-note-footer-styled {
        flex-direction: column;
        padding: 1rem 1.5rem 1.5rem 1.5rem;
    }

    .delete-note-btn-delete-styled,
    .delete-note-btn-cancel-styled {
        width: 100% !important;
    }

    .delete-note-form-inline {
        width: 100%;
    }

    .delete-note-title-styled {
        font-size: 1.3rem;
    }
}

/* Dark theme adaptations */
[data-bs-theme="dark"] .edit-note-card {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.95) 0%, rgba(26, 32, 44, 0.9) 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .edit-note-header {
    background: linear-gradient(135deg, rgba(144, 205, 244, 0.1) 0%, rgba(167, 139, 250, 0.05) 100%);
}

[data-bs-theme="dark"] .edit-note-title {
    background: linear-gradient(135deg, #90cdf4 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-bs-theme="dark"] .edit-note-subtitle {
    color: #a0aec0;
}

[data-bs-theme="dark"] .note-phrase-card,
[data-bs-theme="dark"] .note-context-card {
    background: linear-gradient(135deg, rgba(144, 205, 244, 0.08) 0%, rgba(167, 139, 250, 0.05) 100%);
    border-color: rgba(144, 205, 244, 0.2);
}

[data-bs-theme="dark"] .note-phrase-header,
[data-bs-theme="dark"] .note-context-header {
    background: linear-gradient(135deg, rgba(144, 205, 244, 0.15) 0%, rgba(167, 139, 250, 0.08) 100%);
    border-bottom-color: rgba(144, 205, 244, 0.2);
}

[data-bs-theme="dark"] .note-phrase-title,
[data-bs-theme="dark"] .note-context-title {
    color: #90cdf4;
}

[data-bs-theme="dark"] .note-phrase-text {
    background: linear-gradient(135deg, #90cdf4 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-bs-theme="dark"] .note-context-text {
    color: #cbd5e0;
}

[data-bs-theme="dark"] .edit-form-label {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .edit-form-control {
    background: rgba(45, 55, 72, 0.8);
    border-color: rgba(144, 205, 244, 0.2);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .edit-form-control:focus {
    border-color: #90cdf4;
    background: rgba(45, 55, 72, 1);
    box-shadow: 0 0 0 0.2rem rgba(144, 205, 244, 0.2);
}

[data-bs-theme="dark"] .edit-form-hint {
    color: #718096;
    background: rgba(144, 205, 244, 0.08);
    border-color: rgba(144, 205, 244, 0.2);
}

[data-bs-theme="dark"] .edit-btn-secondary {
    background: rgba(45, 55, 72, 0.9);
    border-color: rgba(160, 174, 192, 0.3);
    color: #a0aec0;
}

[data-bs-theme="dark"] .edit-btn-secondary:hover {
    background: #a0aec0;
    color: #1a202c;
    border-color: #a0aec0;
}

[data-bs-theme="dark"] .edit-form-actions {
    border-top-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .delete-note-modal-styled {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.95) 0%, rgba(26, 32, 44, 0.9) 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .delete-note-header-styled {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.08) 100%);
    border-bottom-color: rgba(239, 68, 68, 0.2);
}

[data-bs-theme="dark"] .delete-note-title-styled {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-bs-theme="dark"] .delete-note-question {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .delete-note-warning {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

[data-bs-theme="dark"] .delete-note-warning strong {
    color: #fca5a5;
}

[data-bs-theme="dark"] .delete-note-footer-styled {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .edit-note-container {
        padding: 1rem;
    }

    .edit-note-content {
        padding: 1.5rem;
    }

    .edit-note-title {
        font-size: 1.8rem;
    }

    .note-phrase-text {
        font-size: 1.4rem;
    }

    .edit-form-actions {
        flex-direction: column;
    }

    .edit-btn {
        width: 100%;
    }

    .delete-note-footer-styled {
        flex-direction: column;
    }

    .delete-note-btn-delete-styled,
    .delete-note-btn-cancel-styled {
        width: 100% !important;
    }

    .delete-note-form-inline {
        width: 100%;
    }
}
/* ====== Note Edit - End ====== */