/* ====== Words Index - Start ====== */
.words-index-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.words-index-header {
    margin-bottom: 2rem;
}

.words-breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.words-breadcrumb-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.words-breadcrumb-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.words-breadcrumb-separator {
    color: #9ca3af;
    margin: 0 0.75rem;
    font-weight: bold;
}

.words-breadcrumb-current {
    color: #374151;
    font-weight: 600;
}

.words-header-content {
    margin-bottom: 2rem;
}

.words-index-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.words-language-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.words-language-badge {
    padding: 0.5rem 1rem;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: capitalize;
}

.words-source-lang {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.words-target-lang {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(168, 85, 247, 0.1) 100%);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.words-language-arrow {
    color: #6b7280;
    font-weight: bold;
    font-size: 1.2rem;
}

.words-dictionary-description {
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.words-header-actions {
    display: flex;
    justify-content: center;
}

.words-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.words-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.words-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.4);
    color: white;
    text-decoration: none;
}

.words-btn-icon {
    font-size: 1.1rem;
}

/* Stats Bar */
.words-stats-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.02) 100%);
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.words-stat-item {
    text-align: center;
}

.words-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #6366f1;
    line-height: 1;
}

.words-stat-label {
    font-size: 0.9rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Words List */
.words-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.word-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 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.word-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.word-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
}

.word-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.word-main-content {
    flex: 1;
}

.word-pair {
    margin-bottom: 0.75rem;
}

.word-source,
.word-target {
    margin-bottom: 0.5rem;
}

.word-source .word-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
}

.word-target .word-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #6366f1;
}

.word-pronunciation {
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
    margin-left: 0.75rem;
}

.word-part-of-speech {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.word-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.word-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.word-action-edit {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.2);
}

.word-action-edit:hover {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
    transform: scale(1.05);
}

.word-action-practice {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.word-action-practice:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    transform: scale(1.05);
}

.word-action-icon {
    font-size: 1rem;
}

.word-definition {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 12px;
    border-left: 3px solid #6366f1;
}

.word-definition p {
    margin: 0;
    color: #374151;
    font-style: italic;
    line-height: 1.6;
}

/* Word Examples */
.word-examples {
    margin-bottom: 1.5rem;
}

.word-examples-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.word-examples-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.word-examples-count {
    background: #6366f1;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.word-examples-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.word-example-item {
    padding: 0.75rem 1rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 12px;
    border-left: 3px solid #8b5cf6;
}

.word-example-source {
    font-size: 0.95rem;
    color: #374151;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.word-example-target {
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
}

.word-examples-more {
    text-align: center;
    padding: 0.5rem;
}

.word-examples-more-text {
    color: #8b5cf6;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
}

.word-examples-more-text:hover {
    text-decoration: underline;
}

/* Word Card Meta */
.word-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.word-add-example-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.word-add-example-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    color: #7c3aed;
    text-decoration: none;
}

.word-add-example-icon {
    font-size: 0.9rem;
}

.word-created-date {
    color: #9ca3af;
    font-size: 0.85rem;
    font-style: italic;
}

/* Empty State */
.words-empty-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.words-empty-content {
    text-align: center;
    max-width: 500px;
}

.words-empty-icon {
    font-size: 6rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.words-empty-title {
    font-size: 2rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 1rem;
}

.words-empty-description {
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.words-empty-cta {
    font-size: 1.1rem;
    padding: 1.25rem 2.5rem;
}

/* Dark theme adaptations */
[data-bs-theme="dark"] .words-breadcrumb-current {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .words-index-title {
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-bs-theme="dark"] .words-dictionary-description {
    color: #a0aec0;
}

[data-bs-theme="dark"] .words-stats-bar {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.1) 0%, rgba(167, 139, 250, 0.05) 100%);
    border-color: rgba(129, 140, 248, 0.2);
}

[data-bs-theme="dark"] .words-stat-number {
    color: #818cf8;
}

[data-bs-theme="dark"] .words-stat-label {
    color: #a0aec0;
}

[data-bs-theme="dark"] .word-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"] .word-card::before {
    background: linear-gradient(90deg, #818cf8 0%, #a78bfa 100%);
}

[data-bs-theme="dark"] .word-source .word-text {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .word-target .word-text {
    color: #818cf8;
}

[data-bs-theme="dark"] .word-pronunciation {
    color: #a0aec0;
}

[data-bs-theme="dark"] .word-part-of-speech {
    background: rgba(129, 140, 248, 0.2);
    color: #818cf8;
}

[data-bs-theme="dark"] .word-definition {
    background: rgba(129, 140, 248, 0.1);
    border-left-color: #818cf8;
}

[data-bs-theme="dark"] .word-definition p {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .word-examples-title {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .word-examples-count {
    background: #818cf8;
}

[data-bs-theme="dark"] .word-example-item {
    background: rgba(167, 139, 250, 0.1);
    border-left-color: #a78bfa;
}

[data-bs-theme="dark"] .word-example-source {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .word-example-target {
    color: #a0aec0;
}

[data-bs-theme="dark"] .word-examples-more-text {
    color: #a78bfa;
}

[data-bs-theme="dark"] .word-card-meta {
    border-top-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .word-add-example-btn {
    background: rgba(167, 139, 250, 0.15);
    color: #a78bfa;
    border-color: rgba(167, 139, 250, 0.3);
}

[data-bs-theme="dark"] .word-add-example-btn:hover {
    background: rgba(167, 139, 250, 0.2);
    color: #8b5cf6;
}

[data-bs-theme="dark"] .word-created-date {
    color: #718096;
}

[data-bs-theme="dark"] .words-empty-title {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .words-empty-description {
    color: #a0aec0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .words-index-container {
        padding: 1rem;
    }

    .words-index-title {
        font-size: 2rem;
    }

    .words-stats-bar {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .word-card-header {
        /*flex-direction: column;*/
        align-items: flex-start;
        gap: 1rem;
    }

    .word-actions {
        align-self: center;
    }

    .word-card-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .words-header-actions {
        margin-top: 1rem;
    }

    .words-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .words-index-title {
        font-size: 1.6rem;
    }

    .words-language-info {
        flex-wrap: wrap;
    }

    .word-card {
        padding: 1rem;
    }

    .word-source .word-text {
        font-size: 1.2rem;
    }

    .word-target .word-text {
        font-size: 1.1rem;
    }
}
/* ====== Words Index - End ====== */

/* ====== Words Create - Start ====== */
.create-word-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 0;
}

.create-word-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-word-header {
    text-align: center;
    padding: 2rem 2rem 1rem 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    position: relative;
}

.create-word-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 2px;
}

.create-word-breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.create-word-breadcrumb-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.create-word-breadcrumb-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.create-word-breadcrumb-separator {
    color: #9ca3af;
    margin: 0 0.75rem;
    font-weight: bold;
}

.create-word-breadcrumb-current {
    color: #374151;
    font-weight: 600;
}

.create-word-title {
    font-size: 2.2rem;
    font-weight: 300;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.create-word-dictionary-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.create-word-dictionary-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
}

.create-word-language-pair {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.create-word-source-lang,
.create-word-target-lang {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}

.create-word-source-lang {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.create-word-target-lang {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(168, 85, 247, 0.1) 100%);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.create-word-arrow {
    color: #6b7280;
    font-weight: bold;
    font-size: 1rem;
}

.create-word-form {
    padding: 2rem;
}

/* Section Styles */
.create-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(99, 102, 241, 0.1);
    position: relative;
}

.create-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 1px;
}

.create-word-pair-section {
    margin-bottom: 2.5rem;
}

.create-word-details-section {
    margin-bottom: 2rem;
}

/* Word Pair Specific Styles */
.create-word-pair-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.create-word-source,
.create-word-target {
    width: 100%;
    margin-bottom: 0;
}

.create-word-pair-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.create-pair-arrow-icon {
    font-size: 2rem;
    color: #6366f1;
    font-weight: bold;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.create-word-pair-group:hover .create-pair-arrow-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-color: rgba(99, 102, 241, 0.3);
}

.create-word-input {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

/* Details Grid */
.create-word-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Form Styles */
.create-form-group {
    margin-bottom: 2rem;
    position: relative;
}

.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-form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid rgba(99, 102, 241, 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;
    min-height: 50px;
}

.create-form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.create-form-control::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.create-textarea {
    min-height: 120px;
    font-family: inherit;
    line-height: 1.6;
}

.create-validation-summary:empty {
    display: none;
}

.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-validation-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 500;
    display: block;
}

.create-form-hint {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Buttons */
.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-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-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.create-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.4);
    color: white;
    text-decoration: none;
}

.create-btn-primary:active {
    transform: translateY(-1px);
}

.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-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-btn-secondary:active {
    transform: translateY(-1px);
}

/* Next Steps Section */
.create-word-next-steps {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.02) 100%);
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    padding: 1.5rem 2rem;
}

.create-next-steps-title {
    font-size: 1rem;
    font-weight: 600;
    color: #6366f1;
    margin-bottom: 0.5rem;
}

.create-next-steps-description {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* Input focus animations */
.create-form-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.02) 100%);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.create-form-control:focus ~ .create-form-group::before {
    opacity: 1;
}

/* Dark theme adaptations */
[data-bs-theme="dark"] .create-word-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-word-header {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.1) 0%, rgba(167, 139, 250, 0.05) 100%);
}

[data-bs-theme="dark"] .create-word-title {
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-bs-theme="dark"] .create-word-breadcrumb-current {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .create-word-dictionary-name {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .create-word-source-lang {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.2) 0%, rgba(167, 139, 250, 0.15) 100%);
    color: #818cf8;
    border-color: rgba(129, 140, 248, 0.3);
}

[data-bs-theme="dark"] .create-word-target-lang {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.2) 0%, rgba(196, 181, 253, 0.15) 100%);
    color: #a78bfa;
    border-color: rgba(167, 139, 250, 0.3);
}

[data-bs-theme="dark"] .create-section-title {
    color: #e2e8f0;
    border-bottom-color: rgba(129, 140, 248, 0.2);
}

[data-bs-theme="dark"] .create-form-label {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .create-form-control {
    background: rgba(45, 55, 72, 0.8);
    border-color: rgba(129, 140, 248, 0.2);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .create-form-control:focus {
    border-color: #818cf8;
    background: rgba(45, 55, 72, 1);
    box-shadow: 0 0 0 0.2rem rgba(129, 140, 248, 0.2);
}

[data-bs-theme="dark"] .create-form-control::placeholder {
    color: #6b7280;
}

[data-bs-theme="dark"] .create-pair-arrow-icon {
    color: #818cf8;
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.1) 0%, rgba(167, 139, 250, 0.1) 100%);
    border-color: rgba(129, 140, 248, 0.2);
}

[data-bs-theme="dark"] .create-word-pair-group:hover .create-pair-arrow-icon {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.15) 0%, rgba(167, 139, 250, 0.15) 100%);
    border-color: rgba(129, 140, 248, 0.3);
}

[data-bs-theme="dark"] .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-btn-secondary:hover {
    background: #a0aec0;
    color: #1a202c;
    border-color: #a0aec0;
}

[data-bs-theme="dark"] .create-form-hint {
    color: #718096;
}

[data-bs-theme="dark"] .create-form-actions {
    border-top-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .create-word-next-steps {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.1) 0%, rgba(167, 139, 250, 0.05) 100%);
    border-top-color: rgba(129, 140, 248, 0.2);
}

[data-bs-theme="dark"] .create-next-steps-title {
    color: #818cf8;
}

[data-bs-theme="dark"] .create-next-steps-description {
    color: #a0aec0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .create-word-container {
        padding: 1rem;
        max-width: 100%;
    }

    .create-word-form {
        padding: 1.5rem;
    }

    .create-word-title {
        font-size: 1.8rem;
    }

    .create-word-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .create-form-actions {
        flex-direction: column;
    }

    .create-btn {
        width: 100%;
    }

    .create-word-next-steps {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .create-word-container {
        padding: 0.5rem;
    }

    .create-word-form {
        padding: 1rem;
    }

    .create-word-header {
        padding: 1.5rem 1rem 0.5rem 1rem;
    }

    .create-word-title {
        font-size: 1.6rem;
    }

    .create-pair-arrow-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .create-section-title {
        font-size: 1.1rem;
    }

    .create-word-breadcrumb {
        font-size: 0.8rem;
    }

    .create-word-language-pair {
        flex-wrap: wrap;
        justify-content: center;
    }
}
/* ====== Words Create - End ====== */

/* ====== Words Edit - Start ====== */
.edit-word-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 0;
}

.edit-word-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-word-header {
    text-align: center;
    padding: 2rem 2rem 1rem 2rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.05) 100%);
    position: relative;
}

.edit-word-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    border-radius: 2px;
}

.edit-word-breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.edit-word-breadcrumb-link {
    color: #f59e0b;
    text-decoration: none;
    font-weight: 500;
}

.edit-word-breadcrumb-link:hover {
    color: #d97706;
    text-decoration: underline;
}

.edit-word-breadcrumb-separator {
    color: #9ca3af;
    margin: 0 0.75rem;
    font-weight: bold;
}

.edit-word-breadcrumb-current {
    color: #374151;
    font-weight: 600;
}

.edit-word-title {
    font-size: 2.2rem;
    font-weight: 300;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.edit-word-dictionary-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.edit-word-dictionary-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
}

.edit-word-language-pair {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.edit-word-source-lang,
.edit-word-target-lang {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}

.edit-word-source-lang {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.1) 100%);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.edit-word-target-lang {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.15) 0%, rgba(180, 83, 9, 0.1) 100%);
    color: #d97706;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.edit-word-arrow {
    color: #6b7280;
    font-weight: bold;
    font-size: 1rem;
}

.edit-word-form {
    padding: 2rem;
}

/* Section Styles */
.edit-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(245, 158, 11, 0.1);
    position: relative;
}

.edit-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    border-radius: 1px;
}

.edit-word-pair-section {
    margin-bottom: 2.5rem;
}

.edit-word-details-section {
    margin-bottom: 2rem;
}

/* Word Pair Specific Styles */
.edit-word-pair-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.edit-word-source,
.edit-word-target {
    width: 100%;
    margin-bottom: 0;
}

.edit-word-pair-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.edit-pair-arrow-icon {
    font-size: 2rem;
    color: #f59e0b;
    font-weight: bold;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(245, 158, 11, 0.2);
    transition: all 0.3s ease;
}

.edit-word-pair-group:hover .edit-pair-arrow-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.15) 100%);
    border-color: rgba(245, 158, 11, 0.3);
}

.edit-word-input {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

/* Details Grid */
.edit-word-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Form Styles */
.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(245, 158, 11, 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;
    min-height: 50px;
}

.edit-form-control:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.2);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.edit-form-control::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.edit-textarea {
    min-height: 120px;
    font-family: inherit;
    line-height: 1.6;
}

.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;
}

/* Buttons */
.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);
}

.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;
}

.edit-btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.edit-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.4);
    color: white;
    text-decoration: none;
}

.edit-btn-primary: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);
}

/* Examples Info Section */
.edit-word-examples-info {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(217, 119, 6, 0.02) 100%);
    border-top: 1px solid rgba(245, 158, 11, 0.1);
    padding: 1.5rem 2rem;
}

.edit-examples-info-title {
    font-size: 1rem;
    font-weight: 600;
    color: #f59e0b;
    margin-bottom: 0.5rem;
}

.edit-examples-info-description {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* Input focus animations */
.edit-form-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(217, 119, 6, 0.02) 100%);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.edit-form-control:focus ~ .edit-form-group::before {
    opacity: 1;
}

/* Dark theme adaptations */
[data-bs-theme="dark"] .edit-word-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-word-header {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
}

[data-bs-theme="dark"] .edit-word-title {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-bs-theme="dark"] .edit-word-breadcrumb-link {
    color: #fbbf24;
}

[data-bs-theme="dark"] .edit-word-breadcrumb-link:hover {
    color: #f59e0b;
}

[data-bs-theme="dark"] .edit-word-breadcrumb-current {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .edit-word-dictionary-name {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .edit-word-source-lang {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.15) 100%);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
}

[data-bs-theme="dark"] .edit-word-target-lang {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.15) 100%);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
}

[data-bs-theme="dark"] .edit-section-title {
    color: #e2e8f0;
    border-bottom-color: rgba(251, 191, 36, 0.2);
}

[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(251, 191, 36, 0.2);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .edit-form-control:focus {
    border-color: #fbbf24;
    background: rgba(45, 55, 72, 1);
    box-shadow: 0 0 0 0.2rem rgba(251, 191, 36, 0.2);
}

[data-bs-theme="dark"] .edit-form-control::placeholder {
    color: #6b7280;
}

[data-bs-theme="dark"] .edit-pair-arrow-icon {
    color: #fbbf24;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    border-color: rgba(251, 191, 36, 0.2);
}

[data-bs-theme="dark"] .edit-word-pair-group:hover .edit-pair-arrow-icon {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
    border-color: rgba(251, 191, 36, 0.3);
}

[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-hint {
    color: #718096;
}

[data-bs-theme="dark"] .edit-form-actions {
    border-top-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .edit-word-examples-info {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-top-color: rgba(251, 191, 36, 0.2);
}

[data-bs-theme="dark"] .edit-examples-info-title {
    color: #fbbf24;
}

[data-bs-theme="dark"] .edit-examples-info-description {
    color: #a0aec0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .edit-word-container {
        padding: 1rem;
        max-width: 100%;
    }

    .edit-word-form {
        padding: 1.5rem;
    }

    .edit-word-title {
        font-size: 1.8rem;
    }

    .edit-word-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .edit-form-actions {
        flex-direction: column;
    }

    .edit-btn {
        width: 100%;
    }

    .edit-word-examples-info {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .edit-word-container {
        padding: 0.5rem;
    }

    .edit-word-form {
        padding: 1rem;
    }

    .edit-word-header {
        padding: 1.5rem 1rem 0.5rem 1rem;
    }

    .edit-word-title {
        font-size: 1.6rem;
    }

    .edit-pair-arrow-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .edit-section-title {
        font-size: 1.1rem;
    }

    .edit-word-breadcrumb {
        font-size: 0.8rem;
    }

    .edit-word-language-pair {
        flex-wrap: wrap;
        justify-content: center;
    }
}
/* ====== Words Edit - End ====== */

/* ====== ------ ====== */
/* Examples More Link */
.word-examples-more-text {
    color: #8b5cf6;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.word-examples-more-text:hover {
    color: #7c3aed;
    text-decoration: none;
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
    transform: translateY(-1px);
}

/* View Examples Button */
.word-view-examples-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.word-view-examples-btn:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(168, 85, 247, 0.1) 100%);
    color: #7c3aed;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.word-view-examples-icon {
    font-size: 0.9rem;
}

/* Examples Count Link */
.word-examples-count-link {
    background: #6366f1;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.word-examples-count-link:hover {
    background: #4f46e5;
    color: white;
    text-decoration: none;
    transform: scale(1.05);
}

/* Dark theme adaptations */
[data-bs-theme="dark"] .word-examples-more-text {
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.1);
    border-color: rgba(167, 139, 250, 0.2);
}

[data-bs-theme="dark"] .word-examples-more-text:hover {
    color: #8b5cf6;
    background: rgba(167, 139, 250, 0.15);
    border-color: rgba(167, 139, 250, 0.3);
}

[data-bs-theme="dark"] .word-view-examples-btn {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.15) 0%, rgba(196, 181, 253, 0.1) 100%);
    color: #a78bfa;
    border-color: rgba(167, 139, 250, 0.3);
}

[data-bs-theme="dark"] .word-view-examples-btn:hover {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.2) 0%, rgba(196, 181, 253, 0.15) 100%);
    color: #8b5cf6;
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.2);
}

[data-bs-theme="dark"] .word-examples-count-link {
    background: #818cf8;
}

[data-bs-theme="dark"] .word-examples-count-link:hover {
    background: #6366f1;
}
/* ====== ------ ====== */