:root {
    /* EXACT COLORS FROM YOUR SCORER APP */
    --pb-ball: #DDE255;       /* Neon Volt */
    --pb-blue-dark: #102E4A;  /* Deep Navy */
    --pb-blue-court: #2D6A9F; /* Court Surface Blue */
    --pb-clay: #E05036;       /* Clay Court Red */
    --pb-light: #F0F4F8;      /* Off-white */
    --pb-text-on-neon: #000000;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--pb-light);
    color: var(--pb-blue-dark);
}

/* TYPOGRAPHY */
h1, h2, h3, .brand-font {
    font-family: 'Teko', sans-serif;
    text-transform: uppercase;
}

/* ================= NAVBAR (FIXED SCOPE) ================= */
.navbar {
    background-color: var(--pb-blue-dark);
    padding: 1rem 0;
}
.navbar-brand {
    color: white !important;
    font-size: 2rem;
    letter-spacing: 1px;
}
.brand-accent {
    color: var(--pb-ball);
}

/* FIX: Added .navbar-nav before .nav-link to only affect the Top Menu */
.navbar-nav .nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}

/* FIX: Added .navbar-nav before .nav-link to only affect the Top Menu */
.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
    color: var(--pb-ball) !important;
}

.btn-nav-action {
    border: 2px solid var(--pb-ball);
    color: var(--pb-ball);
    font-weight: bold;
    border-radius: 8px;
    padding: 5px 20px;
}
.btn-nav-action:hover {
    background-color: var(--pb-ball);
    color: var(--pb-blue-dark);
}

/* ================= HERO SECTION ================= */
.hero-section {
    background: linear-gradient(135deg, var(--pb-blue-dark) 0%, var(--pb-blue-court) 100%);
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg-accent {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(221, 226, 85, 0.1);
    border-radius: 50%;
    filter: blur(50px);
}

.hero-title {
    font-size: 4.5rem;
    line-height: 0.9;
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 300;
    margin-bottom: 40px;
}

/* PRIMARY CTA BUTTON */
.btn-neon {
    background-color: var(--pb-ball);
    color: var(--pb-text-on-neon);
    font-family: 'Teko', sans-serif;
    font-size: 1.8rem;
    padding: 10px 40px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 0 #BFC442; 
    transition: transform 0.2s;
    text-transform: uppercase;
}
.btn-neon:hover {
    transform: translateY(-2px);
    background-color: #e6eb60;
    color: black;
}
.btn-neon:active {
    transform: translateY(2px);
    box-shadow: none;
}

/* FEATURES SECTION */
.feature-card {
    border: none;
    border-radius: 16px;
    background: white;
    padding: 30px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.feature-card:hover {
    transform: translateY(-5px);
}
.icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(45, 106, 159, 0.1);
    color: var(--pb-blue-court);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.coming-soon-badge {
    background-color: var(--pb-blue-dark);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 8px;
    text-transform: uppercase;
}

/* FOOTER */
footer {
    background-color: var(--pb-blue-dark);
    color: rgba(255,255,255,0.6);
    padding: 40px 0;
    font-size: 0.9rem;
}
footer a {
    color: white;
    text-decoration: none;
}
footer a:hover {
    color: var(--pb-ball);
}

/* ================= DASHBOARD STYLES ================= */

/* Match History Items */
.match-item {
    transition: background-color 0.2s;
    border-bottom: 1px solid #eee;
}
.match-item:last-child {
    border-bottom: none;
}
.match-item:hover {
    background-color: #f8f9fa;
}

/* Win/Loss Indicators */
.match-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 0.9rem;
}

/* Colors */
.indicator-win {
    background-color: #28a745; /* Green */
}
.indicator-loss {
    background-color: #dc3545; /* Red */
}

.indicator-cancel {
    background-color: #6c757d; /* Neutral Gray */
    color: white; /* Ensure text is readable */
}


/* ================= DASHBOARD SPECIFIC FIXES ================= */

/* 1. BRANDED TABS */
.nav-pills .nav-link {
    background-color: white;
    color: var(--pb-blue-court) !important; /* Court Blue for inactive */
    border: 2px solid #eef2f6;
    border-radius: 12px;
    padding: 10px 20px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}

.nav-pills .nav-link:hover {
    border-color: var(--pb-ball);
    color: var(--pb-blue-dark) !important;
    background-color: #ffffe0; /* Very light yellow tint */
}

.nav-pills .nav-link.active {
    background-color: var(--pb-blue-dark) !important;
    color: var(--pb-ball) !important;
    border-color: var(--pb-blue-dark);
    box-shadow: 0 4px 10px rgba(16, 46, 74, 0.2);
}

/* 2. MATCH HISTORY TEXT COLORS */
.text-ps-dark {
    color: var(--pb-blue-dark) !important;
}

/* For the "+24 PS" text - needs to be readable on white, so we use a darker green */
.text-ps-win {
    color: #306932; /* Darker green derived from your original css */
    font-weight: 800;
}

/* For the "-12 PS" text */
.text-ps-loss {
    color: var(--pb-clay);
    font-weight: 800;
}

/* 3. CHALLENGE CARD BUTTONS */
.btn-accept {
    background-color: var(--pb-ball);
    color: var(--pb-text-on-neon);
    font-weight: bold;
    border: none;
}
.btn-accept:hover {
    background-color: #cdd340;
}

.badge-pending {
    background-color: #fff3cd; /* Light yellow background */
    color: #856404;            /* Dark yellow text */
    border: 1px solid #ffeeba;
}

.badge-notification {
    background-color: var(--pb-clay) !important;
    border: 2px solid white;
}

/* ================= ACTION ALERT (Confirm Match) ================= */

.alert-action {
    background-color: white;
    border: none; /* Reset standard border */
    border-left: 6px solid var(--pb-ball); /* The Neon Accent */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 20px;
}

.alert-title {
    color: var(--pb-blue-dark);
    font-family: 'Teko', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    line-height: 1;
}

/* Custom Buttons for this Alert */
.btn-alert-confirm {
    background-color: var(--pb-ball);
    color: var(--pb-blue-dark);
    font-weight: 800;
    border: none;
    padding: 8px 20px;
    transition: transform 0.2s;
}
.btn-alert-confirm:hover {
    background-color: #cdd340; /* Slightly darker neon */
    transform: translateY(-2px);
}

.btn-alert-dispute {
    background-color: transparent;
    color: var(--pb-clay); /* Your Clay Red */
    border: 2px solid var(--pb-clay);
    font-weight: 700;
    padding: 6px 18px;
}
.btn-alert-dispute:hover {
    background-color: var(--pb-clay);
    color: white;
}

/* Provisional Rating Badge */
.badge-provisional {
    background-color: var(--pb-blue-dark); /* Deep Navy */
    color: var(--pb-ball);                 /* Neon Text */
    border: 1px solid var(--pb-blue-dark);
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(16, 46, 74, 0.15); /* Soft shadow for depth */
}

/* 1. Force the Browser Context to Light Mode */
.force-light-mode {
    color-scheme: light only !important; /* Forces Light Mode rendering context */
    background-color: #ffffff !important;
}

/* 2. Style the Google Component Host */
gmp-place-autocomplete {
    /* 1. Kill the Border using Google's Tokens */
    --gmpx-color-surface: transparent; 
    --gmpx-color-on-surface: #102E4A;
    --gmpx-color-outline: transparent; /* This is the Border Color */
    --gmpx-color-outline-variant: transparent;
    
    /* 2. Standard Overrides */
    border: none !important;
    box-shadow: none !important;
    
    /* 3. Force Dimensions */
    width: 100%;
    height: 100%;
}

/* Ensure the internal input removes its own browser defaults */
gmp-place-autocomplete::part(input) {
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 0;
    color: #102E4A !important;
    font-weight: bold;
}
/* 4. Fix the Placeholder Text */
gmp-place-autocomplete::part(input)::placeholder {
    color: #6c757d !important;
    opacity: 1;
}

/* Custom Dashed Border for Empty Slots */
.border-dashed {
    border-style: dashed !important;
    border-width: 2px !important;
    background-color: #f8f9fa;
}
.border-dashed:hover {
    background-color: #e9ecef;
    border-color: var(--pb-blue-court) !important;
    color: var(--pb-blue-court);
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}


/* ================= UTILITIES ================= */

/* Rotation utility for the "Coming Soon" badge */
.rotate-12 {
    transform: rotate(12deg);
}

/* Fix for the blurred table text to look like "redacted" blocks */
.text-transparent {
    color: transparent !important;
}

/* Animation for the floating elements on Landing Page */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Smooth fade in for alerts */
.fade.show {
    transition: opacity 0.3s ease-in-out;
}