@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-red: #e04444; /* Adjust as needed for the exact red */
    --dark-grey-bg: rgba(0, 0, 0, 0.7); /* Translucent dark background for card */
    --input-bg: rgba(255, 255, 255, 0.1); /* Translucent background for inputs */
    --text-color-light: #f0f0f0;
    --text-color-muted: #a0a0a0; /* Bootstrap's text-muted color equivalent */
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #1a1a1a; /* Fallback */
    position: relative;
    overflow-x: hidden; /* Prevent horizontal scroll */
	font-size: 15px; /* 16px * 0.85 = 13.6px */
}

/* Background Image and Overlay */
.background-image {
    position: fixed; /* Use fixed for full viewport coverage */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/bg-image.jpg'); /* REPLACE THIS WITH YOUR IMAGE URL */
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.background-overlay {
    position: fixed; /* Use fixed for full viewport coverage */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* Dark overlay */
    z-index: -1;
}

/* Top Bar Styling (using Bootstrap classes for spacing, but custom for color/font) */
.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.left-logo span {
    font-size: 0.9em;
    font-weight: 500;
}

.left-logo img{
	width:100px;
}

.right-logo img{
	width:120px;
}

/* Style for the back navigation button */
.back-navigation-btn {
    font-size: 1.2rem; /* Make arrow visible */
    padding: 5px; /* Add some padding around the icon */
    border-radius: 5px; /* Subtle rounding */
    transition: background-color 0.2s ease;
	text-decoration:none !important;
}

.back-navigation-btn:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Light hover effect */
    color: var(--primary-red) !important; /* Optional: change arrow color on hover */
}

.header-logo img{
	width:80px;
}
.login-container{
	min-height: 88vh !important;
}
/* Login Card Customization */
.login-card {
    background-color: var(--dark-grey-bg);
    border: 1px solid var(--primary-red);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    max-width: 450px; /* Max-width similar to previous example */
    width: 100%; /* Ensure it takes full width up to max-width */
}

.login-card .text-white { /* Apply to h2 login title */
    color: var(--text-color-light) !important; /* Override Bootstrap's text-white to ensure custom light */
}
.center-header-logo{
	position: absolute;
    height: 90px;
	top:65px;
	left: 50%;
    transform: translate(-50%, -10%);
	z-index:1;
}
.role-selection {
	width: 160px;
    margin-left: 54%;
}
.role-selection .text-muted {
    color: var(--text-color-muted) !important;
}

/* Custom Dropdown for Role */
.custom-dropdown {
    background-color: var(--input-bg);
    border: none;
    color: var(--text-color-light);
    padding-right: 2.5rem; /* Space for custom arrow */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23a0a0a0%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13.2-6.5h-258a17.6%2017.6%200%200%200-13.2%206.5%2017.6%2017.6%200%200%200-3.3%2018.5l129.2%20228.4a17.6%2017.6%200%200%200%2016.5%200l129.2-228.4a17.6%2017.6%200%200%200-3.3-18.5z%22%2F%3E%3C%2Fsvg%3E') !important; /* Custom arrow */
    background-repeat: no-repeat;
    background-position: right 0.75rem center; /* Adjust position based on Bootstrap's default */
    background-size: 12px;
}

.custom-dropdown option {
    background-color: #2c2c2c;
    color: var(--text-color-light);
}


/* Input Group Customization */
.input-group-custom {
    position: relative;
    width: 100%;
}

.input-group-custom .icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color-muted);
    font-size: 1.1em;
    z-index: 2; /* Ensure icon is above input */
}

.custom-input {
    background-color: var(--input-bg);
    border: none;
    color: var(--text-color-light);
    padding-left: 3.2rem; /* Make space for the icon */
    padding-top: 0.9rem; /* Adjust padding for better visual */
    padding-bottom: 0.9rem;
}

.custom-input::placeholder {
    color: var(--text-color-muted);
    opacity: 0.8; /* Slightly less opaque placeholder */
}

.custom-input:focus {
    background-color: var(--input-bg); /* Keep background same on focus */
    color: var(--text-color-light);
    border-color: rgba(255, 255, 255, 0.2); /* Slight border on focus */
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1); /* Subtle shadow */
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color-muted);
    cursor: pointer;
    font-size: 1.1em;
    z-index: 2;
}

/* Custom Checkbox */
.custom-checkbox .form-check-input {
    background-color: transparent;
    border: 1px solid var(--text-color-muted);
    border-radius: 3px;
    width: 1.1em; /* Adjust size if needed */
    height: 1.1em; /* Adjust size if needed */
    margin-top: 0.2em; /* Align with text */
    cursor: pointer;
}

.custom-checkbox .form-check-input:checked {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e"); /* Custom checkmark SVG */
}

.custom-checkbox .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-danger-rgb), .25); /* Use Bootstrap's danger color shadow */
}

.forgot-password-link {
    color: var(--text-color-muted) !important;
}

.forgot-password-link:hover {
    color: var(--primary-red) !important;
}

/* Sign In Button */
.custom-signin-button {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    font-size: 1.1em;
}

.custom-signin-button:hover {
    background-color: #c03939; /* Slightly darker red on hover */
    border-color: #c03939;
}

/* Footer Styling */
footer {
    color: var(--text-color-muted) !important;
    font-size: 0.8em;
    z-index: 5;
}

/* Responsive Adjustments */
@media (max-width: 576px) { /* Small devices (landscape phones, less than 576px) */
    .back-navigation-btn {
        font-size: 1rem; /* Smaller arrow on mobile */
        margin-right: 0.5rem !important; /* Reduce margin */
    }
    .header-logo {
        margin-left: 0.5rem !important; /* Reduce margin */
    }
    .header-title h4 {
        font-size: 0.9rem; /* Smaller title on very small screens */
    }
	.login-card {
        padding: 30px 25px;
        margin-top: 70px; /* Adjust if top-bar overlaps */
    }

    .login-card h2 {
        font-size: 1.5em;
        margin-bottom: 25px !important;
    }

    .input-group-custom .icon,
    .toggle-password {
        font-size: 1em;
        left: 0.8rem;
        right: 0.8rem;
    }

    .custom-input {
        padding-left: 2.8rem;
    }

    .role-selection {
        top: 15px; /* Adjust for smaller screens */
        right: 15px;
        font-size: 0.8em;
    }

    .role-selection span {
        display: none !important; /* Hide "Role" text on small screens */
    }

    .left-logo img {
        width: 48px;
    }

    .right-logo img {
        width: 60px;
    }
}



/* Header specific styles for players.html */
.top-bar.fixed {
    /* These properties should already be in style.css for fixed header */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Styles for the hamburger menu button */
.hamburger-menu {
    border: none;
    background-color: transparent;
    padding: 0;
    width: 30px; /* Width of the entire icon */
    height: 25px; /* Height of the entire icon */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.3s ease;
    outline: none; /* Remove focus outline */
}

.hamburger-menu:focus {
    box-shadow: none; /* Remove Bootstrap's default focus shadow */
}

.hamburger-icon-bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color-light); /* White bars */
    border-radius: 2px;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Styles for the Font Awesome icon itself */
.hamburger-icon {
    font-size: 1.5rem; /* Adjust icon size */
    color: var(--text-color-light); /* White color for the icon */
    transition: transform 0.3s ease-in-out; /* Smooth transition for rotation */
}

/* Animation for the Font Awesome icon */
.hamburger-menu:not(.collapsed) .hamburger-icon {
    transform: rotate(90deg); /* Rotate the bars icon when open */
    /* For a true X, we'd swap icons with JS, but rotation gives an animation */
    /* If you want to literally change to fa-times, you'll need JS */
}

/* Custom Offcanvas styling */
.custom-offcanvas {
    background-color: rgba(0, 0, 0, 0.9); /* Darker, slightly opaque background */
    color: var(--text-color-light);
    width: 250px; /* Adjust width as needed */
}

.custom-offcanvas .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
    flex-direction: column; /* Stacks title and subtitle vertically */
    align-items: flex-start; /* Aligns content to the left */
    position: relative;
    padding-bottom: 15px; /* Add padding to the header bottom */
}

.custom-offcanvas .btn-close {
    filter: invert(1); /* Makes Bootstrap's close button white */
	position: absolute;
    top: 15px; /* Adjust as needed */
    right: 15px; /* Adjust as needed */
    margin: 0; /* Remove default margin */
}

.custom-offcanvas .nav-link {
    color: var(--text-color-muted); /* Link color */
    padding: 10px 15px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.custom-offcanvas .nav-link:hover{
    background-color: var(--primary-red); /* Red background on hover/active */
    color: var(--text-color-light); /* White text on hover/active */
    border-radius: 5px;
}

.custom-offcanvas .nav-link.active {
    color: var(--text-color-light); /* White text on hover/active */
    border-radius: 0px;
	border-bottom: 2px solid var(--primary-red);
}

.custom-offcanvas .offcanvas-subtitle {
    font-size: 0.7em;
    color: var(--text-color-muted) !important;
    margin-top: 5px; /* Space from main title */
    margin-bottom: 0;
    margin-left: 0 !important; /* Ensure it's left-aligned and not pushed by any Bootstrap margin utilities */
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.2; /* Adjust line height for better stacking */
}

/* NEW: Styles for the sub-header in the hamburger menu */
.custom-offcanvas .nav-subheader {
    font-size: 0.8em; /* Smaller font than links */
    font-weight: 600; /* Bolder */
    color: var(--text-color-muted) !important; /* Muted color */
    padding: 8px 15px; /* Similar padding to links, or adjusted */
    text-transform: uppercase; /* Optional: make it uppercase */
    letter-spacing: 0.05em; /* Optional: add letter spacing */
    pointer-events: none; /* Make it non-clickable */
    cursor: default; /* Change cursor to default */
	border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

/* Adjust content wrapper padding to prevent header overlap */
.content-wrapper {
    margin-top: -80px; /* Match header height */
    padding-bottom: 50px; /* Add some space above footer */
    flex-grow: 1; /* Allow content to push footer down */
	position:relative;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .header-logo img {
        width: 60px; /* Smaller logo on small screens */
    }
    .hamburger-menu {
        width: 25px;
        height: 20px;
    }
    .content-wrapper {
		margin-top: 0px !important;
    }
	.hamburger-icon {
        font-size: 1.2rem;
    }
}

/* Inherits common styles from style.css */

/* Preloader styles (unchanged) */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1s ease-out;
    overflow: hidden;
}

.preloader-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.preloader-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.skip-intro-btn {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-color-light);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 500;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    z-index: 10000;
}

.skip-intro-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--text-color-light);
}


/* Main Landing Page Content styles */
.main-content-wrapper {
    min-height: 100vh;
    background-color: #000; /* Solid black background for content */
    display: flex;
    flex-direction: column; /* Stack header and body vertically */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* NEW LANDING PAGE SPECIFIC HEADER */
.landing-header-nav {
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent dark background */
    padding: 1rem 2rem; /* Add padding */
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 100; /* Ensure it's above body content */
}

.landing-logo-img {
    height: 35px; /* Adjust logo size */
    width: auto;
}

.landing-portal-title {
    /* Styles for "DISTRICT FOOTBALL SCOUTING PORTAL" in header */
    color: var(--text-color-light);
    font-size: 0.9em; /* Smaller than main DUNYA title */
    font-weight: 500;
    line-height: 1.2;
    /* mx-auto from Bootstrap should center it */
}

.navbar-nav-container ul { /* Target the ul for flex properties */
    display: flex;
    align-items: center;
    list-style: none; /* Remove bullet points */
    margin: 0;
    padding: 0;
}

.landing-nav-link {
    color: var(--text-color-light) !important; /* White links */
    font-weight: 500;
    padding: 0.5rem 1rem !important; /* Adjust padding */
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 5px; /* Subtle rounding */
}

.landing-nav-link:hover,
.landing-nav-link.active {
    color: var(--primary-red) !important; /* Red on hover/active */
    background-color: rgba(255, 255, 255, 0.05); /* Very subtle background */
}

.landing-nav-link.login-highlight {
    color: var(--primary-red) !important; /* Highlight Login link */
    border: 1px solid var(--primary-red);
    padding: 0.5rem 1.2rem !important;
    margin-left: 1rem; /* Space from other links */
}

.landing-nav-link.login-highlight:hover {
    background-color: var(--primary-red);
    color: var(--text-color-light) !important;
}


/* MAIN BODY CONTENT SECTION */
.landing-body-content {
    flex-grow: 1; /* Make this section take remaining vertical space */
    padding: 5rem 2rem; /* Top/bottom padding for content, side padding */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    min-height: calc(100vh - 70px); /* Adjust based on header height (approx 70px) */
    color: var(--text-color-light); /* Ensure all text is light */
}

.landing-body-content h1 {
    font-size: 4.5rem; /* Large font for "DUNYA FOOTBALL" */
    letter-spacing: 0.08em; /* Subtle letter spacing */
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2); /* Subtle glow */
    line-height: 1.1;
}

.landing-body-content p.lead {
    font-size: 1.4rem; /* Subtitle size */
    font-weight: 300;
    letter-spacing: 0.03em;
    max-width: 700px; /* Max width for readability */
    margin-bottom: 4rem !important; /* More space before placeholders */
}

/* Media Placeholder Styling */
.media-placeholders-container {
    padding-top: 2rem; /* Space from above content */
    padding-bottom: 2rem;
}

.media-placeholder {
    background-color: rgba(255, 255, 255, 0.05); /* Transparent background */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border */
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 250px; /* Minimum height for placeholders */
    position: relative;
    overflow: hidden; /* Hide overflow for placeholder image */
}

.media-placeholder i {
    color: var(--primary-red) !important; /* Icon color */
    margin-bottom: 1rem;
}

.media-placeholder p {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color-muted);
}

.media-placeholder .placeholder-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Make placeholder image subtle */
    z-index: 0;
}

.media-placeholder i, .media-placeholder p {
    position: relative; /* Ensure text/icon are above placeholder image */
    z-index: 1;
}
.navbar-brand .logo-text{position:absolute;bottom:12px;font-size: 12px;}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .landing-body-content h1 {
        font-size: 3.5rem;
    }
    .landing-body-content p.lead {
        font-size: 1.2rem;
    }
    .landing-header-nav {
        padding: 0.8rem 1rem;
    }
    .landing-portal-title {
        font-size: 0.8em;
    }
    .landing-logo-img {
        height: 30px;
    }
    .landing-nav-link {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.9em;
    }
    .landing-nav-link.login-highlight {
        padding: 0.4rem 1rem !important;
    }
    .media-placeholder {
        padding: 1.5rem;
        min-height: 200px;
    }
    .media-placeholder i {
        font-size: 2.5rem;
    }
    .media-placeholder p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .landing-body-content h1 {
        font-size: 2.8rem;
    }
    .landing-body-content p.lead {
        font-size: 1rem;
        margin-bottom: 3rem !important;
    }
    /* Hide portal title for smaller screens */
    .landing-portal-title {
        display: none !important;
    }
    /* Simple mobile nav (no collapse, just direct hidden for this example) */
    .landing-header-nav .navbar-nav-container {
        display: none; /* Hide nav links on smaller screens */
    }
    .landing-header-nav .container-fluid {
        justify-content: center; /* Center logo if nav hidden */
    }
    .landing-logo-img {
        height: 28px;
    }
    .media-placeholder {
        min-height: 180px;
    }
}

@media (max-width: 576px) {
    .landing-body-content h1 {
        font-size: 2.2rem;
        letter-spacing: 0.05em;
    }
    .landing-body-content p.lead {
        font-size: 0.9rem;
        padding: 0 10px;
        margin-bottom: 2rem !important;
    }
    .landing-header-nav {
        padding: 0.5rem 1rem;
    }
    .landing-logo-img {
        height: 25px;
    }
    .media-placeholder {
        min-height: 150px;
        padding: 1rem;
    }
    .media-placeholder i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    .media-placeholder p {
        font-size: 0.9rem;
    }
    .skip-intro-btn {
        font-size: 0.8em;
        padding: 6px 12px;
        bottom: 10px;
        right: 10px;
    }
}

