/* Main Styles for Stream-AI Workout Assistant */

/* Base styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
}

/* Navigation */
.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.1);
}

.nav-link {
    position: relative;
    font-weight: 500;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 25%;
    width: 50%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
}

/* Section content transitions */
.section-content {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.section-content.d-none {
    opacity: 0;
}

/* Camera feed container */
.video-container {
    position: relative;
}

#camera-container {
    background-color: #2c3e50;
    overflow: hidden;
}

.overlay-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    padding: 20px;
}

.processed-feed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Statistics panel */
.stats-container {
    background-color: #f8f9fa;
}

.feedback-box {
    padding: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    min-height: 80px;
    max-height: 120px;
    overflow-y: auto;
}

/* Exercise Instructions */
.exercise-instruction {
    display: none;
}

/* Exercise Instructions Panel - New styles */
#exercise-instructions-panel {
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

#exercise-instructions-panel .card-header {
    background-color: #003c74;
    color: white;
}

#exercise-instructions-panel h4 {
    color: #003c74;
    margin-bottom: 0.75rem;
}

#exercise-instructions-panel .card ul {
    padding-left: 1.25rem;
}

#exercise-instructions-panel .card li {
    margin-bottom: 0.5rem;
}

#workout-exercise-specific-instructions h5 {
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

#workout-exercise-specific-instructions .card img {
    max-height: 300px;
    object-fit: contain;
}

/* Workout animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn-success {
    transition: all 0.3s ease;
}

.btn-success:hover {
    animation: pulse 1s infinite;
}

/* Recipe tags */
.ingredient-tag, .allergy-tag {
    display: inline-block;
    padding: 5px 10px;
    margin: 5px;
    background-color: #e9ecef;
    border-radius: 15px;
    font-size: 0.9em;
}

.ingredient-tag .remove-tag, .allergy-tag .remove-tag {
    margin-left: 5px;
    cursor: pointer;
    color: #dc3545;
}

/* Recipe cards */
.recipe-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Theme switch */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    display: inline-block;
    position: relative;
    width: 60px;
    height: 34px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2c3e50;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider-icons {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.sun {
    left: 8px;
    color: #f1c40f;
    opacity: 1;
}

.moon {
    right: 8px;
    color: #f1c40f;
    opacity: 0;
}

input:checked + .slider .sun {
    opacity: 0;
}

input:checked + .slider .moon {
    opacity: 1;
}

/* Progress indicators */
.progress {
    height: 10px;
}

/* New workout options */
#new-workout-options {
    margin-top: 15px;
}

/* Instructions Section - Hide for direct navigation */
#instructions-section {
    display: none !important;
}

/* About page specific styles */
.about-section {
    padding: 3rem 0;
}

.about-section h2 {
    margin-bottom: 1.5rem;
    color: #003c74;
}

.team-member {
    text-align: center;
    margin-bottom: 2rem;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #003c74;
}

.mission-vision-box {
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-vision-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.mission-box {
    background-color: rgba(0, 60, 116, 0.1);
}

.vision-box {
    background-color: rgba(39, 174, 96, 0.1);
}

.feature-box {
    text-align: center;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.feature-box i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #003c74;
}

/* Error page styles */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-icon {
    font-size: 5rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .stats-container {
        margin-top: 15px;
    }
    
    .feedback-box {
        min-height: 60px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-brand img {
        width: 30px;
        height: 30px;
    }
    
    #exercise-instructions-panel .row {
        flex-direction: column;
    }
    
    #exercise-instructions-panel .col-md-5 {
        margin-bottom: 1rem;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
}