/* Import Bootstrap via CDN in HTML, but here we can add custom overrides */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --bg-light: #f8f9fa;
    --calendar-gradient: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    --calendar-accent: #0dcaf0;
    --brand-blue: #cfe2ff;
    --brand-blue-text: #084298;
    --logo-blue: #003060;
    --logo-orange: #ff6600;
    --logo-green: #28a745;
}

.bg-orange {
    background-color: var(--logo-orange) !important;
    color: white !important;
}

.bg-green {
    background-color: var(--logo-green) !important;
    color: white !important;
}

.bg-yellow-light {
    background-color: #fff3cd !important;
    color: #664d03 !important;
}

.bg-pink {
    background-color: #d63384 !important;
    color: white !important;
}

.bg-orange-light {
    background-color: #ffe5d0 !important;
    color: #cc5200 !important;
}

.bg-pink-light {
    background-color: #fad7e6 !important;
    color: #a3155e !important;
}

.bg-green-light {
    background-color: #d1e7dd !important;
    color: #0f5132 !important;
}

.bg-secondary-light {
    background-color: #e2e3e5 !important;
    color: #41464b !important;
}

.header-gradient-border {
    border-bottom: 3px solid;
    border-image: linear-gradient(to right, var(--logo-orange), var(--logo-green)) 1;
}

.alert-brand-blue {
    background-color: var(--brand-blue);
    color: var(--brand-blue-text);
    border: 1px solid #b6d4fe;
}

/* ... (existing styles) ... */

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--logo-blue); /* Blue background */
    border-top: 1px solid #002040;
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    z-index: 1050;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7); /* Light text for inactive */
    font-size: 0.75rem;
    flex: 1;
    transition: color 0.2s;
}

.bottom-nav-item:hover {
    color: rgba(255, 255, 255, 0.9);
}

.bottom-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.bottom-nav-item.active {
    color: var(--logo-orange); /* Orange for active */
    font-weight: 600;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
}

.logo-box {
    width: 60px;
    height: 60px;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
    transition: all .2s ease-in-out;
    cursor: pointer;
}

/* Image Background Cards */
.card-img-bg {
    background-size: cover;
    background-position: center;
    color: white !important; /* Force white text */
    position: relative;
    overflow: hidden;
    border: none;
    min-height: 200px; /* Ensure enough height to see image */
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: 1;
    transition: background 0.2s;
}

.card-img-bg:hover::before {
    background: rgba(0, 0, 0, 0.5); /* Lighten slightly on hover */
}

.card-img-bg .card-body {
    position: relative;
    z-index: 2;
    width: 100%;
}

.card-img-bg .text-muted {
    color: rgba(255, 255, 255, 0.8) !important; /* Lighten muted text */
}

.card-img-bg i {
    color: white !important; /* Override bootstrap colors for icons */
}

.img-overlay-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.375rem; /* Bootstrap rounded */
    width: 100px;
    height: 100px;
}

.img-overlay-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-overlay-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(80, 80, 80, 0.5); /* Stronger gray overlay */
    pointer-events: none;
}

.bg-team {
    background-image: url('../assets/manage_team_bg.png');
}

.bg-exercise {
    background-image: url('../assets/exercise_library_bg.png');
}

.bg-calendar {
    background-image: url('../assets/training_calendar_bg.jpg');
}

/* Hide on mobile, show on desktop (md and up) */
.desktop-only-card {
    display: none;
}

@media (min-width: 768px) {
    .desktop-only-card {
        display: flex !important;
    }
}

/* Calendar Styles */
.calendar-header {
    background: var(--calendar-gradient);
    color: white;
    border-bottom: none !important;
}

.calendar-days-row {
    background-color: #343a40;
    color: white;
    font-weight: 600;
    padding: 10px 0;
    border-radius: 4px 4px 0 0;
}

.calendar-cell {
    transition: background-color 0.2s;
    cursor: pointer;
}

.calendar-cell:hover {
    background-color: rgba(13, 202, 240, 0.1); /* Light cyan hover */
}

.calendar-today {
    position: relative;
    font-weight: bold;
    color: var(--primary-color);
}

.calendar-today::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--logo-blue);
    border-top: 1px solid #002040;
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    z-index: 1050;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    flex: 1;
    transition: color 0.2s;
}

.bottom-nav-item:hover {
    color: rgba(255, 255, 255, 0.9);
}

.bottom-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.bottom-nav-item.active {
    color: var(--logo-orange);
    font-weight: 600;
}

.training-item-card {
    transition: all 0.2s ease;
    border-left: 4px solid transparent !important;
}

.training-item-card:hover {
    background-color: #e9ecef !important;
    border-left-color: var(--logo-blue) !important;
    transform: translateX(5px);
}

/* Responsive Visibility */
@media (min-width: 769px) {
    .bottom-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 70px; /* Space for bottom nav */
    }
}
