body {
    background-color: #f5f7fa;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400; /* Regular weight for body text */
}

h2 {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 800;
}

.form-label, .btn {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600; /* Bolder for headings and buttons */
}

.team-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #ddd;
}

.login-page {
    height: 100vh;
    background: url('/images/hockey-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.login-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
}
.login-box-wide {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px; /* Wider for teams/register */
}

.login-logo {
    width: 100%;
    max-width:250px;
    display: block; /* Ensures it behaves as a block element */
    margin-left: auto; /* Centers horizontally */
    margin-right: auto; /* Centers horizontally */
    margin-bottom: 1.5rem; /* Replaces <br /><br /> for consistent spacing */
}

.notification-message {
    color: red;
    padding: 1rem;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 5px;
    border:1px solid #cbd0dd;
}

.profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #ddd;
    cursor: pointer;
}

.player-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #ddd; /* Fallback if no image */
}

.draggable-player:hover {
    cursor: pointer;
}
.draggable-player:active {
    cursor: grabbing;
}
.droppable-area {
    background-color: #ffffff;
    /*border: 2px dashed #ddd; */
    border-radius: 5px;
    min-height: 50px;
    position: relative;
}
.list-group-item {
    padding: 0.5rem 0.75rem;
}
.bg-light-blue {
    background-color: #e6f0fa;
}
.bg-light-green {
    background-color: #e6ffe6;
}
.bg-light-gray {
    background-color: #f0f0f0;
}
.remove-player {
    padding: 0.1rem 0.25rem;
}
.position-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #aaa;
    font-size: 1.2rem;
    pointer-events: none;
}
.droppable-area .draggable-player {
    position: relative;
    z-index: 1;
}

/* Navbar */
.navbar {
    padding: 0.25rem 1rem;
    background-color: var(--header-color, #ffffff); /* Fallback to white */
    border-bottom: 1px solid #ddd;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 500;
    margin-left: 80px;
    color: #31374a;
}

.navbar-brand:hover {
    color: #31374a;
}

.nav-item {
    margin-left: 0.5rem; /* Add left margin between nav items */
    margin-right: 0.5rem; /* Add right margin between nav items */
}

.nav-link {
    padding: 0.5rem 1rem;
    color: #31374a;
    transition: background-color 0.2s, color 0.2s;
}

.nav-link:hover {
    background-color: #f5f7fa;
    color: #31374a;
    border-radius: 10px;
}

/* Remove caret from profile dropdown */
#profileDropdown::after {
    display: none;
}

.header-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: contain;
    background-color: #ffffff;
    position: absolute;
    top: 5px;
    left: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.form-select {
    font-size: 0.9rem;
    padding: 0.375rem 1.75rem 0.375rem 0.75rem;
}

/* Fix mobile toggler visibility */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2331374a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.footer-logo {
    width: 80px; /* Matches team-logo size; adjust as needed */
    height: 80px;
    object-fit: contain;
}

/* Custom Badge Styling */
.badge {
    font-size: 0.9rem; /* Slightly larger than default (0.75rem) */
    padding: 0.375rem 0.75rem; /* Larger padding for bigger badges */
    border: 1px solid; /* Add border to all badges */
    font-weight: 600; /* Match button/font-label weight */
}
.text-success {
    color: #1c6c09 !important;
}
.text-danger {
    color: #721c24 !important;
}
.btn-primary {
	background-color: #098ac6;
	border-color:#098ac6;
}
.btn-primary:hover {
	background-color: #02172c;
	border-color:#02172c;
}
.badge.bg-success {
    background-color: #90d67f !important; /* Light green */
    color: #1c6c09 !important; /* Dark green */
    border-color: #1c6c09 !important;
}
.badge.bg-danger {
    background-color: #f8b7bd !important; /* Softer red */
    color: #721c24 !important; /* Darker red */
    border-color: #721c24 !important;
}
.badge.bg-warning {
    background-color: #ffd700 !important; /* Bright yellow */
    color: #856404 !important; /* Darker yellow */
    border-color: #856404 !important;
}
.badge.bg-secondary {
    background-color: #e9ecef !important; /* Light gray */
    color: #495057 !important; /* Darker gray */
    border-color: #495057 !important;
}
.bg-primary {
    background-color: #098ac6 !important;
}

@media (max-width: 991px) {
    .navbar-nav {
        margin-top: 0.5rem;
    }
    .header-logo {
        width: 60px;
        height: 60px;
    }
    .navbar-brand {
        margin-left: 60px;
    }
    .form-select {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    .team-logo {
        left: 50%;
        transform: translateX(-50%);
    }
    .nav-item {
        margin-left: 0; /* Remove horizontal margins on mobile for vertical stacking */
        margin-right: 0;
    }
    .nav-link {
        padding: 0.75rem 1rem; /* Slightly more padding for mobile tap targets */
    }
}