h1,h2,h3,h4,h5,h6{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color:  #1775FF; /* tennis green */
}

.bgIndex{
    background-image: url("../images/pexels-gonchifacello-1432039.jpg");
    height: 100%;
    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover
}

.headerFront {
    position: relative;   /* Needed for the pseudo-element */
    margin: 0;
    padding: 0;
    width: 100%;
    z-index: 1;           /* Make sure content is above the background */
}

/* Pseudo-element for semi-transparent background */
.headerFront::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    opacity: 0.2;         /* Only affects the background */
    z-index: -1;           /* Behind the content */
}

/* Container centering */
.col-md-6.d-flex {
    min-height: 100vh; /* full screen height */
    background: url('tennis-court.jpg') no-repeat center center/cover; /* optional tennis background */
}

/* Card styling */
.card {
    background: rgba(255, 255, 255, 0.95); /* semi-transparent white */
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 30px 25px;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Card hover effect */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

/* Tabs */
.nav-tabs .nav-link {
    color: #2c7a2c; /* tennis green */
    font-weight: bold;
    border: none;
    border-radius: 10px 10px 0 0;
    margin-right: 5px;
    transition: background 0.3s, color 0.3s;
}

.nav-tabs .nav-link.active {
    background-color: #2c7a2c;
    color: white;
}

.nav-tabs .nav-link:hover {
    background-color: #3ba33b;
    color: white;
}

/* Form labels */
.form-label {
    font-weight: 500;
    color: #2c7a2c;
}

/* Inputs */
.form-control {
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 10px;
    transition: border 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    border-color: #2c7a2c;
    box-shadow: 0 0 5px rgba(44, 122, 44, 0.5);
}

/* Buttons */
.btn-primary {
    background-color: #2c7a2c;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover {
    background-color: #3ba33b;
    transform: translateY(-2px);
}

/* Links */
a {
    color: #2c7a2c;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #3ba33b;
    text-decoration: underline;
}

/* Alerts */
.alert-danger {
    border-radius: 8px;
    background-color: rgba(255, 0, 0, 0.1);
    color: #c00;
}

.alert-success {
    border-radius: 8px;
    background-color: rgba(0, 128, 0, 0.1);
    color: #2c7a2c;
    font-weight: bold;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .card {
        max-width: 100%;
        padding: 20px;
    }
}



#login-tab.nav-link.active{
	background-color:#D7510F;
	color:white;
	border:1px solid;
}

#login-tab.nav-link{
	background-color:#386641;
	color:white;
	border:none;
}
#register-tab.nav-link.active{
	background-color:#D7510F;
	color:white;
	border:1px solid;
}
#register-tab.nav-link{
	background-color:#386641;
	color:white;
	border:1px none;
}

#enter-tab.nav-link.active{
	background-color:white;
	color:black;
	border:1px solid;
	border-bottom:white;
}

#enter-tab.nav-link{
	background-color:#386641;
	color:white;
	border:none;
	border-bottom:white;
}
#decrease-tab.nav-link.active{
	background-color:white;
	color:black;
	border:1px solid;
	border-bottom:white;
}
#decrease-tab.nav-link{
	background-color:#386641;
	color:white;
	border:1px none;
	border-bottom:white;
}


.title{
	padding-bottom:4px;
	padding-top:4px;
	padding-left:4px;
	background-color:none;
	color: #1775FF;
	border-top: 3px solid white;
	border-bottom:3px solid white;
	margin-bottom:0px;
}

#mainMenu{
    background-color:#000000;
    border-right: 1px solid #ddd;
}

#mainMenu a{
    color:white;
}

#mainMenu a:hover{
	background-color:white;
    color:#1775FF;
	text-decoration: none;
	
}

.badge{
        border-radius: 999px;
}

.level-badge {
    color: white;
    background-color: black;
    padding: 3px 8px;
    font-size: 0.8rem;
}


td.level-blue,.level-badge.level-blue { background-color: #3498db; }
td.level-red,.level-badge.level-red { background-color: #e74c3c; }
td.level-orange,.level-badge.level-orange { background-color: #e67e22; }
td.level-green, .level-badge.level-green { background-color: #2ecc71; }
td.level-yellow,.level-badge.level-yellow { background-color: #f1c40f; color: black; }



.clickable-row {
    cursor: pointer;
}
.clickable-row:hover {
    background-color: #f0f0f0;
}

/* ── Mobile-first app shell ─────────────────────────────────────────── */
.rc-page {
    background: #f5f3ef;
    min-height: 100vh;
    padding: 1.25rem 1rem 5.5rem;
}

/* On desktop: geen bottom-nav padding, volledige breedte */
@media (min-width: 768px) {
    .rc-page {
        padding: 1.5rem 2rem;
    }
}

/* ── Bottom navigation ──────────────────────────────────────────────── */
.rc-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e0ddd6;
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
    z-index: 200;
}

.rc-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.68rem;
    color: #888;
    text-decoration: none;
    gap: 0.15rem;
    min-width: 60px;
}

.rc-bottom-nav a.active {
    color: #111;
    font-weight: 600;
}

.rc-bottom-nav a:hover {
    text-decoration: none;
    color: #111;
}

.rc-bottom-nav i {
    font-size: 1.35rem;
}

/* ── Page header (title + action button row) ────────────────────────── */
.rc-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.rc-page-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111 !important;
    margin: 0;
}

/* ── Stat grid (dashboard) ──────────────────────────────────────────── */
.rc-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.rc-stat-card {
    background: transparent;
    border: 1.5px solid #e8e6e2;
    border-radius: 12px;
    padding: 0.6rem 1rem 0.5rem;
}

.rc-stat-card .rc-stat-label {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 0.1rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.rc-stat-card .rc-stat-value {
    font-size: 1.35rem;
    font-weight: 600;
    color: #444;
    line-height: 1.2;
}

.rc-stat-card--alert {
    border-color: #f5c6c6;
}

.rc-stat-card--alert .rc-stat-label {
    color: #c0392b;
}

.rc-stat-card--alert .rc-stat-value {
    color: #c0392b;
}

/* ── Generic list card ──────────────────────────────────────────────── */
.rc-card {
    background: #fff;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    margin-bottom: 0.65rem;
    border: 1px solid #e8e6e0;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: box-shadow 0.15s;
}

.rc-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
}

.rc-card-title {
    font-weight: 600;
    font-size: 1rem;
    color: #111;
    margin-bottom: 0.15rem;
}

.rc-card-meta {
    font-size: 0.8rem;
    color: #888;
}

/* ── Section label ──────────────────────────────────────────────────── */
.rc-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 0.65rem;
    margin-top: 1.25rem;
}

/* ── Pill badges ────────────────────────────────────────────────────── */
.rc-pill {
    display: inline-block;
    border-radius: 20px;
    padding: 0.18rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.35rem;
    margin-top: 0.4rem;
}

.rc-pill-green  { background: #e6f4e6; color: #1e7a1e; }
.rc-pill-blue   { background: #cce0ff; color: #1a5fb4; }
.rc-pill-red    { background: #ffd6d6; color: #c0392b; }
.rc-pill-orange { background: #ffe8cc; color: #b35900; }
.rc-pill-yellow { background: #fff5cc; color: #7a6000; }
.rc-pill-grey   { background: #edece8; color: #555; }

/* ── Player avatar circle ───────────────────────────────────────────── */
.rc-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.rc-avatar-initials {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #1775FF;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ── Form page ──────────────────────────────────────────────────────── */
.rc-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    border: 1px solid #e8e6e0;
}

.rc-form-card .form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #555;
}

.rc-form-card .form-control,
.rc-form-card .form-select {
    border-radius: 10px;
    border: 1.5px solid #ddd;
    font-size: 0.95rem;
}

.rc-form-card .form-control:focus,
.rc-form-card .form-select:focus {
    border-color: #1775FF;
    box-shadow: 0 0 0 3px rgba(23,117,255,0.12);
}

.rc-btn-primary {
    background: #111;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: opacity 0.15s;
}

.rc-btn-primary:hover { opacity: 0.85; color: #fff; }

.rc-btn-secondary {
    background: #edece8;
    color: #333;
    border: none;
    border-radius: 10px;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.rc-btn-secondary:hover { background: #e0ddd8; color: #333; text-decoration: none; }

/* ── Back button ────────────────────────────────────────────────────── */
.rc-back {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: #555;
    text-decoration: none;
    margin-bottom: 1rem;
}

.rc-back:hover { color: #111; text-decoration: none; }

/* ── Level badge color helper ───────────────────────────────────────── */
.lvl-blue   { background: #cce0ff; color: #1a5fb4; }
.lvl-red    { background: #ffd6d6; color: #c0392b; }
.lvl-orange { background: #ffe8cc; color: #b35900; }
.lvl-green  { background: #d6f5d6; color: #1e7a1e; }
.lvl-yellow { background: #fff5cc; color: #7a6000; }


