/* Стили кнопок */
button {
    padding: 15px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

button:active {
    transform: scale(0.96);
}

/* Кнопки режимов */
.mode-toggle {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    justify-content: center;
}

.mode-btn {
    padding: 12px 24px;
    border: 2px solid #D4A574;
    background: #FFFFFF;
    color: #D4A574;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mode-btn.active {
    background: linear-gradient(135deg, #D4A574 0%, #C19A6B 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.3);
    transform: translateY(-2px);
}

.mode-btn:hover:not(.locked) {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.2);
}

.mode-btn.locked {
    opacity: 0.6;
    cursor: not-allowed;
    border-color: #E0E0E0;
    color: #999999;
}

.lock-badge {
    display: inline-block;
    margin-left: 5px;
    font-size: 12px;
}

/* Цифровые и операторные кнопки */
.btn-digit, .btn-operator {
    background: linear-gradient(135deg, #F5F1E8 0%, #EDEBE3 100%);
    color: #333333;
    font-weight: 700;
}

.btn-digit:hover, .btn-operator:hover {
    background: linear-gradient(135deg, #EDEBE3 0%, #E0DBCE 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Кнопка равно */
.btn-equals {
    background: linear-gradient(135deg, #D4A574 0%, #C19A6B 100%);
    color: #FFFFFF;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(193, 154, 107, 0.3);
}

.btn-equals:hover {
    background: linear-gradient(135deg, #C19A6B 0%, #B8956A 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(193, 154, 107, 0.4);
}

/* Кнопка очистки */
.btn-clear {
    background: linear-gradient(135deg, #F5F1E8 0%, #EDEBE3 100%);
    color: #333333;
    font-weight: 700;
}

.btn-clear:hover {
    background: linear-gradient(135deg, #EDEBE3 0%, #E0DBCE 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Специальные кнопки */
.btn-special {
    background: linear-gradient(135deg, #E8D4C0 0%, #DCC4B0 100%);
    color: #5C3D2E;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-special:hover {
    background: linear-gradient(135deg, #DCC4B0 0%, #D0B8A4 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Первичная кнопка */
.btn-primary {
    padding: 14px;
    background: linear-gradient(135deg, #D4A574 0%, #C19A6B 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 20px rgba(193, 154, 107, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #C19A6B 0%, #B8956A 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(193, 154, 107, 0.4);
}

/* Вторичная кнопка */
.btn-secondary {
    padding: 14px;
    background: linear-gradient(135deg, #E8E3D8 0%, #D8D3C8 100%);
    color: #333333;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #D8D3C8 0%, #C8C3B8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Сетка кнопок */
.buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.buttons.extended {
    grid-template-columns: repeat(5, 1fr);
}

.buttons.numeral {
    grid-template-columns: 1fr;
}

/* Выборочная кнопка плана */
.select-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #E8D4C0 0%, #DCC4B0 100%);
    color: #5C3D2E;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    margin-top: auto;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.select-btn:hover {
    background: linear-gradient(135deg, #DCC4B0 0%, #D0B8A4 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
