.bbdc-calculator {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.bbdc-form {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.bbdc-form-group {
    margin-bottom: 15px;
}

.bbdc-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.bbdc-form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.bbdc-submit {
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.bbdc-submit:hover {
    background: #45a049;
}

.bbdc-results {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para la calculadora de placajes */
.bbdc-tackle-calculator {
    margin-top: 40px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 5px;
}

.bbdc-tackle-dice-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.bbdc-tackle-btn {
    flex: 1;
    padding: 10px;
    border: 2px solid #4CAF50;
    background: white;
    color: #4CAF50;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bbdc-tackle-btn:hover {
    background: #4CAF50;
    color: white;
}

.bbdc-tackle-btn.active {
    background: #4CAF50;
    color: white;
}

.bbdc-dice-faces {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.bbdc-face {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bbdc-face img {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

.bbdc-face-name {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.bbdc-face-prob {
    display: block;
    color: #4CAF50;
    font-size: 1.2em;
}

.bbdc-total-prob {
    text-align: center;
    font-size: 1.2em;
    padding: 15px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bbdc-total-prob span {
    color: #4CAF50;
    font-weight: bold;
}

/* Estilos para la tabla de probabilidades de bloqueo */
.bbdc-block-calculator {
    margin-top: 40px;
    padding: 25px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.bbdc-block-table-container {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.bbdc-block-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.bbdc-block-table th,
.bbdc-block-table td {
    padding: 14px 12px;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
}

.bbdc-block-table th {
    background: #3a7bd5;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.bbdc-block-table tr:last-child td {
    border-bottom: none;
}

.bbdc-block-table tr:hover {
    background: #f8f9fa;
}

.bbdc-block-result {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: left;
}

.bbdc-block-result img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.bbdc-block-result span {
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.bbdc-block-table td:nth-child(2),
.bbdc-block-table td:nth-child(3),
.bbdc-block-table td:nth-child(4),
.bbdc-block-table td:nth-child(5) {
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.bbdc-block-table tr:nth-child(5) td,
.bbdc-block-table tr:nth-child(6) td {
    background-color: #f8f9fa;
    font-weight: 600;
}

@media (max-width: 768px) {
    .bbdc-block-table th,
    .bbdc-block-table td {
        padding: 10px 8px;
        font-size: 0.9em;
    }
    
    .bbdc-block-result img {
        width: 30px;
        height: 30px;
    }
    
    .bbdc-block-result {
        flex-direction: column;
        gap: 5px;
    }
}

/* Contenedor principal */
.bbdc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Tarjetas */
.bbdc-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 25px;
    transition: transform 0.2s ease;
}

.bbdc-card:hover {
    transform: translateY(-2px);
}

/* Títulos */
.bbdc-title {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

.bbdc-subtitle {
    color: #34495e;
    font-size: 1.4em;
    margin: 20px 0;
    font-weight: 500;
}

/* Formulario */
.bbdc-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bbdc-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bbdc-form-group label {
    color: #34495e;
    font-weight: 500;
    font-size: 1.1em;
}

.bbdc-select {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.2s ease;
    background-color: #f8f9fa;
}

.bbdc-select:focus {
    border-color: #3498db;
    outline: none;
}

/* Checkbox personalizado */
.bbdc-checkbox-group {
    margin-top: 10px;
}

.bbdc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.bbdc-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Resultados */
.bbdc-results {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.bbdc-prob-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.bbdc-prob-item:last-child {
    border-bottom: none;
}

.bbdc-prob-label {
    color: #34495e;
    font-weight: 500;
}

.bbdc-prob-value {
    color: #2ecc71;
    font-weight: 600;
    font-size: 1.2em;
}

/* Calculadora de Bloqueo */
.bbdc-block-dice-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
}

.bbdc-block-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: #3498db;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bbdc-block-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.bbdc-block-btn.active {
    background: #2980b9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.bbdc-block-faces {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.bbdc-block-face {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.bbdc-block-face:hover {
    transform: translateY(-2px);
}

.bbdc-block-face img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.bbdc-block-face-name {
    color: #34495e;
    font-weight: 500;
    margin-bottom: 5px;
    text-align: center;
}

.bbdc-block-face-prob {
    color: #2ecc71;
    font-weight: 600;
    font-size: 1.2em;
}

.bbdc-block-total {
    text-align: center;
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.bbdc-block-total-label {
    color: #34495e;
    font-weight: 500;
    font-size: 1.2em;
    margin-right: 10px;
}

.bbdc-block-total-prob {
    color: #2ecc71;
    font-weight: 600;
    font-size: 1.4em;
}

/* Responsive */
@media (max-width: 768px) {
    .bbdc-container {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .bbdc-block-faces {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .bbdc-block-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bbdc-results {
    animation: fadeIn 0.3s ease-out;
}

.bbdc-block-face {
    animation: fadeIn 0.3s ease-out;
} 