/* CrossFit Gym Custom Styles */

/* Global Styles */
:root {
    --brand-red: #dc3545;
    --brand-dark: #212529;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 80px 0;
    background-position: center;
    background-size: cover;
    color: white;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Feature Icons */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    font-size: 2rem;
    border-radius: 50%;
}

/* Profile Images */
.profile-img {
    object-fit: cover;
}

.profile-img-lg {
    width: 150px;
    height: 150px;
}

.profile-img-xl {
    width: 200px;
    height: 200px;
}

.profile-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tables */
.table th {
    font-weight: 600;
}

/* Badges and Progress Bars */
.badge {
    font-weight: 500;
}

.progress {
    height: 10px;
    border-radius: 5px;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.2s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.card-header {
    font-weight: 600;
    background-color: rgba(33, 37, 41, 0.03);
}

/* Avatar Circle */
.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bs-primary);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

/* Testimonials */
.testimonial-image {
    width: 80px;
    height: 80px;
    background-size: cover;
    background-position: center;
}

/* Calendar Styling */
.fc-theme-standard .fc-list, 
.fc-theme-standard .fc-scrollgrid,
.fc-theme-standard td, 
.fc-theme-standard th {
    border-color: var(--bs-border-color);
}

.fc .fc-button-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.fc .fc-button-primary:hover {
    background-color: var(--bs-primary-dark);
    border-color: var(--bs-primary-dark);
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: rgba(var(--bs-primary-rgb), 0.15);
}

/* Dashboard Cards */
.stat-card {
    border-radius: 10px;
    border: none;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-card .card-body {
    padding: 1.5rem;
}

.stat-card .icon {
    background: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* Tab Styling */
.nav-tabs .nav-link {
    border: none;
    color: var(--bs-secondary);
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: var(--bs-primary);
    background-color: transparent;
    border-bottom: 2px solid var(--bs-primary);
}

/* Form Customization */
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Message Styling */
.message-list .message-item {
    transition: all 0.2s ease;
}

.message-list .message-item:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}

.message-list .unread {
    font-weight: 700;
}

/* Footer Styling */
footer {
    margin-top: auto;
    padding: 2rem 0;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .stat-card .icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .card-header {
        padding: 0.75rem 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .profile-img-lg, .profile-img-xl {
        width: 100px;
        height: 100px;
    }
}

/* Print Styles */
@media print {
    .navbar, .footer, .btn-toolbar, .no-print {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
    
    body {
        color: #000 !important;
        background-color: #fff !important;
    }
}
