body {
    font-family: sans-serif;
    text-align: center;
    background: #111;
    color: #fff;
}

.container {
    margin-top: 20%;
}

#pin-display {
    font-size: 32px;
    letter-spacing: 10px;
    margin: 20px;
}

.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 80%;
    margin: auto;
}

.keypad button {
    padding: 20px;
    font-size: 24px;
    border-radius: 10px;
    border: none;
    background: #333;
    color: white;
}

.open {
    background: #28a745;
    color: white;
}

button {
    width: 80%;
    padding: 20px;
    font-size: 24px;
    margin: 10px;
    border: none;
    border-radius: 10px;
}

.pin {
    background: #444;
    color: white;
}

.success {
    color: #28a745;
}

#pin-display {
    font-size: 32px;
    letter-spacing: 10px;
    margin: 20px;
}

.pin-active {
    color: #ffffff;
    font-weight: bold;
}

.pin-empty {
    color: #555; /* nezadáno (tlumené) */
}

#ok-button {
    background: #555;
    color: #999;
}

#ok-button.enabled {
    background: #28a745;
    color: white;
}

.keypad button {
    transition: all 0.1s ease;
}

.keypad button:active {
    background: #28a745;
    transform: scale(0.92);
}

/* JS-triggered efekt */
.keypad button.pressed {
    background: #28a745;
    transform: scale(0.95);
}

/* ripple container */
.keypad button {
    position: relative;
    overflow: hidden;
}

/* ripple element */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(255, 255, 255, 0.4);
    animation: ripple-animation 0.4s linear;
}

/* Animace pri uspechu */
@keyframes success-pulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

.success-active {
    animation: success-pulse 1.5s infinite;
}
