/* Logo styles */
.logo-img {
    height: 40px;
    margin-right: 8px;
}

/* Multi-Quality Video Player Styles */
.video-container {
    position: relative;
    max-width: 100%;
    margin: 20px 0;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

.quality-selector {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 4px;
    color: white;
    font-size: 14px;
}

.quality-selector label {
    margin-right: 5px;
    font-weight: normal;
}

.quality-selector select {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    padding: 2px 5px;
    font-size: 12px;
}

.quality-selector select option {
    background: #333;
    color: white;
}

.processing-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    border-radius: 8px;
    margin: 20px 0;
}

.processing-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.processing-status p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.video-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
    border: 1px solid #f5c6cb;
}

.no-video-message {
    background: #fff3cd;
    color: #856404;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
    border: 1px solid #ffeaa7;
}

.video-container .quality-selector:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Responsive video styles */
@media (max-width: 768px) {
    .quality-selector {
        position: static;
        background: rgba(0, 0, 0, 0.8);
        margin: 10px;
        text-align: center;
    }
    
    .processing-status {
        padding: 20px;
        margin: 10px 0;
    }
    
    .processing-spinner {
        width: 30px;
        height: 30px;
    }
}

/* Navbar fixes */
.navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

.main-content {
    padding-top: 120px; /* Increased clearance for fixed navbar to ensure content is always below navbar */
    flex-grow: 1;
}

/* Landing page section styles */
.management-section {
    padding: 6rem 0;
    background-color: #1a1a1a;
}

.training-section {
    padding: 6rem 0;
    background-color: #0c0c0c;
}

.stats-tracking-section {
    padding: 6rem 0;
    background-color: #1a1a1a;
}

.benefits-section {
    padding: 6rem 0;
    background-color: #0c0c0c;
}

.primary-color-icon {
    color: var(--primary-color);
}

.primary-color-text {
    color: var(--primary-color);
}

.accent-color-icon {
    color: var(--accent-color);
}

/* Auth form styles */
.auth-card {
    width: 100%;
    max-width: 400px;
}

.auth-logo {
    height: 80px;
}

/* Parental consent warning styles */
.parental-consent-required {
    background-color: #fff3cd !important;
    border: 1px solid #ffeaa7 !important;
    border-radius: 5px !important;
    padding: 10px !important;
}

.parental-consent-label-required {
    color: #856404 !important;
}

/* Video playback styles */
.external-video-container {
    display: none;
    width: 640px;
    height: 360px;
    background-color: #121212;
    text-align: center;
    padding: 20px;
    color: white;
}

.external-video-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.external-video-text {
    margin-bottom: 15px;
    font-size: 16px;
}

.external-video-link {
    display: inline-block;
    background-color: #ff3b5c;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    margin: 10px 0;
}

.external-video-caption {
    margin-top: 20px;
    font-size: 14px;
    color: #aaa;
}

/* Form styles */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Video card styles */
.video-card {
    border-radius: 1rem;
    overflow: hidden;
}

.video-element {
    background: #000;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.external-video-text-link {
    font-size: 1.2rem;
}

/* Inline form styles */
.inline-form {
    display: inline;
}

/* Hidden content */
.hidden-content {
    display: none;
}

/* 404 page styles */
.error-code {
    color: var(--primary-color);
}

/* Admin styles */
.admin-controls {
    margin: 20px 0;
}

.empty-table-cell {
    text-align: center;
    color: #6c757d;
    padding: 40px;
}

.refresh-indicator {
    display: none;
}

.no-connections-cell {
    text-align: center;
    color: #6c757d;
}

/* Video placeholder styles */
.video-placeholder {
    height: 200px;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

/* Card title with Oswald font */
.oswald-title {
    font-family: 'Oswald', sans-serif;
}

/* Large success icon */
.large-success-icon {
    font-size: 4rem;
}

/* Dashboard Styles */
.dashboard-header {
    padding: 1.5rem;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.8), rgba(255, 107, 0, 0.6));
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.dashboard-card {
    transition: all 0.3s ease;
    height: 100%;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-title {
    font-weight: 600;
}

.list-group-item.bg-transparent {
    transition: all 0.3s ease;
}

.list-group-item.bg-transparent:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    --bs-card-bg: #434343;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.accordion-button:not(.collapsed) {
    background-color: rgba(255, 107, 0, 0.1) !important;
    color: white !important;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.1);
}

.accordion-button::after {
    filter: brightness(5);
}

/* Custom scrollbar for the dashboard */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 0, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 0, 0.7);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-header {
        padding: 1rem;
    }
    
    .dashboard-header h1 {
        font-size: 1.75rem;
    }
}

/* Animation for notifications */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.list-group-item {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Badge styling */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Custom text button style */
.text-button {
    background: none;
    border: none;
    padding: 0;
    color: grey; /* Grey text color */
    cursor: pointer;
    text-decoration: none; /* Ensure no underline */
    transition: color 0.3s ease; /* Smooth transition for color change */
}

.text-button:hover {
    color: rgb(255, 107, 0); /* Transition to orange on hover */
    text-decoration: none; /* Ensure no underline on hover */
}

/* Button enhancements */
.btn {
    text-transform: none;
    letter-spacing: 0.5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Icon styling */
.card-title i {
    color: var(--primary-color);
}

/* Coach Dashboard Specific Styles */
.coach-dashboard-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
}

@media (min-width: 768px) {
    .coach-dashboard-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.dashboard-section {
    background-color: #f9f9f9; /* Light background for sections */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-section h3 {
    color: #333; /* Darker color for section headings */
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee; /* Separator line */
    padding-bottom: 10px;
}

.dashboard-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-section li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee; /* Dashed separator for list items */
}

.dashboard-section li:last-child {
    border-bottom: none; /* No border for the last list item */
    margin-bottom: 0;
    padding-bottom: 0;
}

.dashboard-section a {
    color: #007bff; /* Link color */
    text-decoration: none;
}

.dashboard-section a:hover {
    text-decoration: underline;
}

.dashboard-actions {
    background-color: #e9ecef; /* Different background for action section */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    grid-column: 1 / -1; /* Span across all columns in grid */
}

.dashboard-actions p {
    margin: 0 0 10px 0;
}

.dashboard-actions p:last-child {
    margin-bottom: 0;
}

.dashboard-actions a {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    margin-right: 10px;
}

.dashboard-actions a:hover {
    background-color: #0056b3;
}

/* Teams Page Styles */
.teams-page {
    padding: 40px 0;
    background-color: #f7f7f7;
}

.team-card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.team-card .card-title {
    font-size: 1.25rem;
    font-weight: bold;
}

.team-card .card-text {
    font-size: 0.9rem;
    color: #555;
}

.teams-page .btn-success {
    background-color: #28a745;
    border-color: #28a745;
}
