/* ====== Dictionary Index - Start ====== */
.dictionary-index-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.dictionary-index-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(34, 197, 94, 0.1);
    position: relative;
}

.dictionary-index-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, #22c55e 0%, #10b981 100%);
    border-radius: 1px;
}

.dictionary-header-content h1.dictionary-index-title {
    font-size: 3rem;
    font-weight: 300;
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.dictionary-index-subtitle {
    color: #6b7280;
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0;
}

.dictionary-header-actions {
    flex-shrink: 0;
}

.dictionary-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;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
}

.dictionary-btn-primary {
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.dictionary-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(34, 197, 94, 0.4);
    color: white;
    text-decoration: none;
}

.dictionary-btn-icon {
    font-size: 1.1rem;
}

/* Dictionary Grid */
.dictionary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.dictionary-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(255, 255, 255, 0.2);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dictionary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.dictionary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #22c55e 0%, #10b981 100%);
}

.dictionary-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.dictionary-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.dictionary-language-pair {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.dictionary-language-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}

.dictionary-source-lang {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
    color: #059669;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.dictionary-target-lang {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.1) 100%);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.dictionary-language-arrow {
    color: #6b7280;
    font-weight: bold;
    font-size: 1.1rem;
}

.dictionary-card-description {
    margin-bottom: 1.5rem;
}

.dictionary-card-description p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.dictionary-card-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(34, 197, 94, 0.1);
}

.dictionary-stat-item {
    text-align: center;
}

.dictionary-stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
    line-height: 1;
}

.dictionary-stat-label {
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.dictionary-card-meta {
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.dictionary-created-date {
    color: #9ca3af;
    font-size: 0.85rem;
    font-style: italic;
}

.dictionary-card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

.dictionary-action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    min-height: 60px;
    justify-content: center;
}

.dictionary-action-primary {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: #059669;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.dictionary-action-secondary {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.dictionary-action-practice {
    background: linear-gradient(135deg, rgba(245, 101, 101, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: #dc2626;
    border: 1px solid rgba(245, 101, 101, 0.2);
}

.dictionary-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.dictionary-action-primary:hover {
    color: #047857;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
}

.dictionary-action-secondary:hover {
    color: #1d4ed8;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.1) 100%);
}

.dictionary-action-practice:hover {
    color: #b91c1c;
    background: linear-gradient(135deg, rgba(245, 101, 101, 0.15) 0%, rgba(239, 68, 68, 0.1) 100%);
}

.dictionary-action-edit {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.05) 100%);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.dictionary-action-edit:hover {
    color: #b45309;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.dictionary-action-icon {
    font-size: 1.2rem;
}

/* Empty State */
.dictionary-empty-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    margin-top: 2rem;
}

.dictionary-empty-content {
    text-align: center;
    max-width: 500px;
}

.dictionary-empty-icon {
    font-size: 6rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.dictionary-empty-title {
    font-size: 2rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 1rem;
}

.dictionary-empty-description {
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.dictionary-empty-cta {
    font-size: 1.1rem;
    padding: 1.25rem 2.5rem;
}

/* Dark theme adaptations */
[data-bs-theme="dark"] .dictionary-index-header {
    border-bottom-color: rgba(52, 211, 153, 0.2);
}

[data-bs-theme="dark"] .dictionary-index-title {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-bs-theme="dark"] .dictionary-index-subtitle {
    color: #a0aec0;
}

[data-bs-theme="dark"] .dictionary-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"] .dictionary-card::before {
    background: linear-gradient(90deg, #34d399 0%, #10b981 100%);
}

[data-bs-theme="dark"] .dictionary-card-title {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .dictionary-card-description p {
    color: #a0aec0;
}

[data-bs-theme="dark"] .dictionary-card-stats {
    background: rgba(52, 211, 153, 0.1);
    border-color: rgba(52, 211, 153, 0.2);
}

[data-bs-theme="dark"] .dictionary-stat-number {
    color: #34d399;
}

[data-bs-theme="dark"] .dictionary-stat-label {
    color: #a0aec0;
}

[data-bs-theme="dark"] .dictionary-created-date {
    color: #718096;
}

[data-bs-theme="dark"] .dictionary-card-meta {
    border-top-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .dictionary-source-lang {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.2) 0%, rgba(16, 185, 129, 0.15) 100%);
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.3);
}

[data-bs-theme="dark"] .dictionary-target-lang {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.2) 0%, rgba(59, 130, 246, 0.15) 100%);
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.3);
}

[data-bs-theme="dark"] .dictionary-action-primary {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.3);
}

[data-bs-theme="dark"] .dictionary-action-secondary {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.3);
}

[data-bs-theme="dark"] .dictionary-action-practice {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.15) 0%, rgba(239, 68, 68, 0.1) 100%);
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.3);
}

[data-bs-theme="dark"] .dictionary-action-edit {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.1) 100%);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
}

[data-bs-theme="dark"] .dictionary-action-edit:hover {
    color: #f59e0b;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.15) 100%);
}

[data-bs-theme="dark"] .dictionary-empty-title {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .dictionary-empty-description {
    color: #a0aec0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .dictionary-index-container {
        padding: 1rem;
    }

    .dictionary-index-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        text-align: left;
    }

    .dictionary-header-content h1.dictionary-index-title {
        font-size: 2.2rem;
    }

    .dictionary-index-subtitle {
        font-size: 1.1rem;
    }

    .dictionary-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .dictionary-card {
        padding: 1.25rem;
    }

    .dictionary-card-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .dictionary-action-btn {
        flex-direction: row;
        min-height: auto;
        padding: 1rem;
    }

    .dictionary-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .dictionary-index-header {
        margin-bottom: 2rem;
    }

    .dictionary-header-content h1.dictionary-index-title {
        font-size: 1.8rem;
    }

    .dictionary-card-stats {
        padding: 0.75rem;
    }

    .dictionary-language-pair {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .dictionary-empty-icon {
        font-size: 4rem;
    }

    .dictionary-empty-title {
        font-size: 1.6rem;
    }
}
/* ====== Dictionary Index - End ====== */

/* ====== Dictionary Create - Start ====== */
.create-dictionary-container {
    max-width: 650px;
    margin: 0 auto;
    padding: 2rem 0;
}

.create-dictionary-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-dictionary-header {
    text-align: center;
    padding: 2rem 2rem 1rem 2rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    position: relative;
}

.create-dictionary-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #22c55e 0%, #10b981 100%);
    border-radius: 2px;
}

.create-dictionary-title {
    font-size: 2.2rem;
    font-weight: 300;
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.create-dictionary-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
}

.create-dictionary-form {
    padding: 2rem;
}

.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(34, 197, 94, 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: #22c55e;
    box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 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;
}

/* Language selection specific styles */
.create-language-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.create-language-item {
    flex: 1;
    margin-bottom: 0;
}

.create-language-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    flex-shrink: 0;
}

.create-arrow-icon {
    font-size: 2rem;
    color: #22c55e;
    font-weight: bold;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(34, 197, 94, 0.2);
    transition: all 0.3s ease;
}

.create-language-group:hover .create-arrow-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
    border-color: rgba(34, 197, 94, 0.3);
}

.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-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, #22c55e 0%, #10b981 100%);
    border: none;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.create-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(34, 197, 94, 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);
}

.create-form-hint {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Input focus animations */
.create-form-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(16, 185, 129, 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-dictionary-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-dictionary-header {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
}

[data-bs-theme="dark"] .create-dictionary-title {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-bs-theme="dark"] .create-dictionary-subtitle {
    color: #a0aec0;
}

[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(52, 211, 153, 0.2);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .create-form-control:focus {
    border-color: #34d399;
    background: rgba(45, 55, 72, 1);
    box-shadow: 0 0 0 0.2rem rgba(52, 211, 153, 0.2);
}

[data-bs-theme="dark"] .create-form-control::placeholder {
    color: #6b7280;
}

[data-bs-theme="dark"] .create-arrow-icon {
    color: #34d399;
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-color: rgba(52, 211, 153, 0.2);
}

[data-bs-theme="dark"] .create-language-group:hover .create-arrow-icon {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
    border-color: rgba(52, 211, 153, 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);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .create-dictionary-container {
        padding: 1rem;
        max-width: 100%;
    }

    .create-dictionary-form {
        padding: 1.5rem;
    }

    .create-dictionary-title {
        font-size: 1.8rem;
    }

    .create-language-group {
        flex-direction: column;
        gap: 1rem;
    }

    .create-language-arrow {
        margin: 0;
        transform: rotate(90deg);
    }

    .create-arrow-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .create-form-actions {
        flex-direction: column;
    }

    .create-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .create-dictionary-container {
        padding: 0.5rem;
    }

    .create-dictionary-form {
        padding: 1rem;
    }

    .create-dictionary-header {
        padding: 1.5rem 1rem 0.5rem 1rem;
    }

    .create-dictionary-title {
        font-size: 1.6rem;
    }

    .create-dictionary-subtitle {
        font-size: 1rem;
    }
}
/* ====== Dictionary Create - End ====== */

/* ====== Dictionaries Edit - Start ====== */
.edit-dictionary-container {
    max-width: 650px;
    margin: 0 auto;
    padding: 2rem 0;
}

.edit-dictionary-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-dictionary-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-dictionary-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-dictionary-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: 0.5rem;
    letter-spacing: -0.5px;
}

.edit-dictionary-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
}

.edit-dictionary-form {
    padding: 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(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;
}

/* Language selection specific styles */
.edit-language-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.edit-language-item {
    flex: 1;
    margin-bottom: 0;
}

.edit-language-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    flex-shrink: 0;
}

.edit-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-language-group:hover .edit-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-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-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);
}

.edit-form-hint {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 0.5rem;
    font-style: italic;
}

/* 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-dictionary-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-dictionary-header {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
}

[data-bs-theme="dark"] .edit-dictionary-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-dictionary-subtitle {
    color: #a0aec0;
}

[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-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-language-group:hover .edit-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);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .edit-dictionary-container {
        padding: 1rem;
        max-width: 100%;
    }

    .edit-dictionary-form {
        padding: 1.5rem;
    }

    .edit-dictionary-title {
        font-size: 1.8rem;
    }

    .edit-language-group {
        flex-direction: column;
        gap: 1rem;
    }

    .edit-language-arrow {
        margin: 0;
        transform: rotate(90deg);
    }

    .edit-arrow-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .edit-form-actions {
        flex-direction: column;
    }

    .edit-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .edit-dictionary-container {
        padding: 0.5rem;
    }

    .edit-dictionary-form {
        padding: 1rem;
    }

    .edit-dictionary-header {
        padding: 1.5rem 1rem 0.5rem 1rem;
    }

    .edit-dictionary-title {
        font-size: 1.6rem;
    }

    .edit-dictionary-subtitle {
        font-size: 1rem;
    }
}
/* ====== Dictionaries Edit - End ====== */

