/* General styling */
body {
    background-color: #f5f5f5;
}

/* Cards with shadow */
.card {
    margin-bottom: 1rem;
}
.card.shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important;
}

/* Table styling */
.table-responsive {
    margin-bottom: 1rem;
}

/* Verified/unverified styling for participant rows */
.participant-row.verified td {
    background-color: rgba(40, 167, 69, 0.05);
}
.participant-row.unverified td {
    background-color: rgba(220, 53, 69, 0.05);
}

/* Workflow steps */
.workflow-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.workflow-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #dee2e6;
    z-index: 0;
}

.workflow-step {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 50px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px;
    color: #6c757d;
    font-weight: bold;
}

.workflow-step.active .step-number {
    background-color: #0d6efd;
    color: white;
}

.step-label {
    font-size: 0.75rem;
    color: #6c757d;
}

.workflow-step.active .step-label {
    color: #0d6efd;
    font-weight: bold;
}

/* Group list item */
.group-item.active {
    background-color: #0d6efd;
    color: white;
}

.group-item.active small {
    color: rgba(255, 255, 255, 0.8);
}

/* Alerts */
.alert-info i, .alert-warning i, .alert-success i, .alert-danger i {
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Badges */
.badge {
    font-weight: normal;
    padding: 0.5em 0.75em;
}

/* Selected participants */
#selectedParticipantsList table {
    background-color: #fff;
}

/* Match result badges */
.badge[data-result="1-0"] {
    background-color: #28a745;
}
.badge[data-result="0-1"] {
    background-color: #dc3545;
}
.badge[data-result="0.5-0.5"] {
    background-color: #ffc107;
    color: #343a40;
}
.badge[data-result="0-0"] {
    background-color: #6c757d;
}
.badge[data-result="1R"], .badge[data-result="0R"], .badge[data-result="RR"] {
    background-color: #17a2b8;
}

/* Standings rotation */
.standings-row {
    transition: all 0.3s ease;
}

/* Print styles */
@media print {
    .btn, nav, footer, .card-header, .card-footer {
        display: none !important;
    }
    
    .card {
        border: none !important;
        box-shadow: none !important;
    }
    
    .card-body {
        padding: 0 !important;
    }
    
    body {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .workflow-step .step-label {
        display: none;
    }
    
    .workflow-steps::before {
        top: 15px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}
