/* Custom styles for Archery Scores app */

.score-cell {
    padding: 5px;
}

.shots {
    font-size: 0.9em;
    color: #666;
}

.end-total {
    font-size: 1.1em;
    margin-top: 2px;
}

.qr-code {
    max-width: 80px;
    height: auto;
}

/* Scoreboard table styling */
.scoreboard-table {
    table-layout: auto;
    width: 100%;
}

/* Let columns size naturally without fixed widths */

.archer-name {
    font-size: 1.1em; /* Match the end-total font size */
}

/* End cells will size naturally */

/* Responsive adjustments for smaller screens */
@media (max-width: 992px) {
    .scoreboard-table {
        font-size: 0.9em;
    }
}

.x-cell {
    color: #000 !important; /* Black text color */
}

.total-cell {
    font-weight: bold;
    font-size: 1.1em; /* Match the archer-name font size */
}

.total-cell h5 {
    font-weight: bold;
    font-size: 1.1em; /* Match the archer-name font size */
}

/* Mobile-friendly adjustments */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.8em;
    }
    
    .qr-code {
        max-width: 60px;
    }
    
    .score-cell {
        padding: 2px;
    }
    
    .scoreboard-table .rank-col {
        width: 40px;
    }
    
    .scoreboard-table .archer-col {
        width: 120px;
    }
    
    .scoreboard-table .end-col {
        width: 60px;
    }
    
    .scoreboard-table .x-col {
        width: 40px;
    }
    
    .scoreboard-table .total-col {
        width: 60px;
    }
    
    .archer-name {
        font-size: 1.2em; /* Slightly smaller increase on mobile */
    }
    
    .end-cell {
        width: 60px;
        min-width: 60px;
    }
}

/* Score entry form styling */
.shot-input {
    font-size: 1.2em;
    text-align: center;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1.2em;
}

/* Admin panel styling */
.list-group-item {
    border: 1px solid #dee2e6;
    margin-bottom: 2px;
}

.list-group-item-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
}

/* Navbar brand emoji */
.navbar-brand {
    font-size: 1.5em;
}

/* Scoreboard enhancements */
.table th {
    vertical-align: middle;
    text-align: center;
}

.table td {
    vertical-align: middle;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* QR Codes in corners */
.qr-codes-container {
    position: relative;
    pointer-events: none; /* Allow clicks to pass through */
}

.qr-codes-container > div {
    pointer-events: auto; /* Re-enable clicks on the actual elements */
}

.qr-code-corner {
    position: fixed;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    text-align: center;
}

.qr-code-corner img {
    max-width: 201px;  /* 50% bigger than 134px */
    height: auto;
    display: block;
    margin: 0 auto;
}

.qr-code-corner a {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.qr-code-corner a:hover {
    transform: scale(1.05);
    opacity: 0.9;
    text-decoration: none;
    color: inherit;
}

.qr-code-corner a:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.qr-top-left {
    top: 20px;
    left: 20px;
}

.qr-top-right {
    top: 20px;
    right: 20px;
}

.qr-bottom-left {
    bottom: 20px;
    left: 20px;
}

.qr-bottom-right {
    bottom: 20px;
    right: 20px;
}

.qr-label {
    font-size: 1.6em;  /* Twice as big as original 0.8em */
    color: #666;
    margin-top: 4px;
    font-weight: 500;
}

/* Mobile responsive adjustments for QR codes */
@media (max-width: 768px) {
    .qr-code-corner {
        padding: 6px;
    }
    
    .qr-code-corner img {
        max-width: 120px;  /* 50% bigger than 80px */
    }
    
    .qr-code-corner a:hover {
        transform: scale(1.03);  /* Smaller hover effect on mobile */
    }
    
    .qr-top-left, .qr-top-right {
        top: 10px;
    }
    
    .qr-bottom-left, .qr-bottom-right {
        bottom: 10px;
    }
    
    .qr-top-left, .qr-bottom-left {
        left: 10px;
    }
    
    .qr-top-right, .qr-bottom-right {
        right: 10px;
    }
    
    .qr-label {
        font-size: 1.4em;  /* Twice as big as original 0.7em */
    }
}

