body {
    background: linear-gradient(135deg, #dfe4ff, #f8f9fa);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card {
    background: linear-gradient(135deg, #eef1ff, #ffffff);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

h1.card-title {
    color: #4e73df;
    font-weight: 700;
}

#wordCounter {
    color: #555;
    font-weight: 600;
}

.form-control {
    border-radius: 12px;
    box-shadow: inset 0 0 5px rgba(78,115,223,0.1);
    transition: 0.2s;
}

.form-control:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 3px rgba(78,115,223,0.2);
}

.btn-primary {
    background: #4e73df;
    border-color: #4e73df;
    font-weight: 600;
    transition: 0.2s;
}

.btn-primary:hover {
    background: #3b5bdb;
}

#toggleTranslate {
    background: #4e73df;
    color: white;
    transition: 0.2s;
}

#toggleTranslate.off {
    background: #ccc !important;
    color: #666 !important;
}

#wordList {
    max-height: 350px;
    overflow-y: auto;
}

#wordList::-webkit-scrollbar {
    width: 6px;
}

#wordList::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 10px;
}

#wordList::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4e73df, #9b59b6);
    border-radius: 10px;
}

#wordList::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #3b5bdb, #8e44ad);
}

.list-group-item {
    background: #f5f7ff;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}

.list-group-item:hover {
    background: #e2e8ff;
}

.word {
    font-weight: bold;
    color: #333;
}

.translation {
    font-size: 14px;
    color: #666;
}

.number {
    font-weight: bold;
    margin-right: 10px;
    color: #4e73df;
}

.left-side {
    display: flex;
    align-items: center;
}

.edit-btn {
    background: #f6c23e;
    margin-right: 5px;
}

.edit-btn:hover {
    background: #dda20a;
}

.delete-btn {
    background: #ff6b6b;
}

.delete-btn:hover {
    background: #e63946;
}

.search-bar i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

#emptyMessage {
    text-align: center;
    color: #777;
    margin-top: 10px;
}

#uniqueness {
    margin-top: 15px;
    font-size: 13px;
    color: #555;
    text-align: center;
    font-style: italic;
}

.translate-btn {
    width: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    transition: 0.2s;
}

.translate-btn.off {
    background: #ccc;
    color: #666;
}
