/* ====== Phrase Create - Start ====== */
.create-phrase-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.create-phrase-breadcrumb {
    margin-bottom: 2rem;
}

.phrase-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    margin: 0;
    list-style: none;
    gap: 0.5rem;
}

.phrase-breadcrumb-item {
    display: flex;
    align-items: center;
}

.phrase-breadcrumb-item:not(:last-child)::after {
    content: '→';
    color: #667eea;
    margin: 0 0.75rem;
    font-weight: 600;
}

.phrase-breadcrumb-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.phrase-breadcrumb-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #764ba2;
    text-decoration: none;
    transform: translateY(-1px);
}

.phrase-breadcrumb-active {
    color: #6b7280;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
}

.create-phrase-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-phrase-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-phrase-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-phrase-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-phrase-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
}

.create-phrase-content {
    padding: 2rem;
}

.phrase-reference-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;
}

.phrase-reference-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);
}

.phrase-reference-title {
    color: #667eea;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.phrase-reference-body {
    padding: 1.5rem;
}

.phrase-reference-text {
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
    white-space: pre-line;
    font-size: 1.05rem;
}

.create-phrase-form {
    margin-top: 1rem;
}

.create-phrase-form .create-form-group {
    margin-bottom: 2rem;
    position: relative;
}

.create-phrase-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-phrase-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;
    min-height: 50px;
}

.create-phrase-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-phrase-form .create-form-control::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.create-phrase-form .create-validation-summary:empty {
    display: none;
}

.create-phrase-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-phrase-form .create-validation-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 500;
    display: block;
}

.create-phrase-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-phrase-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;
}

.create-phrase-form .create-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    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-phrase-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-phrase-form .create-btn-primary:active {
    transform: translateY(-1px);
}

.create-phrase-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-phrase-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-phrase-form .create-btn-secondary:active {
    transform: translateY(-1px);
}

.create-phrase-form .create-form-hint {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Dark theme adaptations */
[data-bs-theme="dark"] .phrase-breadcrumb {
    background: rgba(45, 55, 72, 0.7);
    border-color: rgba(144, 205, 244, 0.2);
}

[data-bs-theme="dark"] .phrase-breadcrumb-link {
    color: #90cdf4;
}

[data-bs-theme="dark"] .phrase-breadcrumb-link:hover {
    background: rgba(144, 205, 244, 0.1);
    color: #a78bfa;
}

[data-bs-theme="dark"] .phrase-breadcrumb-active {
    color: #a0aec0;
    background: rgba(144, 205, 244, 0.1);
}

[data-bs-theme="dark"] .create-phrase-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-phrase-header {
    background: linear-gradient(135deg, rgba(144, 205, 244, 0.1) 0%, rgba(167, 139, 250, 0.05) 100%);
}

[data-bs-theme="dark"] .create-phrase-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-phrase-subtitle {
    color: #a0aec0;
}

[data-bs-theme="dark"] .phrase-reference-card {
    background: linear-gradient(135deg, rgba(144, 205, 244, 0.05) 0%, rgba(167, 139, 250, 0.03) 100%);
    border-color: rgba(144, 205, 244, 0.2);
}

[data-bs-theme="dark"] .phrase-reference-header {
    background: linear-gradient(135deg, rgba(144, 205, 244, 0.1) 0%, rgba(167, 139, 250, 0.05) 100%);
    border-bottom-color: rgba(144, 205, 244, 0.2);
}

[data-bs-theme="dark"] .phrase-reference-title {
    color: #90cdf4;
}

[data-bs-theme="dark"] .phrase-reference-text {
    color: #cbd5e0;
}

[data-bs-theme="dark"] .create-phrase-form .create-form-label {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .create-phrase-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-phrase-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-phrase-form .create-form-control::placeholder {
    color: #6b7280;
}

[data-bs-theme="dark"] .create-phrase-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-phrase-form .create-btn-secondary:hover {
    background: #a0aec0;
    color: #1a202c;
    border-color: #a0aec0;
}

[data-bs-theme="dark"] .create-phrase-form .create-form-hint {
    color: #718096;
}

[data-bs-theme="dark"] .create-phrase-form .create-form-actions {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .create-phrase-container {
        padding: 1rem;
    }

    .create-phrase-content {
        padding: 1.5rem;
    }

    .create-phrase-title {
        font-size: 1.8rem;
    }

    .phrase-breadcrumb {
        padding: 0.75rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .phrase-breadcrumb-item:not(:last-child)::after {
        margin: 0 0.5rem;
    }

    .create-phrase-form .create-form-actions {
        flex-direction: column;
    }

    .create-phrase-form .create-btn {
        width: 100%;
    }
}
/* ====== Phrase Create - End ====== */


/* ====== Phrase Details - Start ====== */
.phrase-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.phrase-details-breadcrumb {
    margin-bottom: 2rem;
}

.phrase-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    margin: 0;
    list-style: none;
    gap: 0.5rem;
}

.phrase-breadcrumb-item {
    display: flex;
    align-items: center;
}

.phrase-breadcrumb-item:not(:last-child)::after {
    content: '→';
    color: #667eea;
    margin: 0 0.75rem;
    font-weight: 600;
}

.phrase-breadcrumb-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.phrase-breadcrumb-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #764ba2;
    text-decoration: none;
    transform: translateY(-1px);
}

.phrase-breadcrumb-active {
    color: #6b7280;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
}

/* Alert Messages */
.phrase-alert {
    margin-bottom: 1.5rem;
    border-radius: 16px;
    border: none;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.phrase-alert-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(22, 163, 74, 0.05) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.phrase-alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.phrase-alert-content {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    gap: 1rem;
}

.phrase-alert-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.phrase-alert-text {
    flex: 1;
    font-weight: 500;
}

.phrase-alert-success .phrase-alert-text {
    color: #059669;
}

.phrase-alert-error .phrase-alert-text {
    color: #dc2626;
}

.phrase-alert-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.3s ease;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phrase-alert-close:hover {
    opacity: 1;
}

.phrase-details-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.phrase-details-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.phrase-details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Context Card */
.phrase-context-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: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
    overflow: hidden;
}

.phrase-context-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.04) 100%);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.phrase-context-title {
    color: #667eea;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.phrase-context-body {
    padding: 1.5rem;
}

.phrase-context-subtitle {
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: -1.1rem;
}

.phrase-context-label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    margin-right: 0.15rem;
}

.phrase-context-content {
    color: #111827;  /* En koyu siyah */
    line-height: 1.8;  /* Daha rahat okuma */
    font-size: 1.25rem;  /* Daha büyük */
    font-weight: 500;  /* Hafif kalın */
    white-space: pre-line;
    letter-spacing: 0.02em;  /* Karakter aralığı */
    text-rendering: optimizeLegibility;  /* Net rendering */
    margin: 0.5rem 0;  /* Daha iyi spacing */
}

.phrase-highlight {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3) 0%, rgba(245, 158, 11, 0.2) 100%);
    color: #92400e;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Phrase Header */
.phrase-header-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: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
    padding: 2rem;
}

.phrase-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.phrase-header-text {
    flex: 1;
}

.phrase-title {
    font-size: 2.5rem;
    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;
    line-height: 1.2;
    position: relative;
}

.phrase-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.phrase-meta {
    color: #9ca3af;
    font-style: italic;
    font-size: 0.9rem;
}

.phrase-header-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Notes Section */
.phrase-notes-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
    overflow: hidden;
}

.phrase-notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.04) 100%);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.phrase-notes-title {
    color: #667eea;
    font-weight: 600;
    font-size: 1.3rem;
    margin: 0;
}

.phrase-notes-list {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.phrase-note-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.phrase-note-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.phrase-note-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.phrase-note-text {
    flex: 1;
}

.phrase-note-body {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    white-space: pre-line;
}

.phrase-note-meta {
    color: #9ca3af;
    font-style: italic;
    font-size: 0.85rem;
}

.phrase-note-actions {
    flex-shrink: 0;
}

.phrase-notes-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
}

.phrase-notes-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.phrase-notes-empty-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #4b5563;
}

.phrase-notes-empty-text {
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Tags Card */
.phrase-tags-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: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
    overflow: hidden;
}

.phrase-tags-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.04) 100%);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.phrase-tags-title {
    color: #667eea;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

.phrase-tags-body {
    padding: 1.5rem;
}

.phrase-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.phrase-tag {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.phrase-tag-text {
    flex: 1;
}

.phrase-tag-remove-form {
    display: inline-flex;
    margin: 0;
}

.phrase-tag-remove {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.phrase-tag-remove:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.phrase-tags-empty {
    color: #9ca3af;
    font-style: italic;
    text-align: center;
    padding: 1rem 0;
}

/* Analysis Card */
.phrase-analysis-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: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
    overflow: hidden;
}

.phrase-analysis-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.04) 100%);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.phrase-analysis-title {
    color: #667eea;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.phrase-analysis-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.phrase-analysis-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.phrase-analysis-item:last-child {
    border-bottom: none;
}

.phrase-analysis-label {
    color: #6b7280;
    font-weight: 600;
    font-size: 0.9rem;
}

.phrase-analysis-value {
    color: #374151;
    font-weight: 500;
    text-align: right;
}

/* Buttons */
.phrase-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
}

.phrase-btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    min-width: auto;
}

.phrase-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.phrase-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.phrase-btn-edit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    min-width: 120px;
}

.phrase-btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.phrase-btn-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    min-width: 120px;
}

.phrase-btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    color: white;
}

.phrase-btn-back {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(107, 114, 128, 0.3);
    color: #6b7280;
    min-width: 120px;
}

.phrase-btn-back:hover {
    background: #6b7280;
    color: white;
    border-color: #6b7280;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
    text-decoration: none;
}

.phrase-btn-add-note {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.phrase-btn-add-note:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    color: white;
    text-decoration: none;
}

.phrase-btn-edit-note {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(102, 126, 234, 0.3);
    color: #667eea;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.phrase-btn-edit-note:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    text-decoration: none;
}

.phrase-btn-add-tag {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.phrase-btn-add-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    color: white;
}

/* Dark theme adaptations */
[data-bs-theme="dark"] .phrase-breadcrumb {
    background: rgba(45, 55, 72, 0.7);
    border-color: rgba(144, 205, 244, 0.2);
}

[data-bs-theme="dark"] .phrase-breadcrumb-link {
    color: #90cdf4;
}

[data-bs-theme="dark"] .phrase-breadcrumb-link:hover {
    background: rgba(144, 205, 244, 0.1);
    color: #a78bfa;
}

[data-bs-theme="dark"] .phrase-breadcrumb-active {
    color: #a0aec0;
    background: rgba(144, 205, 244, 0.1);
}

[data-bs-theme="dark"] .phrase-alert-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(22, 163, 74, 0.08) 100%);
}

[data-bs-theme="dark"] .phrase-alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.08) 100%);
}

[data-bs-theme="dark"] .phrase-alert-success .phrase-alert-text {
    color: #10b981;
}

[data-bs-theme="dark"] .phrase-alert-error .phrase-alert-text {
    color: #f87171;
}

[data-bs-theme="dark"] .phrase-context-card,
[data-bs-theme="dark"] .phrase-header-card,
[data-bs-theme="dark"] .phrase-notes-section,
[data-bs-theme="dark"] .phrase-tags-card,
[data-bs-theme="dark"] .phrase-analysis-card {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.95) 0%, rgba(26, 32, 44, 0.9) 100%);
    border-color: rgba(144, 205, 244, 0.2);
}

[data-bs-theme="dark"] .phrase-context-header,
[data-bs-theme="dark"] .phrase-notes-header,
[data-bs-theme="dark"] .phrase-tags-header,
[data-bs-theme="dark"] .phrase-analysis-header {
    background: linear-gradient(135deg, rgba(144, 205, 244, 0.1) 0%, rgba(167, 139, 250, 0.05) 100%);
    border-bottom-color: rgba(144, 205, 244, 0.2);
}

[data-bs-theme="dark"] .phrase-context-title,
[data-bs-theme="dark"] .phrase-notes-title,
[data-bs-theme="dark"] .phrase-tags-title,
[data-bs-theme="dark"] .phrase-analysis-title {
    color: #90cdf4;
}

[data-bs-theme="dark"] .phrase-context-subtitle {
    color: #a0aec0;
}

[data-bs-theme="dark"] .phrase-context-label {
    background: linear-gradient(135deg, #90cdf4 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-bs-theme="dark"] .phrase-context-content {
    color: #cbd5e0;
}

[data-bs-theme="dark"] .phrase-highlight {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.15) 100%);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.4);
}

[data-bs-theme="dark"] .phrase-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"] .phrase-meta {
    color: #718096;
}

[data-bs-theme="dark"] .phrase-note-card {
    background: rgba(45, 55, 72, 0.7);
    border-color: rgba(144, 205, 244, 0.2);
}

[data-bs-theme="dark"] .phrase-note-body {
    color: #cbd5e0;
}

[data-bs-theme="dark"] .phrase-note-meta {
    color: #718096;
}

[data-bs-theme="dark"] .phrase-notes-empty-title {
    color: #cbd5e0;
}

[data-bs-theme="dark"] .phrase-tags-empty {
    color: #718096;
}

[data-bs-theme="dark"] .phrase-analysis-label {
    color: #a0aec0;
}

[data-bs-theme="dark"] .phrase-analysis-value {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .phrase-analysis-item {
    border-bottom-color: rgba(144, 205, 244, 0.2);
}

[data-bs-theme="dark"] .phrase-btn-back {
    background: rgba(45, 55, 72, 0.9);
    border-color: rgba(160, 174, 192, 0.3);
    color: #a0aec0;
}

[data-bs-theme="dark"] .phrase-btn-back:hover {
    background: #a0aec0;
    color: #1a202c;
    border-color: #a0aec0;
}

[data-bs-theme="dark"] .phrase-btn-edit-note {
    background: rgba(45, 55, 72, 0.9);
    border-color: rgba(144, 205, 244, 0.3);
    color: #90cdf4;
}

[data-bs-theme="dark"] .phrase-btn-edit-note:hover {
    background: #90cdf4;
    color: #1a202c;
    border-color: #90cdf4;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
    .phrase-details-grid {
        grid-template-columns: 1fr;
    }

    .phrase-details-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .phrase-details-container {
        padding: 1rem;
    }

    .phrase-breadcrumb {
        padding: 0.75rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .phrase-breadcrumb-item:not(:last-child)::after {
        margin: 0 0.5rem;
    }

    .phrase-header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .phrase-title {
        font-size: 2rem;
    }

    .phrase-header-actions {
        flex-direction: column;
    }

    .phrase-btn {
        width: 100%;
        justify-content: center;
    }

    .phrase-notes-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .phrase-tags-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .phrase-note-content {
        flex-direction: column;
        gap: 1rem;
    }

    .phrase-note-actions {
        align-self: flex-start;
    }
}

/* Note Actions Button Group */
.phrase-note-btn-group {
    display: flex;
    gap: 0.5rem;
}

.phrase-btn-delete-note {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    min-width: 80px;
}

.phrase-btn-delete-note:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    color: white;
}

/* Mobile responsiveness for button group */
@media (max-width: 768px) {
    .phrase-note-btn-group {
        flex-direction: column;
        width: 100%;
    }

    .phrase-btn-edit-note,
    .phrase-btn-delete-note {
        width: 100%;
        min-width: auto;
    }
}

/* ====== Phrase Details - End ====== */


/* ====== Add Tag Modal Styling - Start ====== */
.add-tag-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);
}

.add-tag-header-styled {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    padding: 2rem;
    position: relative;
}

.add-tag-header-styled::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;
}

.add-tag-title-styled {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.add-tag-close-styled {
    background: rgba(107, 114, 128, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
}

.add-tag-close-styled:hover {
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.1);
}

.add-tag-body-styled {
    padding: 2rem;
}

.add-tag-label-styled {
    color: #374151;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.add-tag-select-styled {
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 1.2rem;
    transition: all 0.3s ease;
}

.add-tag-select-styled: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);
}

.add-tag-hint-styled {
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    margin-top: 1rem;
}

.add-tag-link-styled {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.add-tag-link-styled:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #764ba2;
    text-decoration: none;
}

.add-tag-footer-styled {
    padding: 1.5rem 2rem 2rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    justify-content: center;
    gap: 1rem;
}

.add-tag-btn-submit-styled {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 16px;
    padding: 1rem 2rem;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.add-tag-btn-submit-styled:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.add-tag-btn-cancel-styled {
    border-radius: 16px;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.add-tag-btn-cancel-styled:hover {
    transform: translateY(-2px);
}

/* Dark theme */
[data-bs-theme="dark"] .add-tag-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"] .add-tag-header-styled {
    background: linear-gradient(135deg, rgba(144, 205, 244, 0.1) 0%, rgba(167, 139, 250, 0.05) 100%);
    border-bottom-color: rgba(144, 205, 244, 0.2);
}

[data-bs-theme="dark"] .add-tag-title-styled {
    background: linear-gradient(135deg, #90cdf4 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-bs-theme="dark"] .add-tag-label-styled {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .add-tag-select-styled {
    background: rgba(45, 55, 72, 0.8);
    border-color: rgba(144, 205, 244, 0.2);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .add-tag-select-styled: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"] .add-tag-hint-styled {
    background: rgba(144, 205, 244, 0.08);
    border-color: rgba(144, 205, 244, 0.2);
}

[data-bs-theme="dark"] .add-tag-link-styled {
    color: #90cdf4;
}

[data-bs-theme="dark"] .add-tag-footer-styled {
    border-top-color: rgba(255, 255, 255, 0.1);
}
/* ====== Add Tag Modal Styling - End ====== */


/* ====== Delete Phrase Modal Styling - Start ====== */
.delete-phrase-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-phrase-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;
    position: relative;
}

.delete-phrase-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-phrase-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;
    letter-spacing: -0.5px;
}

.delete-phrase-close-styled {
    background: rgba(107, 114, 128, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
}

.delete-phrase-close-styled:hover {
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.1);
}

.delete-phrase-body-styled {
    padding: 2rem;
}

.delete-phrase-question {
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.delete-phrase-warning-styled {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #f59e0b;
}

.delete-phrase-warning-styled strong {
    color: #92400e;
    font-weight: 700;
}

.delete-phrase-danger-text {
    color: #dc2626 !important;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    margin-bottom: 1rem;
}

.delete-phrase-muted-text {
    color: #6b7280 !important;
    font-style: italic;
    text-align: center;
    margin-bottom: 0;
}

.delete-phrase-footer-styled {
    padding: 1.5rem 2rem 2rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    justify-content: center;
    gap: 1rem;
}

.delete-phrase-btn-delete-styled {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    border-radius: 16px;
    padding: 1rem 2rem;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
    transition: all 0.3s ease;
    color: white;
}

.delete-phrase-btn-delete-styled:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}

.delete-phrase-btn-cancel-styled {
    border-radius: 16px;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.delete-phrase-btn-cancel-styled:hover {
    transform: translateY(-2px);
}

/* Dark theme */
[data-bs-theme="dark"] .delete-phrase-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-phrase-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-phrase-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-phrase-question {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .delete-phrase-warning-styled {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%);
    border-color: rgba(251, 191, 36, 0.4);
    border-left-color: #fbbf24;
}

[data-bs-theme="dark"] .delete-phrase-warning-styled strong {
    color: #fbbf24;
}

[data-bs-theme="dark"] .delete-phrase-danger-text {
    color: #f87171 !important;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

[data-bs-theme="dark"] .delete-phrase-muted-text {
    color: #a0aec0 !important;
}

[data-bs-theme="dark"] .delete-phrase-footer-styled {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .delete-phrase-header-styled,
    .delete-phrase-body-styled {
        padding: 1.5rem;
    }

    .delete-phrase-footer-styled {
        flex-direction: column;
        padding: 1rem 1.5rem 1.5rem 1.5rem;
    }

    .delete-phrase-btn-delete-styled,
    .delete-phrase-btn-cancel-styled {
        width: 100%;
    }

    .delete-phrase-title-styled {
        font-size: 1.3rem;
    }
}
/* ====== Delete Phrase Modal Styling - End ====== */


/* ====== Edit Phrase - Start ====== */
.edit-phrase-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.edit-phrase-breadcrumb {
    margin-bottom: 2rem;
}

.phrase-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    margin: 0;
    list-style: none;
    gap: 0.5rem;
}

.phrase-breadcrumb-item {
    display: flex;
    align-items: center;
}

.phrase-breadcrumb-item:not(:last-child)::after {
    content: '→';
    color: #667eea;
    margin: 0 0.75rem;
    font-weight: 600;
}

.phrase-breadcrumb-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.phrase-breadcrumb-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #764ba2;
    text-decoration: none;
    transform: translateY(-1px);
}

.phrase-breadcrumb-active {
    color: #6b7280;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
}

.edit-phrase-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-phrase-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-phrase-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-phrase-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-phrase-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
}

.edit-phrase-content {
    padding: 2rem;
}

.phrase-reference-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;
}

.phrase-reference-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);
}

.phrase-reference-title {
    color: #667eea;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.phrase-reference-body {
    padding: 1.5rem;
}

.phrase-reference-text {
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
    white-space: pre-line;
    font-size: 1rem;
}

.edit-phrase-form {
    margin-bottom: 2rem;
}

.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;
    min-height: 50px;
}

.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-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;
}

.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);
}

/* Notes Section */
.edit-phrase-notes-section {
    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;
    overflow: hidden;
}

.edit-phrase-notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.04) 100%);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.edit-phrase-notes-title {
    color: #667eea;
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0;
}

.edit-phrase-notes-list {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.edit-phrase-note-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.edit-phrase-note-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.edit-phrase-note-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.edit-phrase-note-text {
    flex: 1;
}

.edit-phrase-note-body {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    white-space: pre-line;
}

.edit-phrase-note-meta {
    color: #9ca3af;
    font-style: italic;
    font-size: 0.85rem;
}

.edit-phrase-note-actions {
    flex-shrink: 0;
}

.edit-phrase-note-btn-group {
    display: flex;
    gap: 0.5rem;
}

.edit-phrase-notes-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    margin: 1.5rem 2rem;
}

.edit-phrase-notes-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.edit-phrase-notes-empty-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #4b5563;
}

/* Buttons */
.edit-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    min-width: 120px;
}

.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-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-add-note {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

.edit-btn-add-note:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    color: white;
    text-decoration: none;
}

.edit-btn-note-edit {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(102, 126, 234, 0.3);
    color: #667eea;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    min-width: 80px;
}

.edit-btn-note-edit:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    text-decoration: none;
}

.edit-btn-note-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    min-width: 80px;
}

.edit-btn-note-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    color: white;
}

/* Delete Note Modal Styling */
.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: 20px;
    box-shadow: 0 20px 50px 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: 1.5rem;
    position: relative;
}

.delete-note-header-styled::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    border-radius: 1px;
}

.delete-note-title-styled {
    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;
}

.delete-note-close-styled {
    background: rgba(107, 114, 128, 0.1);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    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: 1.5rem;
}

.delete-note-question {
    font-weight: 500;
    color: #374151;
    margin-bottom: 1rem;
}

.delete-note-preview {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
}

.delete-note-footer-styled {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    justify-content: center;
    gap: 0.75rem;
    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: 12px !important;
    padding: 0.6rem 1.2rem !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    transition: all 0.3s ease !important;
    color: white !important;
}

.delete-note-btn-delete-styled:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4) !important;
    color: white !important;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
}

.delete-note-btn-cancel-styled {
    border-radius: 12px !important;
    padding: 0.6rem 1.2rem !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    transition: all 0.3s ease !important;
}

.delete-note-btn-cancel-styled:hover {
    transform: translateY(-2px) !important;
}

/* Dark theme adaptations */
[data-bs-theme="dark"] .phrase-breadcrumb {
    background: rgba(45, 55, 72, 0.7);
    border-color: rgba(144, 205, 244, 0.2);
}

[data-bs-theme="dark"] .phrase-breadcrumb-link {
    color: #90cdf4;
}

[data-bs-theme="dark"] .phrase-breadcrumb-link:hover {
    background: rgba(144, 205, 244, 0.1);
    color: #a78bfa;
}

[data-bs-theme="dark"] .phrase-breadcrumb-active {
    color: #a0aec0;
    background: rgba(144, 205, 244, 0.1);
}

[data-bs-theme="dark"] .edit-phrase-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-phrase-header {
    background: linear-gradient(135deg, rgba(144, 205, 244, 0.1) 0%, rgba(167, 139, 250, 0.05) 100%);
}

[data-bs-theme="dark"] .edit-phrase-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-phrase-subtitle {
    color: #a0aec0;
}

[data-bs-theme="dark"] .phrase-reference-card,
[data-bs-theme="dark"] .edit-phrase-notes-section {
    background: linear-gradient(135deg, rgba(144, 205, 244, 0.05) 0%, rgba(167, 139, 250, 0.03) 100%);
    border-color: rgba(144, 205, 244, 0.2);
}

[data-bs-theme="dark"] .phrase-reference-header,
[data-bs-theme="dark"] .edit-phrase-notes-header {
    background: linear-gradient(135deg, rgba(144, 205, 244, 0.1) 0%, rgba(167, 139, 250, 0.05) 100%);
    border-bottom-color: rgba(144, 205, 244, 0.2);
}

[data-bs-theme="dark"] .phrase-reference-title,
[data-bs-theme="dark"] .edit-phrase-notes-title {
    color: #90cdf4;
}

[data-bs-theme="dark"] .phrase-reference-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;
}

[data-bs-theme="dark"] .edit-form-actions {
    border-top-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .edit-phrase-note-card {
    background: rgba(45, 55, 72, 0.7);
    border-color: rgba(144, 205, 244, 0.2);
}

[data-bs-theme="dark"] .edit-phrase-note-body {
    color: #cbd5e0;
}

[data-bs-theme="dark"] .edit-phrase-note-meta {
    color: #718096;
}

[data-bs-theme="dark"] .edit-phrase-notes-empty {
    background: rgba(45, 55, 72, 0.5);
}

[data-bs-theme="dark"] .edit-phrase-notes-empty-title {
    color: #cbd5e0;
}

[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-btn-note-edit {
    background: rgba(45, 55, 72, 0.9);
    border-color: rgba(144, 205, 244, 0.3);
    color: #90cdf4;
}

[data-bs-theme="dark"] .edit-btn-note-edit:hover {
    background: #90cdf4;
    color: #1a202c;
    border-color: #90cdf4;
}

[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-preview {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #a0aec0;
}

[data-bs-theme="dark"] .delete-note-footer-styled {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .edit-phrase-container {
        padding: 1rem;
    }

    .edit-phrase-content {
        padding: 1.5rem;
    }

    .edit-phrase-title {
        font-size: 1.8rem;
    }

    .edit-form-actions {
        flex-direction: column;
    }

    .edit-btn {
        width: 100%;
    }

    .edit-phrase-notes-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .edit-phrase-notes-list {
        padding: 1rem;
    }

    .edit-phrase-note-content {
        flex-direction: column;
        gap: 1rem;
    }

    .edit-phrase-note-actions {
        align-self: flex-start;
    }

    .edit-phrase-note-btn-group {
        flex-direction: column;
        width: 100%;
    }

    .edit-btn-note-edit,
    .edit-btn-note-delete {
        width: 100%;
        min-width: auto;
    }

    .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%;
    }

    .phrase-breadcrumb {
        padding: 0.75rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .phrase-breadcrumb-item:not(:last-child)::after {
        margin: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .edit-phrase-notes-empty {
        padding: 2rem 1rem;
    }

    .edit-phrase-notes-empty-icon {
        font-size: 2.5rem;
    }

    .phrase-reference-header,
    .phrase-reference-body,
    .edit-phrase-notes-header {
        padding: 1rem;
    }

    .edit-phrase-note-card {
        padding: 1rem;
    }

    .delete-note-modal-styled {
        margin: 0.5rem;
    }

    .delete-note-header-styled,
    .delete-note-body-styled {
        padding: 1rem;
    }
}
/* ====== Edit Phrase - End ====== */

