html, body, #root, .App {
    height: 100%;
    margin: 0;
    padding: 0;
}

#map, .map-container {
    height: calc(100vh - 56px - 50px); /* Subtract navbar and filter controls */
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.team-info {
    height: calc(100vh - 56px);
    overflow-y: auto;
    background-color: var(--bs-dark);
    color: var(--bs-light);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.team-marker {
    background-color: transparent;
    border: none;
}

.team-marker img {
    width: 40px;
    height: 40px;
    transition: all 0.2s ease;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.team-marker:hover img, .team-marker img:hover {
    width: 48px;
    height: 48px;
    transform: translate(-4px, -4px);
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* Selected team marker styling */
.team-marker.selected img {
    width: 48px;
    height: 48px;
    transform: translate(-4px, -4px);
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 15px #FFD700; /* Yellow glow */
    z-index: 2000; /* Keep selected above all others */
}

/* Dimmed markers (all other teams when one is selected) */
.team-marker img.dimmed {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* College marker styling */
.college-marker img {
    width: 35px;
    height: 35px;
    transition: all 0.2s ease;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 2px;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6); /* Subtle golden glow */
    border: 2px solid #FFD700;
}

.college-marker:hover img, .college-marker img:hover {
    width: 42px;
    height: 42px;
    transform: translate(-3.5px, -3.5px);
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
    z-index: 1500;
}

/* College popup styling */
.college-popup h5 {
    color: #333;
    font-weight: bold;
}

.leaflet-popup.college-marker-popup .leaflet-popup-content-wrapper {
    border-left: 4px solid #FFD700;
}

.filter-controls {
    padding: 10px;
    background-color: var(--bs-dark);
    z-index: 1000;
    text-align: center;
    height: 50px;
}

.team-logo-large {
    text-align: center;
}

.team-logo-large img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.stadium-name {
    color: var(--bs-secondary);
    margin-bottom: 15px;
}

/* Player roster styling */
.player-roster-container {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    padding-right: 5px;
}

.player-roster-container::-webkit-scrollbar {
    width: 6px;
}

.player-roster-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.player-roster-container::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.position-title {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--bs-info);
    margin-bottom: 5px;
    padding-left: 5px;
    border-left: 3px solid var(--bs-info);
}

.player-item {
    padding: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.player-item:last-child {
    border-bottom: none;
}

.player-name {
    font-weight: 500;
}

.player-details {
    color: var(--bs-secondary);
    margin-top: 2px;
}

/* Scouting notes styling */
.add-note-btn {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.add-note-btn:hover {
    opacity: 1;
}

.scouting-notes-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scouting-notes-content {
    background-color: var(--bs-dark);
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

.scouting-notes-header {
    padding: 15px 20px;
    background-color: var(--bs-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scouting-notes-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.scouting-note-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
    background-color: rgba(0, 0, 0, 0.2);
}

.note-header {
    margin-bottom: 8px;
    color: var(--bs-secondary);
}

.note-text {
    white-space: pre-wrap;
    line-height: 1.5;
}

/* Team marker z-index for overlaying */
.chargers-on-top {
    z-index: 1001 !important;
}

/* Player college markers styling */
.player-college-marker {
    z-index: 1000 !important;
}

.player-college-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid #FFD700; /* Gold border */
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.6);
    overflow: hidden;
}

.player-college-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.welcome-message {
    padding: 15px 0;
}

.instructions {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.instructions ul {
    padding-left: 20px;
}

.team-details {
    padding: 15px 0;
}

/* Custom popup styles */
.leaflet-popup-content-wrapper {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.3);
}

.leaflet-popup-tip {
    background-color: rgba(255, 255, 255, 0.9);
}

.team-popup {
    text-align: center;
}

.team-popup h5 {
    margin-top: 8px;
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    #map, .map-container {
        height: 60vh;
    }
    
    .team-info {
        height: auto;
        min-height: 40vh;
    }
}
