/* BJJ Gym CRM System Styles */
body {
    background-color: #f8f9fa;
    font-family: 'Montserrat', sans-serif;
}

/* Floating Bar */
#floating-bar {
    background-color: #709671;
    color: #ededed;
    position: relative;
    z-index: 1000;
}

.floating-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    font-size: 0.875rem;
}

#floating-bar-header-message {
    flex: 1;
}

#floating-bar-header-links {
    display: flex;
    align-items: center;
}

#floating-bar-social-list ul {
    display: flex;
    margin: 0;
    padding: 0;
}

#floating-bar-social-list li {
    margin-left: 15px;
}

#floating-bar-phone-link,
#floating-bar-email-link {
    margin-left: 15px;
}

/* Navigation Header */
.navigation-header {
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    background-color: #959d7a;
}

.menu-item {
    font-size: 15px !important;
}

.nav-item {
    font-size: .9rem;
    text-transform: uppercase;
    font-weight: 900 !important;
    letter-spacing: .3rem !important;
}

/* Header styling to match BJJ site */
.site-header {
    position: relative;
    z-index: 999;
    margin-top: 0 !important;
}

.navigation-header {
    margin: 0 !important;
    padding: 0 !important;
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.navbar {
    padding: 0.5rem 0 !important;
}

/* Remove spacing between header and main content */
main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

main.mt-0 {
    margin-top: 0 !important;
}

.toggle-container {
    margin-left: auto;
}

.dropdown-menu {
    background-color: #010101;
    border: 1px solid #a1b65d;
}

.dropdown-item {
    color: #ededed;
}

.dropdown-item:hover {
    background-color: #a1b65d;
    color: #010101;
}

/* Button styling to match reference site */
.btn-primary, .btn-light {
    border-radius: 33px !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1rem;
}

.btn-login, .btn-signup {
    border: 2px solid #709671 !important;
    background: #010101 !important;
    color: #ededed !important;
    border-radius: 33px !important;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2) !important;
}

/* More specific selectors for login/signup buttons */
.navbar-nav .btn-login, .navbar-nav .btn-signup {
    border: 2px solid #709671 !important;
    background: #010101 !important;
    color: #ededed !important;
    padding: 8px 16px !important;
}

/* Mobile menu styling */
@media (max-width: 991px) {
    .navbar-nav.navbar-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: 0px;
        margin-left: 0 !important;
        padding-left: 0;
    }
    
    .navbar-nav .btn-login, .navbar-nav .btn-signup {
        display: block;
        width: 100%;
        margin: 5px 0;
        text-align: center;
        max-width: 100%;
    }
    
    .navbar-collapse {
        margin: 15px 0;
    }
    
    .navbar-nav.ml-auto {
        margin-left: 0 !important;
    }
}

.nav-link {
    color: #ededed !important;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #a1b65d !important;
}

.navbar-nav .nav-link {
    color: #ededed !important;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #a1b65d !important;
}

.school-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.school-logo img {
    max-height: 80px;
    width: auto;
}

.school-logo .secondary-logo {
    max-height: 70px;
}

/* Buttons */
.btn-primary, .btn-light {
    border-radius: 33px !important;
    border: 2px solid #a1b65d !important;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1rem;
}

.btn-login, .btn-signup {
    background: #010101 !important;
    border-color: #010101 !important;
    color: #ededed !important;
}

/* Page Sections */
.page-section {
    padding: 60px 0;
}

.page-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-section-header h2 {
    color: #010101;
    letter-spacing: .3rem !important;
    text-transform: uppercase;
}

/* Footer */
#footer {
    background-color: #959d7a;
    color: #010101;
    margin-top: auto;
}

.footer-location {
    color: #010101;
}

.footer-location a {
    color: #010101;
    text-decoration: none;
}

.copyright {
    text-align: center;
}

/* Cards */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
    transition: box-shadow 0.15s ease-in-out;
    border-radius: 0;
}

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

/* Buttons */
.btn {
    border-radius: 33px;
    padding: 10px 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1rem;
}

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

/* Alerts */
.alert {
    border-radius: 0.5rem;
    border: none;
}

/* Forms */
.form-control:focus {
    border-color: #a1b65d;
    box-shadow: 0 0 0 0.25rem rgba(161, 182, 93, 0.25);
}

/* Custom styling for dashboard widgets */
.widget {
    transition: transform 0.2s;
}

.widget:hover {
    transform: translateY(-2px);
}

/* QR code styling */
.qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Attendance badges */
.badge-attendance-present {
    background-color: #198754;
}

.badge-attendance-late {
    background-color: #a1b65d;
    color: #000;
}

.badge-attendance-absent {
    background-color: #6c757d;
}

/* Class availability badges */
.badge-available {
    background-color: #198754;
}

.badge-full {
    background-color: #dc3545;
}

/* Profile image placeholder */
.profile-placeholder {
    background-color: #e9ecef;
    border: 2px dashed #adb5bd;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-bar-header {
        flex-direction: column;
        text-align: center;
    }
    
    #floating-bar-header-links {
        margin-top: 10px;
        justify-content: center;
    }
    
    .nav-item {
        letter-spacing: .1rem !important;
    }
    
    .page-section-header h2 {
        letter-spacing: .1rem !important;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Footer Navigation Menu Styles */
.navigation-footer {
    margin-bottom: 20px;
}

.nav-footer {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-footer .menu-item {
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.nav-footer .menu-item a {
    color: #010101;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.nav-footer .menu-item a:hover {
    color: #ededed;
    padding-left: 5px;
}

/* Footer location label styling */
.footer-location-label {
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    margin-bottom: 15px;
}

/* Footer contact info styling */
.footer-phone,
.footer-email,
.footer-address {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-phone a,
.footer-email a {
    transition: color 0.3s ease;
}

.footer-phone a:hover,
.footer-email a:hover {
    color: #ededed !important;
}

/* Footer social icons */
.footer-school-social {
    margin-top: 15px;
}

.footer-school-social .social-list {
    margin: 0;
    padding: 0;
}

.footer-school-social .list-inline-item {
    margin-right: 15px;
}

.footer-school-social a {
    font-size: 18px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-school-social a:hover {
    color: #ededed !important;
    transform: scale(1.2);
}

/* Copyright section */
.copyright {
    font-size: 13px;
    margin: 0;
}

.copyright a {
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: #ededed !important;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Floating bar links hover effects */
#floating-bar a {
    transition: opacity 0.3s ease;
}

#floating-bar a:hover {
    opacity: 0.8;
}

/* Navbar toggler styling */
.navbar-toggler {
    border-color: #ededed;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28237, 237, 237, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dropdown menu styling */
.navbar-nav .dropdown-toggle::after {
    color: #ededed;
}

.navbar-nav .dropdown-menu {
    background-color: #010101;
    border: 1px solid #a1b65d;
    margin-top: 0.5rem;
}

.navbar-nav .dropdown-item {
    color: #ededed;
    transition: all 0.3s ease;
    padding: 10px 20px;
}

.navbar-nav .dropdown-item:hover {
    background-color: #a1b65d;
    color: #010101;
}

.navbar-nav .dropdown-item:focus {
    background-color: #a1b65d;
    color: #010101;
}

/* Hero carousel styling */
#hero {
    margin: 0;
    padding: 0;
}

#heroCarousel .carousel-item {
    height: 500px;
}

#heroCarousel .carousel-item img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    #heroCarousel .carousel-item {
        height: 300px;
    }
}

/* Instructor cards responsive layout */
@media (min-width: 768px) and (max-width: 991px) {
    .instructor-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .instructor-card {
        margin-bottom: 20px;
    }
}

/* Instructor profile styling */
.instructor-profile {
    padding: 20px;
    transition: transform 0.3s ease;
}

.instructor-profile:hover {
    transform: translateY(-5px);
}

.instructor-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 4px solid #709671;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instructor-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.instructor-name {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: #010101;
    margin-bottom: 15px;
}

.instructor-description {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 767px) {
    .instructor-photo {
        width: 150px;
        height: 150px;
    }
}

/* Instructor Instagram icon */
.instructor-instagram {
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 1.8rem;
    color: #709671;
    transition: color 0.3s ease, transform 0.3s ease;
}

.instructor-instagram:hover {
    color: #a1b65d;
    transform: scale(1.2);
}

/* Schedule table styling */
.schedule-table-wrapper {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 8px;
    font-family: 'Montserrat', sans-serif;
}

.schedule-table thead th {
    background-color: #f8f9fa;
    color: #010101;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    padding: 15px 10px;
    text-align: center;
    font-size: 0.9rem;
    border: none;
}

.schedule-table tbody td {
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 5px;
    transition: transform 0.2s ease;
}

.schedule-table tbody td:hover:not(.time-cell) {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.time-cell {
    background-color: transparent;
    color: #010101;
    font-weight: 700;
    text-align: left;
    padding-left: 0;
}

.time-column {
    width: 120px;
}

.boxeo-cell {
    background-color: #959d7a;
    color: #010101;
}

.gi-cell {
    background-color: #a1b65d;
    color: #010101;
}

.nogi-cell {
    background-color: #f5f5dc;
    color: #010101;
}

.sparring-cell {
    background-color: #a1b65d;
    color: #010101;
}

.kids-gi-cell {
    background-color: #c9a87c;
    color: #fff;
}

.kids-nogi-cell {
    background-color: #c9a87c;
    color: #fff;
}

.kids-boxeo-cell {
    background-color: #c9a87c;
    color: #fff;
}

.openmat-cell {
    background-color: #a1b65d;
    color: #010101;
}

@media (max-width: 991px) {
    .schedule-table-wrapper {
        padding: 15px;
        overflow-x: auto;
    }
    
    .schedule-table {
        font-size: 0.75rem;
        border-spacing: 4px;
    }
    
    .schedule-table thead th {
        padding: 10px 5px;
        font-size: 0.7rem;
    }
    
    .schedule-table tbody td {
        padding: 10px 5px;
        font-size: 0.7rem;
    }
    
    .time-column {
        width: 80px;
    }
}

@media (max-width: 767px) {
    .schedule-table {
        font-size: 0.65rem;
    }
    
    .schedule-table thead th {
        padding: 8px 3px;
        font-size: 0.6rem;
        letter-spacing: 0.05rem;
    }
    
    .schedule-table tbody td {
        padding: 8px 3px;
        font-size: 0.65rem;
    }
}
