/* General Styles */
body {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Card Styles */
.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
}

.card-img-top {
    height: 200px;
    object-fit: contain;
}

/* Tournament Card */
.tournament-card {
    height: 100%;
}

.tournament-card .card-body {
    display: flex;
    flex-direction: column;
}

/* Match Display */
.match-card {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.match-card img {
    max-height: 150px;
    object-fit: cover;
}

/* Form Styles */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Badge Styles */
.badge {
    font-size: 0.9em;
    padding: 0.5em 0.8em;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive Images */
.img-fluid {
    max-height: 300px;
    object-fit: contain;
}

/* Match Story */
.match-story {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.25rem;
    margin-top: 1rem;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Error States */
.error-message {
    color: #dc3545;
    padding: 0.5rem;
    margin: 0.5rem 0;
    border-radius: 0.25rem;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* Success States */
.success-message {
    color: #28a745;
    padding: 0.5rem;
    margin: 0.5rem 0;
    border-radius: 0.25rem;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

/* Tournament Card Styles */
.tournament-card {
    transition: transform 0.2s;
    margin-bottom: 1rem;
}

.tournament-card:hover {
    transform: translateY(-5px);
}

/* Bracket Styles */
.tournament-bracket {
    display: flex;
    justify-content: space-between;
    padding: 2rem;
    overflow-x: auto;
}

.bracket-round {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    min-width: 200px;
    margin: 0 1rem;
}

.match-card.winner {
    border-color: #28a745;
    background-color: #f8fff8;
}

/* Image Upload Styles */
.image-preview {
    max-width: 300px;
    max-height: 300px;
    object-fit: contain;
    margin: 1rem 0;
}

/* Status Badge Styles */
.status-badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Loading Animation */
.loading-spinner {
    width: 3rem;
    height: 3rem;
    margin: 2rem auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tournament-bracket {
        padding: 1rem;
    }
    
    .bracket-round {
        min-width: 150px;
    }
} 