/* Tournaments Styles */

/* Text colors for dark theme */
#tournaments-dashboard,
#tournaments-list,
#tournament-form,
#tournament-detail {
    color: #f8f9fa;
}

#tournaments-dashboard .card,
#tournaments-list .card,
#tournament-form .card,
#tournament-detail .card {
    background-color: #212529;
    border-color: #495057;
    color: #f8f9fa;
}

#tournaments-dashboard .card-body,
#tournaments-list .card-body,
#tournament-form .card-body,
#tournament-detail .card-body {
    color: #f8f9fa;
}

#tournaments-dashboard .card-body h2,
#tournaments-list .card-body h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #f8f9fa;
}

#tournaments-dashboard .card-body h5,
#tournament-detail .card-body h5,
#tournament-detail .card-title {
    color: #f8f9fa;
}

#tournaments-dashboard .text-muted,
#tournaments-list .text-muted,
#tournament-detail .text-muted {
    color: #adb5bd !important;
}

#tournaments-list .table-responsive {
    max-height: 70vh;
    overflow-y: auto;
}

#tournament-form .form-label {
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #f8f9fa;
}

#tournament-form .form-control,
#tournament-form .form-select {
    background-color: #343a40;
    border-color: #495057;
    color: #f8f9fa;
}

#tournament-form .form-control:focus,
#tournament-form .form-select:focus {
    background-color: #343a40;
    border-color: #0d6efd;
    color: #f8f9fa;
}

#tournament-form .form-control::placeholder {
    color: #6c757d;
}

/* Tournament list filters placeholder visibility */
#tournaments-list .form-control::placeholder,
#tournaments-list .form-control-sm::placeholder,
#tournaments-list .form-select::placeholder,
#tournaments-list .form-select-sm::placeholder {
    color: #6c757d !important;
}

#tournament-detail .card-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Tables */
.table {
    color: #f8f9fa;
}

.table thead th {
    color: #f8f9fa;
    border-color: #495057;
}

.table tbody td {
    color: #f8f9fa;
    border-color: #495057;
}

/* Toast container */
#toast-container {
    z-index: 9999;
}

/* Spinner centers */
.spinner-border {
    margin: 2rem auto;
    display: block;
}

/* Table hover effects */
.table-dark tbody tr:hover {
    background-color: #3a3f44;
}

/* Badge adjustments */
.badge {
    font-size: 0.75rem;
    padding: 0.25em 0.6em;
}

/* Form validation */
.form-control:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

.form-control:valid:not(:placeholder-shown) {
    border-color: #198754;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #tournaments-dashboard .card-body h2,
    #tournaments-list h2 {
        font-size: 1.5rem;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
    }
}
