/* Custom styles for Cornhole League Games Generator */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: bold;
}

.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
}

.card-header {
    font-weight: bold;
}

/* Print-only elements (hidden on screen) */
.print-only {
    display: none;
}

/* Style for win/loss checkboxes */
.result-checkbox {
    border: 2px solid #000;
    width: 20px;
    height: 20px;
    display: inline-block;
    margin: 0 5px;
}

.result-label {
    font-weight: bold;
    margin-right: 10px;
}

.result-container {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

/* Print styles */
@media print {
    .navbar, .btn, footer, .alert, .partner-grid, .opponent-grid {
        display: none !important;
    }
    
    /* Hide screen view, show print view */
    .screen-view {
        display: none !important;
    }
    
    /* Hide the header text in print view */
    .header-text {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    /* Board container styling for print */
    .board-container {
        display: block !important;
        page-break-after: always;
        break-after: page;
        margin-bottom: 20px;
        border: 1px solid #ddd;
        padding: 15px;
        background-color: white;
    }
    
    /* Game container styling for print */
    .game-container {
        display: block !important;
        margin-bottom: 20px;
        border: 1px solid #ddd;
        padding: 15px;
        background-color: white;
    }
    
    /* Last game in a board should not have bottom margin */
    .game-container:last-child {
        margin-bottom: 0;
    }
    
    /* Hide the distribution grids when printing */
    .card.partner-distribution,
    .card.opponent-distribution {
        display: none !important;
    }
    
    body {
        padding: 0;
        margin: 0;
        background-color: white;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    /* Make print layout cleaner */
    h1, h2, h3 {
        margin-top: 0;
    }
    
    /* Print board info styling */
    .print-board-info {
        text-align: center;
        font-weight: bold;
        margin-bottom: 20px;
        font-size: 24px;
    }
    
    /* Print game info styling */
    .print-game-info {
        text-align: center;
        font-weight: bold;
        margin-bottom: 15px;
        font-size: 18px;
    }
    
    /* Ensure tables look good in print */
    .table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 0;
    }
    
    .table th, .table td {
        border: 1px solid #000;
        padding: 10px;
    }
}

/* Table styles */
.table th {
    background-color: #f0f0f0;
}

/* Form styles */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Bracket display */
.team {
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
}