body {
    font-family: system-ui, sans-serif;
    background: #f4f6f8;
    margin: 0;
    padding: 20px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 480px;
}

h2 { margin-top: 0; color: #333; }

.form-group {
    margin-bottom: 12px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
    color: #555;
    font-size: 14px;
}

input[type="text"], input[type="number"], select {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

input[readonly], input[disabled] {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

button {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    margin-top: 10px;
}

button:hover { background: #218838; }

.stop-btn {
    background: #dc3545;
    margin-top: 0;
    padding: 6px 12px;
    font-size: 13px;
    width: auto;
}

.stop-btn:hover { background: #c82333; }

.delete-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.2s;
}

.delete-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.mobile-btn {
    display: inline-block;
    background: #17a2b8;
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.mobile-btn:hover { background: #138496; }

.flash {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.bot-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
    background: #fafafa;
}

.tournament-title {
    color: #0056b3;
    font-weight: bold;
    font-size: 13px;
}

.match-details {
    margin-top: 6px;
    padding: 6px 8px;
    background: #eef4fc;
    border-left: 3px solid #007bff;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    background: #007bff;
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 6px;
}

.archive-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-options {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 12px;
    border-radius: 6px;
    margin-top: 8px;
    display: none;
}

.progress-container {
    display: none;
    width: 100%;
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 6px;
}

.progress-bar {
    width: 100%;
    height: 100%;
    background-color: #007bff;
    animation: indeterminate 1.5s infinite linear;
    transform-origin: 0% 50%;
}

@keyframes indeterminate {
    0% { transform: translateX(0) scaleX(0); }
    40% { transform: translateX(0) scaleX(0.4); }
    100% { transform: translateX(100%) scaleX(0.5); }
}

.status-loading-text {
    font-size: 12px;
    color: #0056b3;
    margin-top: 4px;
    display: none;
    font-weight: 500;
}

/* Accordéon par joueur */
.player-accordion summary::-webkit-details-marker {
    display: none;
}

.player-accordion summary {
    list-style: none;
}

.player-accordion[open] summary {
    background: #eef4fc;
    border-bottom: 1px solid #e0e0e0;
}

.player-accordion summary:hover {
    background: #f0f4f8;
}