/* Custom styles for Player Performance Dashboard */

/* General layout and typography */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9rem;
}

.sidebar {
    position: fixed;
    top: 56px; /* This is the default Bootstrap navbar height */
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 20px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

main {
    padding-top: 20px;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
}

.sidebar .nav-link.active {
    color: #0d6efd;
}

.navbar {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Login and Register forms */
.login-container, .register-container {
    max-width: 400px;
    margin: 2rem auto;
}

/* Chart containers */
.chart-container {
    position: relative;
    height: 100%;
    width: 100%;
}

/* Performance table */
.table-responsive {
    max-height: 500px;
    overflow-y: auto;
}

#performance-table th {
    cursor: pointer;
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
}

#performance-table th:hover {
    background-color: #e9ecef;
}

/* Loading indicators */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-right-color: transparent;
    animation: spinner-border .75s linear infinite;
}

/* Import form */
.import-form-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Dashboard cards */
.dashboard-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .sidebar {
        position: static;
        height: auto;
        padding-top: 0;
    }
    
    main {
        margin-left: 0 !important;
    }
    
    .chart-container {
        height: 350px !important;
    }
}

/* Tab content */
.tab-content {
    padding-top: 1rem;
}

/* Player charts container */
.player-charts {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

@media (max-width: 767.98px) {
    .player-charts > div {
        flex: 0 0 100%;
    }
}

/* Profile page */
.profile-card {
    max-width: 800px;
    margin: 0 auto;
}

.profile-header {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Activity logs */
.log-entry {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-left: 3px solid #dee2e6;
}

.log-entry:hover {
    background-color: #f8f9fa;
}

.log-timestamp {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Tooltips */
.custom-tooltip {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 1000;
}