.light {
    background-color: #fff;
    color: #000;
}

.dark {
    background-color: #1e1e1e;
    color: #fff;
}

.text-green-600 {
    background-color: rgb(0 128 0 / 50%);
}

.text-gray-500 {
    background-color: rgb(128 128 128 / 50%);
}

.text-red-600 {
    background-color: rgb(255 0 0 / 50%);
}

.active-char {
    text-decoration: underline;
    text-underline-offset: 4px;
    -webkit-text-decoration-color: black;
            text-decoration-color: black;
}

.enter {
    width: 30px;
    height: 30px;
    background-image: url('/local/templates/bp/assets/img/bp/enter.svg');
}

#application-bp .header {
    text-align: center;
}

#application-bp .symbol {
    word-wrap: break-word;
}

#application-bp .symbol span {
    font-size: 30px;
}

.header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
}

.header-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.header-left {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
}

.header-right {
    margin-left: 20px;
}

.progress-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 20px;
    height: 10px;
    overflow: hidden;
    position: relative;
    margin-top: 10px;
}

.progress-bar {
    background-color: #4caf50;
    height: 100%;
    width: 0;
    -webkit-transition: width 0.3s ease;
    -o-transition: width 0.3s ease;
    transition: width 0.3s ease;
    position: relative;
}

.progress-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    font-weight: bold;
    color: #ffffff;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
    font-size: 12px;
}

.controls {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: 10px;
    margin: 20px 0;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

.typing-container {
    height: 13rem;
    overflow: hidden;
    position: relative;
}

.typing-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    -webkit-transition: -webkit-transform 0.3s ease-in-out;
    transition: -webkit-transform 0.3s ease-in-out;
    -o-transition: transform 0.3s ease-in-out;
    transition: transform 0.3s ease-in-out;
    transition: transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
}

.genric-btn {
    display: inline-block;
    outline: none;
    line-height: 40px;
    padding: 0 30px;
    font-size: .8em;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    -webkit-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
}

.genric-btn.info {
    color: #fff;
    background: #38a4ff;
    border: 1px solid transparent;
}

.mr-2, .mx-2 {
    margin-right: .5rem !important;
}

.training-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

.training-popup {
    background: white;
    color: black;
    padding: 2rem;
    border-radius: 1rem;
    font-size: 1.25rem;
    font-weight: 500;
    -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    text-align: center;
}

.symbol .pr-5 {
    padding-right: 5px !important;
}

.hands-guide {
    background: rgba(255, 255, 255, 0.95);
    -webkit-box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
}

.hands-guide-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 10px;
    width: 100%;
    margin: 0 auto;
}

.hands-guide-text {
    font-size: 16px;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
}

.hands-guide-animation {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    width: 100%;
}

.hands-overlay {
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 100px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: flex-end;
    pointer-events: none;
}

.hands-overlay.left-hand {
    -webkit-transform: scaleX(-1);
        -ms-transform: scaleX(-1);
            transform: scaleX(-1);
}

.hand {
    position: relative;
    width: 40px;
    height: 80px;
    margin: 0 5px;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.hand.active {
    -webkit-transform: translateY(-10px);
        -ms-transform: translateY(-10px);
            transform: translateY(-10px);
}

.finger {
    position: absolute;
    bottom: 0;
    left: 50%;
    -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
            transform: translateX(-50%);
    width: 20px;
    height: 40px;
    background: #4CAF50;
    border-radius: 10px;
    opacity: 0.3;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.hand.active .finger {
    opacity: 1;
    -webkit-box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
            box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.finger.pinky {
    height: 35px;
}

.finger.ring {
    height: 40px;
}

.finger.middle {
    height: 45px;
}

.finger.index {
    height: 40px;
}

.finger.thumb {
    width: 25px;
    height: 30px;
    -webkit-transform: translateX(-50%) rotate(-45deg);
        -ms-transform: translateX(-50%) rotate(-45deg);
            transform: translateX(-50%) rotate(-45deg);
}

.keyboard {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 5px;
    background: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
    width: 100%;
}

.keyboard-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 5px;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    width: 100%;
}

.key {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    min-width: 40px;
    height: 40px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}

.key.active {
    background: #4CAF50;
    color: white;
    -webkit-transform: scale(1.1);
        -ms-transform: scale(1.1);
            transform: scale(1.1);
    -webkit-box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
            box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.key.space {
    -webkit-box-flex: 3;
        -ms-flex: 3;
            flex: 3;
    height: 40px;
}

/* Обновляем z-index для статистики */
.training-stats {
    z-index: 2;
}

.training-error-analysis {
    z-index: 2;
}

.training-result {
    z-index: 2;
}