/* Styles extraits de tous les templates */

/* monster_detail.html */
.badge {
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
}
dt {
    font-weight: 600;
}
.card-header h5 {
    margin: 0;
}
.text-primary { color: #0d6efd !important; }
.text-warning { color: #fd7e14 !important; }
.text-danger { color: #dc3545 !important; }
.markdown-content {
    line-height: 1.6;
}
.markdown-content strong {
    font-weight: bold;
    color: #2c3e50;
}
.markdown-content em {
    font-style: italic;
    color: #34495e;
}
.markdown-content ul, .markdown-content ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}
.markdown-content p {
    margin-bottom: 0.5rem;
}
.markdown-content p:last-child {
    margin-bottom: 0;
}
.dice-notation {
    font-family: 'Courier New', monospace;
    background-color: #f8f9fa;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
    color: #e74c3c;
}
.dice-clickable-notation {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.dice-clickable-notation:hover {
    background-color: #e74c3c;
    color: white;
    transform: scale(1.1);
    border: 1px solid #e74c3c;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* monsters_list.html */
.monster-card {
    transition: transform 0.2s;
}
.monster-card:hover {
    transform: translateY(-2px);
}
.monster-info {
    font-size: 0.9rem;
}

/* dice_roller.html */
.dice-container {
    max-width: 800px;
    margin: 0 auto;
}
.dice-selector {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}
.dice-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
    margin: 20px 0;
}
.dice-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px 10px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.dice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
.dice-btn.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    transform: scale(1.05);
}
.controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.control-group {
    display: flex;
    flex-direction: column;
}
.control-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #2c3e50;
}
.control-group input,
.control-group select {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}
.control-group input:focus,
.control-group select:focus {
    outline: none;
    border-color: #667eea;
}
.roll-btn {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    font-size: 1.3em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin: 20px auto;
    display: block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.roll-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
.roll-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}
.results {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 30px;
    display: none;
}
.result-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}
.result-notation {
    font-size: 1.5em;
    color: #2c3e50;
    font-weight: bold;
}
.result-total {
    font-size: 3em;
    font-weight: bold;
    color: #e74c3c;
    margin: 20px 0;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
.individual-rolls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}
.roll-die {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 15px;
    font-size: 1.2em;
    font-weight: bold;
    min-width: 50px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: rollAnimation 0.5s ease-out;
}
.roll-die.critical {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    transform: scale(1.1);
}
.roll-die.fumble {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
}
@keyframes rollAnimation {
    0% { transform: rotate(0deg) scale(0.5); opacity: 0; }
    50% { transform: rotate(180deg) scale(1.2); opacity: 0.8; }
    100% { transform: rotate(360deg) scale(1); opacity: 1; }
}
.modifier-display {
    text-align: center;
    margin: 15px 0;
    font-size: 1.2em;
    color: #7f8c8d;
}
.history {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 30px;
    max-height: 400px;
    overflow-y: auto;
}
.history-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.history-item:last-child {
    border-bottom: none;
}
.history-notation {
    font-weight: bold;
    color: #2c3e50;
}
.history-result {
    font-size: 1.2em;
    font-weight: bold;
    color: #e74c3c;
}
.clear-history {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    cursor: pointer;
    float: right;
    margin-bottom: 15px;
}
.error-message {
    background: #e74c3c;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    text-align: center;
    display: none;
}

/* session_detail.html */
.container {
    /*max-width: 800px;*/
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
}
.session-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}
.session-title {
    font-size: 2em;
    color: #2c3e50;
    margin: 0;
}
.session-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.info-card {
    background-color: #ecf0f1;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}
.info-label {
    font-weight: bold;
    color: #34495e;
    margin-bottom: 5px;
}
.info-value {
    color: #2c3e50;
}
.status-on {
    color: #27ae60;
    font-weight: bold;
}
.status-off {
    color: #e74c3c;
    font-weight: bold;
}
.characters-section {
    margin-top: 30px;
}
.section-title {
    font-size: 1.5em;
    color: #2c3e50;
    margin-bottom: 15px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}
.character-card {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
}
.character-name {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1em;
}
.player-name {
    color: #7f8c8d;
    font-style: italic;
    margin-top: 5px;
}
.back-button {
    display: inline-block;
    background-color: #95a5a6;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 20px;
    transition: background-color 0.3s;
}
.back-button:hover {
    background-color: #7f8c8d;
    color: white;
    text-decoration: none;
}
.session-controls {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}
.control-button {
    display: inline-block;
    padding: 12px 25px;
    margin: 0 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}
.end-session {
    background-color: #e74c3c;
    color: white;
}
.end-session:hover {
    background-color: #c0392b;
    color: white;
    text-decoration: none;
}
.add-fight {
    background-color: #f39c12;
    color: white;
}
.add-fight:hover {
    background-color: #e67e22;
    color: white;
    text-decoration: none;
}
.active-turn {
    background-color: #ffe082 !important;
    border: 2px solid #ff9800 !important;
    font-weight: bold;
    box-shadow: 0 0 8px #ff980033;
    transition: background 0.2s, border 0.2s;
}

