/* ========================================
   Fit360Club - Main Stylesheet
   ======================================== */

/* Import All CSS Files */
@import url('variables.css');
@import url('utilities.css');
@import url('components.css');
@import url('animations.css');
@import url('responsive.css');

/* ========================================
   Base Styles
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--primary-black);
    color: #ffffff !important;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   Global Text Fixes - IMPORTANT
   ======================================== */

/* Force all text to be visible */
body, 
body * {
    color: #ffffff !important;
}

/* Except for specific elements that should be muted */
.text-muted,
.text-muted * {
    color: rgba(255, 255, 255, 0.6) !important;
}

.text-muted-light,
.text-muted-light * {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Override for links */
a:not(.btn):not(.nav-link) {
    color: #e63946 !important;
}

a:not(.btn):not(.nav-link):hover {
    color: #c62828 !important;
}

/* ========================================
   Header / Navigation
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all var(--transition-medium);
    background: transparent;
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
    padding: 10px 0;
}

.navbar-brand {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff !important;
}

.navbar-brand span {
    color: #e63946 !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: #ffffff !important;
}

.nav-link:hover::after {
    width: 70%;
}

.nav-link.active {
    color: #ffffff !important;
}

.nav-link.active::after {
    width: 70%;
}

/* Mobile Menu Toggle */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
}

.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(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(26, 26, 46, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #f4a261 !important;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-secondary);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: #ffffff !important;
}

.hero-title .highlight {
    color: #e63946 !important;
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 600px;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-buttons .btn {
    margin-right: 1rem;
    margin-bottom: 1rem;
}

/* Hero Shapes */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.hero-shape-1 {
    width: 400px;
    height: 400px;
    background: #e63946;
    top: -100px;
    right: -100px;
}

.hero-shape-2 {
    width: 300px;
    height: 300px;
    background: #f4a261;
    bottom: -50px;
    left: -50px;
}

/* ========================================
   Section Styles
   ======================================== */

.section-dark {
    background: #1a1a2e;
}

.section-black {
    background: #0a0a0a;
}

/* ========================================
   Contact Form
   ======================================== */

.contact-form .form-control {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #ffffff !important;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #e63946;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
    color: #ffffff !important;
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ========================================
   Contact Icon - Rounded Background Design
   ======================================== */

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
}

/* The icon circle with gradient background */
.contact-info-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /*background: linear-gradient(135deg, #e84393 0%, #c6287a 100%);*/
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Icon inside the circle */
.contact-info-icon i {
    font-size: 1.2rem;
    color: #ffffff !important;
}

/* Optional: Add a subtle border */
.contact-info-icon {
    border: 2px solid rgba(255, 255, 255, 0.15);
}

/* Hover effect */
.contact-info-item:hover .contact-info-icon {
    transform: scale(1.05) rotate(-4deg);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
}

/* Text styling */
.contact-info-item h6 {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.contact-info-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: #1a1a2e;
    padding: 60px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff !important;
}

.footer-brand span {
    color: #e63946 !important;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6) !important;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: #ffffff !important;
    padding-left: 5px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: #ffffff !important;
    transition: all var(--transition-fast);
    margin-right: 10px;
}

.social-links a:hover {
    background: #e63946;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    margin-top: 40px;
}

/* ========================================
   Admin Panel - Complete Fix
   ======================================== */

/* Admin Sidebar */
.admin-sidebar {
    background: #1a1a2e !important;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.6) !important;
}

.admin-sidebar .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05);
}

.admin-sidebar .nav-link.active {
    color: #ffffff !important;
    background: rgba(230, 57, 70, 0.1);
    border-left-color: #e63946;
}

.admin-sidebar .nav-label {
    color: rgba(255, 255, 255, 0.3) !important;
}

.admin-sidebar-brand {
    color: #ffffff !important;
}

.admin-sidebar-brand span {
    color: #e63946 !important;
}

/* Admin Header */
.admin-header {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-header .text-white {
    color: #ffffff !important;
}

/* Admin Main Content */
.admin-main {
    background: #0a0a0a;
}

/* Stat Cards */
.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card .text-white {
    color: #ffffff !important;
}

.stat-card .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.stat-card .text-muted-light {
    color: rgba(255, 255, 255, 0.5) !important;
}

.stat-card .icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}


/* ========================================
   Table Fixes - Override Bootstrap
   ======================================== */

/* Force table background and text colors */
.table {
    --bs-table-bg: transparent !important;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02) !important;
    --bs-table-active-bg: rgba(255, 255, 255, 0.04) !important;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    border-color: var(--glass-border) !important;
}

.table > :not(caption) > * > * {
    background-color: transparent !important;
    color: #ffffff !important;
    border-bottom-color: var(--glass-border) !important;
}

/* Table dark custom - Main table style */
.table-dark-custom {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-md);
    overflow: hidden;
    color: #ffffff !important;
}

.table-dark-custom thead {
    background: rgba(255, 255, 255, 0.05) !important;
}

.table-dark-custom thead th {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--glass-border) !important;
    background: transparent !important;
}

.table-dark-custom tbody td {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
    background: transparent !important;
    vertical-align: middle;
}

.table-dark-custom tbody tr {
    background: transparent !important;
    transition: all 0.3s ease;
}

.table-dark-custom tbody tr:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

.table-dark-custom tbody tr:hover td {
    background: transparent !important;
}

.table-dark-custom .text-white {
    color: #ffffff !important;
}

.table-dark-custom .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Table Striped */
.table-dark-custom.table-striped > tbody > tr:nth-of-type(odd) {
    background: rgba(255, 255, 255, 0.02) !important;
}

.table-dark-custom.table-striped > tbody > tr:nth-of-type(odd) td {
    background: transparent !important;
}

/* Table Hover */
.table-dark-custom.table-hover > tbody > tr:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

.table-dark-custom.table-hover > tbody > tr:hover td {
    background: transparent !important;
}

/* Table Responsive */
.table-responsive {
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* Fix for Bootstrap table styles */
.table:not(.table-dark-custom) {
    background: var(--glass-bg) !important;
    color: #ffffff !important;
}

.table:not(.table-dark-custom) thead th {
    color: rgba(255, 255, 255, 0.7) !important;
    border-bottom: 1px solid var(--glass-border) !important;
}

.table:not(.table-dark-custom) tbody td {
    color: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
}

.table:not(.table-dark-custom) tbody tr:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

/* Table borders */
.table-bordered {
    border-color: var(--glass-border) !important;
}

.table-bordered thead th,
.table-bordered tbody td {
    border-color: var(--glass-border) !important;
}

/* Table cell alignment */
.table td,
.table th {
    vertical-align: middle !important;
}

/* Fix for small screens */
@media (max-width: 768px) {
    .table-dark-custom thead th,
    .table-dark-custom tbody td {
        padding: 8px 10px !important;
        font-size: 0.85rem;
    }
}

/* Tables */
.table-dark-custom {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table-dark-custom thead {
    background: rgba(255, 255, 255, 0.05);
}

.table-dark-custom th {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--glass-border);
}

.table-dark-custom td {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.table-dark-custom tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.table-dark-custom .text-white {
    color: #ffffff !important;
}

.table-dark-custom .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Form Controls */
.form-control-dark {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #ffffff !important;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.form-control-dark:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #e63946;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
    color: #ffffff !important;
}

.form-control-dark::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

.form-control-dark option {
    background: #1a1a2e !important;
    color: #ffffff !important;
}

.form-label {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Input Groups */
.input-group-text {
    background: var(--glass-bg) !important;
    border-color: var(--glass-border) !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Buttons */
.btn-primary-custom {
    background: var(--gradient-primary);
    color: #ffffff !important;
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.4);
    color: #ffffff !important;
}

.btn-outline-custom {
    background: transparent;
    color: #ffffff !important;
    padding: 12px 30px;
    border-radius: 50px;
    border: 2px solid #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-block;
}

.btn-outline-custom:hover {
    background: #ffffff;
    color: #1a1a2e !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Badges */
.badge {
    color: #ffffff !important;
    padding: 5px 12px;
    border-radius: 50px;
}

.badge-success {
    background: rgba(46, 204, 113, 0.2) !important;
    color: #2ecc71 !important;
}

.badge-danger {
    background: rgba(230, 57, 70, 0.2) !important;
    color: #e63946 !important;
}

.badge-warning {
    background: rgba(241, 196, 15, 0.2) !important;
    color: #f1c40f !important;
}

.badge-info {
    background: rgba(52, 152, 219, 0.2) !important;
    color: #3498db !important;
}

.badge-secondary {
    background: rgba(108, 117, 125, 0.2) !important;
    color: #adb5bd !important;
}

.badge-primary {
    background: rgba(230, 57, 70, 0.2) !important;
    color: #e63946 !important;
}

/* Status Badges */
.badge-active {
    background: rgba(46, 204, 113, 0.2) !important;
    color: #2ecc71 !important;
}

.badge-inactive {
    background: rgba(231, 76, 60, 0.2) !important;
    color: #e74c3c !important;
}

.badge-suspended {
    background: rgba(241, 196, 15, 0.2) !important;
    color: #f1c40f !important;
}

.badge-present {
    background: rgba(46, 204, 113, 0.2) !important;
    color: #2ecc71 !important;
}

.badge-absent {
    background: rgba(231, 76, 60, 0.2) !important;
    color: #e74c3c !important;
}

.badge-late {
    background: rgba(241, 196, 15, 0.2) !important;
    color: #f1c40f !important;
}

.badge-excused {
    background: rgba(52, 152, 219, 0.2) !important;
    color: #3498db !important;
}

.badge-pending {
    background: rgba(241, 196, 15, 0.2) !important;
    color: #f1c40f !important;
}

.badge-completed {
    background: rgba(46, 204, 113, 0.2) !important;
    color: #2ecc71 !important;
}

.badge-failed {
    background: rgba(231, 76, 60, 0.2) !important;
    color: #e74c3c !important;
}

.badge-refunded {
    background: rgba(52, 152, 219, 0.2) !important;
    color: #3498db !important;
}

/* Alerts */
.alert {
    color: #ffffff !important;
    border-radius: var(--radius-sm);
    border: none;
}

.alert-success {
    background: rgba(46, 204, 113, 0.2) !important;
    color: #2ecc71 !important;
    border: 1px solid rgba(46, 204, 113, 0.3) !important;
}

.alert-danger {
    background: rgba(230, 57, 70, 0.2) !important;
    color: #e63946 !important;
    border: 1px solid rgba(230, 57, 70, 0.3) !important;
}

.alert-warning {
    background: rgba(241, 196, 15, 0.2) !important;
    color: #f1c40f !important;
    border: 1px solid rgba(241, 196, 15, 0.3) !important;
}

.alert-info {
    background: rgba(52, 152, 219, 0.2) !important;
    color: #3498db !important;
    border: 1px solid rgba(52, 152, 219, 0.3) !important;
}

/* Dropdown */
.dropdown-menu {
    background: #1a1a2e !important;
    border: 1px solid var(--glass-border) !important;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.8) !important;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.dropdown-header {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Modal */
.modal-content {
    background: #1a1a2e !important;
    border: 1px solid var(--glass-border) !important;
}

.modal-header,
.modal-footer {
    border-color: var(--glass-border) !important;
}

.modal-title {
    color: #ffffff !important;
}

/* Nav Tabs */
.nav-tabs .nav-link {
    color: rgba(255, 255, 255, 0.6) !important;
}

.nav-tabs .nav-link:hover {
    color: #ffffff !important;
}

.nav-tabs .nav-link.active {
    color: #ffffff !important;
    background: transparent !important;
    border-bottom-color: #e63946 !important;
}

/* Pagination */
.pagination .page-link {
    background: var(--glass-bg) !important;
    border-color: var(--glass-border) !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.pagination .page-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.pagination .page-item.active .page-link {
    background: #e63946 !important;
    border-color: #e63946 !important;
    color: #ffffff !important;
}

/* Progress */
.progress {
    background: rgba(255, 255, 255, 0.1) !important;
}

.progress-bar {
    color: #ffffff !important;
}

/* Offcanvas */
.offcanvas {
    background: #1a1a2e !important;
}

.offcanvas .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.offcanvas .nav-link:hover {
    color: #ffffff !important;
}

/* Glass Cards */
.card-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition-medium);
    height: 100%;
}

.card-glass:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    background: rgba(255, 255, 255, 0.1);
}

.card-glass .text-white {
    color: #ffffff !important;
}

.card-glass .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Activity List */
.activity-list .text-white {
    color: #ffffff !important;
}

.activity-list .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Scrollbar */
.admin-sidebar::-webkit-scrollbar {
    width: 5px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Validation */
.is-invalid {
    border-color: #e63946 !important;
}

.invalid-feedback,
.text-danger {
    color: #e63946 !important;
}

/* ========================================
   Responsive Fixes
   ======================================== */

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }
    
    .admin-header {
        left: 0;
    }
    
    .admin-main {
        margin-left: 0;
        padding: 15px;
    }
    
    .admin-header .toggle-sidebar {
        display: block !important;
    }
}
