.ttb-dice-controls {
    margin: 20px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}

.ttb-dice-controls label {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ttb-dice-controls select,
.ttb-dice-controls input[type=\"number\"] {
    padding: 6px 10px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: 80px;
    text-align: center;
}

.ttb-dice-controls button {
    padding: 10px 15px;
    background-color: #4A90E2;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.ttb-dice-visuals {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 60px;
}

.ttb-die {
    width: 60px;
    height: 60px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    background: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.ttb-dice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    margin-bottom: 20px;
}

.ttb-die-history {
    width: 40px;
    height: 40px;
    font-size: 18px;
    border: 1px solid #aaa;
    box-shadow: none;
    background: #fff;
}

.ttb-dice-animated {
    animation: ttb-roll 0.6s ease;
}

@keyframes ttb-roll {
    0%   { transform: rotate(0deg) scale(1); }
    50%  { transform: rotate(180deg) scale(1.3); }
    100% { transform: rotate(360deg) scale(1); }
}

.ttb-dice-history {
    margin-top: 40px;
    text-align: center;
}

.ttb-dice-history h4 {
    margin-bottom: 10px;
}

#ttb-dice-history-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 90%;
    font-size: 15px;
    text-align: left;
}

/* Main container with dark border + subtle shadow */
.ttb-rng-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    border: 2px solid #333;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Title styling */
.ttb-rng-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* Controls section */
.ttb-dice-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 15px;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #fafafa;
}

.ttb-dice-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ttb-dice-controls select,
.ttb-dice-controls input[type="number"] {
    padding: 4px 6px;
    border: 1px solid #555;
    border-radius: 4px;
}

.ttb-dice-controls button {
    padding: 6px 12px;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.ttb-dice-controls button:hover {
    background: #222;
}

/* Dice visuals */
.ttb-dice-visuals {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #fff;
}

/* Roll history */
.ttb-dice-history {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #fafafa;
}

.ttb-dice-history h4 {
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.ttb-dice-history ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ttb-dice-history li {
    padding: 4px 0;
    border-bottom: 1px solid #ddd;
}
.ttb-dice-history li:last-child {
    border-bottom: none;
}
