/* Modern Scorer Design System */

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.btn {
    border-radius: 10px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.premium-card {
    border: none;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

/* Custom Table Styling */
.table {
    border-collapse: separate;
    border-spacing: 0 8px;
}

.table tr {
    transition: transform 0.2s ease;
}

.table tbody tr {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.table tbody tr:hover {
    background: #f8fafc !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.table td, .table th {
    border: none;
    padding: 1rem !important;
}

.table tr td:first-child { border-radius: 12px 0 0 12px; }
.table tr td:last-child { border-radius: 0 12px 12px 0; }

/* Hand Grid Styling */
.tile-input {
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 0.9rem !important;
    background-color: white !important;
    transition: all 0.2s ease !important;
}

.tile-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
}

.badge {
    padding: 0.5em 0.8em;
    border-radius: 6px;
    font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* No-tile Styling */
.tile-input-no-tile {
    background-color: #f1f5f9 !important;
    color: #94a3b8 !important;
    border-color: #e2e8f0 !important;
}

/* Visual Grid Styling */
.visual-tile-container {
    width: 100%;
    aspect-ratio: 3/4;
    background: #e2e8f0; /* Slightly darker to make white tiles pop */
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
}

.visual-tile-container:hover {
    border-color: var(--primary);
    background: #d1d5db;
    transform: translateY(-2px);
}

.visual-tile-img {
    width: 65%; /* Even smaller as requested */
    height: 65%;
    object-fit: contain;
    background: white;
    border: 3.5px solid white; /* Thicker border */
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15); /* Slightly more shadow for the chunkier tile */
}

.visual-tile-no-tile {
    opacity: 0.3;
}

/* Scorecard Highlights */
.hand-winner-cell {
    box-shadow: inset 0 0 0 2px #10b981 !important; /* Green border for the WINNER of the hand */
}

.hand-dealer-cell {
    background-color: rgba(37, 99, 235, 0.08) !important; /* Blue background for the DEALER (East) */
}

/* Wind Highlights */
.wind-match-round {
    background-color: #fef08a !important; /* Light Yellow */
    color: #854d0e !important;
    opacity: 1 !important;
    border: 1px solid #fde047;
}

.wind-match-hand {
    background-color: #dbeafe !important; /* Light Blue */
    color: #1e40af !important;
    opacity: 1 !important;
    border: 1px solid #bfdbfe;
}

.wind-match-both {
    background-color: #dcfce7 !important; /* Light Green */
    color: #166534 !important;
    opacity: 1 !important;
    border: 2px solid #22c55e !important; /* Solid Green border */
}
