/* ===================================
   MCA GYM - Stil Dosyası (Red-Black Theme)
   Kırmızı Aksent ve Temiz Tasarım
   =================================== */

/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #c92a2a;
    --success-color: #2f9e44;
    --danger-color: #f03e3e;
    --warning-color: #fd7e14;
    --info-color: #1971c2;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --bg-color: #f5f5f5;
    --text-dark: #2d3436;
    
    /* Özel renkler */
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f0f0f2;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    color: var(--text-dark);
    overflow: visible;
    pointer-events: auto;
}

/* ===== HEADINGS ===== */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-weight: 600;
}

/* Navbar'daki başlıklar beyaz */
.navbar h1, 
.navbar h2, 
.navbar h3, 
.navbar h4, 
.navbar h5, 
.navbar h6 {
    color: #ffffff;
}

/* Normal sayfalarda başlıklar siyah */
.container-fluid h1, 
.container-fluid h2, 
.container-fluid h3, 
.container-fluid h4, 
.container-fluid h5, 
.container-fluid h6,
.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6 {
    color: var(--text-dark);
}

/* ===== NAVBAR ===== */
.navbar {
    background: linear-gradient(180deg, #1f1f1f 0%, #1a1a1a 100%) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1000;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.3rem;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.navbar-brand:hover {
    color: #ff6b6b !important;
}

.navbar-brand img,
.navbar-brand .navbar-logo {
    max-height: 52px;
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.navbar-nav .nav-link {
    color: #e0e0e0 !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-brand img {
    max-height: 52px;
    height: 52px;
}

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

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(201, 42, 42, 0.1);
    border-radius: 5px;
}

.navbar-nav .dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.navbar-nav .dropdown-item {
    color: #2d3436;
}

.navbar-nav .dropdown-item:hover {
    background: rgba(201, 42, 42, 0.08);
    color: var(--primary-color);
}

/* ===== NAVBAR TOGGLER (Mobile) ===== */
.navbar-toggler {
    position: relative;
    z-index: 1001;
    border: none;
    padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.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='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse {
    position: relative;
    z-index: 999;
}

/* ===== CONTAINER ===== */
.container-fluid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    position: relative;
    z-index: auto;
    overflow: visible;
    pointer-events: auto;
}

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
    background: #ffffff !important;
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--primary-color);
    position: relative;
    z-index: 1;
    overflow: visible;
    pointer-events: auto;
    transition: box-shadow 0.25s ease;
}

.card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: linear-gradient(135deg, rgba(201, 42, 42, 0.08) 0%, rgba(201, 42, 42, 0.04) 100%) !important;
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-dark);
    font-weight: 600;
    border-radius: 12px 12px 0 0;
}

.card-body {
    color: var(--text-dark);
}

.card-body {
    background: transparent;
    padding: 20px;
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: 5px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a01f1f 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(201, 42, 42, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a01f1f 0%, #8a1a1a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 42, 42, 0.35);
    color: #fff;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #00a676 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #f0ad4e 100%);
    color: #2d3436;
}

.btn-warning:hover {
    transform: translateY(-2px);
    color: #2d3436;
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #0770d3 100%);
    color: #fff;
}

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

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #d63031 100%);
    color: #fff;
}

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

.btn-secondary {
    background: #95a5a6;
    color: #fff;
}

.btn-secondary:hover {
    background: #7f8c8d;
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 6px 15px;
    font-size: 0.875rem;
}

/* ===== TABLES ===== */
.table {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 0;
    color: var(--text-dark);
}

.table thead {
    background: linear-gradient(135deg, rgba(201, 42, 42, 0.1) 0%, rgba(201, 42, 42, 0.05) 100%);
    color: var(--primary-color);
}

.table thead th {
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
}

.table tbody tr {
    background: #ffffff;
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: rgba(201, 42, 42, 0.04);
}

.table tbody td {
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

/* Button group in table */
.btn-group {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.btn-group .btn {
    pointer-events: auto;
    z-index: 2;
}

/* Modal buttons */
.btn[data-bs-toggle="modal"] {
    pointer-events: auto;
}

.table-responsive {
    overflow-x: auto;
    margin: 0;
    padding: 0;
}

/* ===== FORMS ===== */
.form-control,
.form-select {
    border-radius: 5px;
    border: 1px solid var(--primary-color);
    padding: 10px 15px;
    background: #ffffff;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(201, 42, 42, 0.15);
    background: #ffffff;
    color: var(--text-dark);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* ===== BADGES ===== */
.badge {
    padding: 6px 12px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a01f1f 100%) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #00a676 100%) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #0770d3 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #f0ad4e 100%) !important;
    color: #2d3436;
}

.badge.bg-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #d63031 100%) !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%) !important;
}

/* ===== STATISTICS CARDS ===== */
.stats-card {
    background: linear-gradient(135deg, rgba(201, 42, 42, 0.1) 0%, rgba(201, 42, 42, 0.05) 100%);
    color: #2d3436;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 42, 42, 0.2);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stats-card.success {
    background: linear-gradient(135deg, rgba(47, 158, 68, 0.1) 0%, rgba(47, 158, 68, 0.05) 100%);
    border-left-color: var(--success-color);
    color: #2d3436;
}

.stats-card.warning {
    background: linear-gradient(135deg, rgba(253, 126, 20, 0.1) 0%, rgba(253, 126, 20, 0.05) 100%);
    border-left-color: var(--warning-color);
    color: #2d3436;
}

.stats-card.info {
    background: linear-gradient(135deg, rgba(25, 113, 194, 0.1) 0%, rgba(25, 113, 194, 0.05) 100%);
    border-left-color: var(--info-color);
    color: #2d3436;
}

.stats-card .stats-value {
    font-size: 2rem;
    font-weight: bold;
    margin: 10px 0;
    color: var(--primary-color);
}

.stats-card.success .stats-value { color: var(--success-color); }
.stats-card.warning .stats-value { color: var(--warning-color); }
.stats-card.info .stats-value { color: var(--info-color); }

.stats-value {
    font-size: 2rem;
    font-weight: bold;
    margin: 10px 0;
    color: var(--primary-color);
}

.stats-label {
    font-size: 0.9rem;
    opacity: 0.9;
    color: #2d3436;
}

/* ===== DASHBOARD ===== */
.dashboard-hero {
    background: linear-gradient(135deg, rgba(201, 42, 42, 0.08) 0%, rgba(201, 42, 42, 0.03) 100%);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 24px;
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.dashboard-hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.dashboard-hero h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
}

.dashboard-hero p {
    margin: 4px 0 0 0;
    font-size: 0.9rem;
    color: #666;
}

.stats-card .stats-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.stats-card .stats-icon {
    background: rgba(201, 42, 42, 0.15);
    color: var(--primary-color);
}

.stats-card.success .stats-icon {
    background: rgba(47, 158, 68, 0.15);
    color: var(--success-color);
}

.stats-card.warning .stats-icon {
    background: rgba(253, 126, 20, 0.15);
    color: var(--warning-color);
}

.stats-card.info .stats-icon {
    background: rgba(25, 113, 194, 0.15);
    color: var(--info-color);
}

.dashboard-table-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-table-card .card-header .btn-link-dashboard {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.dashboard-table-card .card-header .btn-link-dashboard:hover {
    color: #a01f1f;
}

/* Üye dashboard */
.dashboard-welcome-card {
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border-radius: 14px;
    border-left: 4px solid var(--primary-color);
    overflow: hidden;
}

.dashboard-welcome-card .card-header {
    font-size: 1.1rem;
    padding: 18px 20px;
}

.dashboard-welcome-card .welcome-greeting {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-welcome-card .welcome-greeting .greeting-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(201, 42, 42, 0.12);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.dashboard-progress-block {
    background: linear-gradient(135deg, rgba(47, 158, 68, 0.06) 0%, rgba(47, 158, 68, 0.02) 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(47, 158, 68, 0.2);
}

.dashboard-progress-block h5 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.dashboard-progress-block .progress {
    height: 28px;
    border-radius: 14px;
}

.dashboard-quick-stat {
    border-radius: 12px;
    border: 1px solid rgba(47, 158, 68, 0.2);
    background: linear-gradient(135deg, rgba(47, 158, 68, 0.08) 0%, rgba(47, 158, 68, 0.03) 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-quick-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(47, 158, 68, 0.15);
}

.dashboard-quick-stat .card-body {
    padding: 20px;
}

.dashboard-quick-stat .quick-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(47, 158, 68, 0.2);
    color: var(--success-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 12px;
}

.dashboard-quick-stat h4 {
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 4px;
}

.dashboard-today-workout {
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.dashboard-today-workout:not(.border-success) .card-header {
    background: linear-gradient(135deg, rgba(201, 42, 42, 0.12) 0%, rgba(201, 42, 42, 0.06) 100%) !important;
    color: var(--text-dark);
}

.dashboard-today-workout.border-success .card-header {
    border-radius: 14px 14px 0 0;
}

.dashboard-today-workout .card-body .btn-primary {
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dashboard-rules .card-header {
    border-radius: 12px 12px 0 0;
}

.dashboard-rules .list-group-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.dashboard-rules .list-group-item i {
    margin-top: 2px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .dashboard-hero {
        padding: 16px 18px;
        margin-bottom: 18px;
    }
    .dashboard-hero-icon {
        width: 42px;
        height: 42px;
        font-size: 1.25rem;
    }
    .dashboard-hero h2 {
        font-size: 1.2rem;
    }
    .stats-card .stats-icon {
        width: 38px;
        height: 38px;
        font-size: 1.15rem;
    }
}

/* ===== PROGRAM CARDS ===== */
.program-day-card {
    border-left: 4px solid var(--primary-color);
    margin-bottom: 15px;
    transition: all 0.2s ease;
}

.program-day-card.completed {
    border-left-color: var(--success-color);
    background-color: #f0fff4;
}

.program-day-card.rest-day {
    border-left-color: #bdc3c7;
    background-color: #f8f9fa;
}

/* ===== EXERCISE CARDS ===== */
.exercise-card {
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.exercise-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(201, 42, 42, 0.2);
    transform: translateY(-2px);
}

.exercise-card.border-primary {
    border-color: var(--primary-color) !important;
    border-width: 2px !important;
}

.exercise-mobile-card {
    border-left: 4px solid var(--primary-color);
    transition: all 0.2s ease;
}

.exercise-mobile-card.border-success {
    border-left-color: var(--success-color);
    background-color: #f0fff4;
}

.exercise-mobile-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

/* ===== EXERCISE ITEM ===== */
.exercise-item {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.exercise-item:last-child {
    border-bottom: none;
}

.exercise-item.completed {
    background-color: #f0fff4;
}

/* ===== COMPLETE BUTTON ===== */
.complete-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--success-color);
    background-color: #fff;
    color: var(--success-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.complete-btn:hover {
    background-color: var(--success-color);
    color: #fff;
    transform: scale(1.1);
}

.complete-btn.completed {
    background-color: var(--success-color);
    color: #fff;
}

/* ===== PROGRESS BAR ===== */
.progress {
    height: 25px;
    border-radius: 10px;
    background: #f0f0f0;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.progress-bar {
    border-radius: 10px;
    background: linear-gradient(135deg, var(--success-color) 0%, #00a676 100%);
    box-shadow: 0 2px 5px rgba(0, 184, 148, 0.3);
    transition: width 0.6s ease;
}

.progress-bar.bg-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #00a676 100%) !important;
}

.progress-bar.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a01f1f 100%) !important;
}

/* ===== ALERTS ===== */
.alert {
    border: none;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
    border-left: 4px solid;
    background: #ffffff;
}

.alert-success {
    background: rgba(47, 158, 68, 0.08);
    color: #2f9e44;
    border-left-color: var(--success-color);
}

.alert-danger {
    background: rgba(201, 42, 42, 0.08);
    color: var(--primary-color);
    border-left-color: var(--danger-color);
}

.alert-warning {
    background: rgba(253, 126, 20, 0.08);
    color: #fd7e14;
    border-left-color: var(--warning-color);
}

.alert-info {
    background: rgba(25, 113, 194, 0.08);
    color: #1971c2;
    border-left-color: var(--info-color);
}

/* ===== CALENDAR ===== */
.calendar-day {
    min-height: 100px;
    border: 1px solid var(--border-color);
    padding: 10px;
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    transition: all 0.2s ease;
}

.calendar-day:hover {
    background: rgba(201, 42, 42, 0.04);
}

.calendar-day.has-workout {
    background-color: #f0f7ff;
}

.calendar-day.completed {
    background-color: #f0fff4;
}

.calendar-day.today {
    border: 2px solid var(--primary-color);
    font-weight: bold;
}

/* ===== LIST GROUP ===== */
.list-group-item {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 0;
    background: transparent;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item i {
    flex-shrink: 0;
    margin-right: 8px;
}

/* ===== MODAL ===== */
/* Bootstrap modal system - Use default, no override */


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    /* Body & Container */
    body {
        padding: 0;
    }
    
    .container-fluid {
        padding: 0;
        max-width: 100%;
        margin: 0;
    }
    
    /* Navbar */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1rem;
        margin-left: 8px;
    }
    
    .navbar-brand img {
        max-height: 44px;
        height: 44px;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.9rem;
    }
    
    /* Cards */
    .card {
        margin-bottom: 8px;
        margin-left: 8px;
        margin-right: 8px;
        border-radius: 6px;
    }
    
    .card:first-child {
        margin-top: 8px;
    }
    
    .card-body {
        padding: 10px;
    }
    
    .card-header {
        padding: 10px;
    }
    
    /* Buttons */
    .btn {
        padding: 7px 14px;
        font-size: 0.85rem;
        border-radius: 5px;
    }
    
    .btn-sm {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    
    .btn-lg {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    /* Typography */
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    h4, h5, h6 {
        font-size: 0.95rem;
    }
    
    /* Statistics */
    .stats-value {
        font-size: 1.3rem;
    }
    
    /* Program cards */
    .program-day-card .card-header {
        padding: 10px 12px;
    }
    
    .program-day-card .card-header h6 {
        font-size: 0.9rem;
    }
    
    .program-day-card .card-body {
        padding: 10px;
    }
    
    /* Exercise mobile card */
    .exercise-mobile-card .card-body {
        padding: 10px;
    }
    
    .exercise-mobile-card strong {
        font-size: 0.9rem;
    }
    
    /* Badge */
    .badge {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    /* Forms */
    .form-control,
    .form-select {
        padding: 8px 10px;
        font-size: 0.9rem;
        border-radius: 5px;
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    /* Table */
    .table {
        font-size: 0.8rem;
        margin-bottom: 0;
        margin: 0;
    }
    
    .table thead th,
    .table tbody td {
        padding: 8px;
        word-break: break-word;
    }
    
    .table thead th {
        font-size: 0.75rem;
    }
    
    /* Button group in table */
    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
        padding: 6px 8px;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .btn-group a {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Modal */
    .modal {
        display: flex !important;
        z-index: 9999 !important;
    }
    
    .modal-dialog {
        z-index: 10000 !important;
        max-width: 95% !important;
        margin: 10px auto;
    }
    
    .modal-content {
        z-index: 10001 !important;
        border-radius: 8px;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-body {
        max-height: 65vh !important;
        padding: 12px;
    }
    
    .modal-footer {
        padding: 12px;
    }
    
    .modal-backdrop {
        z-index: 9998 !important;
    }
    
    /* Alert */
    .alert {
        padding: 10px 12px;
        margin-bottom: 10px;
        font-size: 0.9rem;
    }
    
    /* Dropdown menu */
    .dropdown-menu {
        font-size: 0.9rem;
    }
    
    .dropdown-item {
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    /* Container */
    .container-fluid {
        padding: 0;
        margin: 0;
        max-width: 100%;
    }
    
    /* Navbar */
    .navbar {
        padding: 0.4rem 0;
    }
    
    .navbar-brand {
        font-size: 0.9rem;
        margin-left: 6px;
    }
    
    .navbar-brand img {
        max-height: 38px;
        height: 38px;
    }
    
    .navbar-nav .nav-link {
        padding: 0.4rem 0.5rem !important;
        font-size: 0.8rem;
    }
    
    /* Cards */
    .card {
        margin-bottom: 6px;
        margin-left: 6px;
        margin-right: 6px;
        border-radius: 5px;
    }
    
    .card:first-child {
        margin-top: 6px;
    }
    
    .card-body {
        padding: 8px;
    }
    
    .card-header {
        padding: 8px;
    }
    
    /* Typography */
    h1 {
        font-size: 1.2rem;
    }
    
    h2 {
        font-size: 1.1rem;
    }
    
    h3 {
        font-size: 0.95rem;
    }
    
    h4, h5, h6 {
        font-size: 0.85rem;
    }
    
    /* Statistics */
    .stats-value {
        font-size: 1.1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 5px 10px;
        font-size: 0.8rem;
        width: 100%;
    }
    
    .btn-sm {
        padding: 3px 8px;
        font-size: 0.7rem;
    }
    
    /* Forms */
    .form-control,
    .form-select {
        padding: 6px 8px;
        font-size: 0.85rem;
    }
    
    .form-label {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }
    
    /* Table */
    .table {
        font-size: 0.7rem;
        margin: 0;
    }
    
    .table thead th,
    .table tbody td {
        padding: 6px;
        word-break: break-word;
    }
    
    /* Button group in table */
    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 3px;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
        padding: 5px 6px;
        font-size: 0.65rem;
        white-space: nowrap;
    }
    
    .btn-group a {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Badge */
    .badge {
        font-size: 0.65rem;
        padding: 2px 4px;
    }
    
    /* Modal */
    .modal-dialog {
        max-width: 100% !important;
        margin: 5px;
    }
    
    .modal-header {
        padding: 10px;
    }
    
    .modal-body {
        padding: 10px;
        max-height: 70vh !important;
    }
    
    .modal-footer {
        padding: 10px;
    }
    
    /* Alert */
    .alert {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    /* Dropdown */
    .dropdown-menu {
        font-size: 0.85rem;
    }
    
    .dropdown-item {
        padding: 6px 10px;
    }
}

/* ===== TABLET & DESKTOP TABLE STYLES ===== */
@media (min-width: 768px) {
    .table thead {
        display: table-header-group;
    }
    
    .table thead th {
        padding: 12px;
        text-align: left;
        font-weight: 600;
        background: linear-gradient(135deg, rgba(201, 42, 42, 0.1) 0%, rgba(201, 42, 42, 0.05) 100%);
        color: #c92a2a;
        border-bottom: 2px solid #c92a2a;
    }
    
    .table tbody {
        display: table-row-group;
    }
    
    .table tbody tr {
        display: table-row;
        background: #ffffff;
        border: none;
    }
    
    .table tbody td {
        display: table-cell;
        padding: 12px;
        border-bottom: 1px solid #e0e0e0;
        text-align: left;
        word-break: normal;
        white-space: nowrap;
    }
    
    .table tbody td:before {
        display: none;
    }
    
    .table tbody tr:hover {
        background: rgba(201, 42, 42, 0.04);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .btn,
    .no-print,
    .modal {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
    
    body {
        background: #fff !important;
    }
}
