/* Custom Gym Schedule Styles */

:root {
    --primary-color: #e74c3c;
    --secondary-color: #2c3e50;
    --accent-color: #3498db;
    --success-color: #27ae60;
    --dark-bg: #1a1a1a;
    --card-bg: #2d2d2d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: url('https://gym.rantaurentbikebali.com/uploads/bghome.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    color: #333;
    position: relative;
}

/* Overlay untuk background (optional - buat text lebih terbaca) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

/* Hero Section */
.hero-section {
    padding: 40px 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #27ae60;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

/* Tab Buttons */
.schedule-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    padding: 15px 35px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.tab-btn.active {
    background: white;
    color: var(--primary-color);
    border-color: white;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255,255,255,0.3);
}

.current-badge {
    background: #27ae60;
    color: white;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: 5px;
    font-weight: 700;
}

/* Schedule Content Container */
.schedule-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Day Card for Tab View */
.day-card-tab {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.day-header-tab {
    background: linear-gradient(135deg, var(--primary-color), #c0392b);
    color: white;
    padding: 25px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day-icon-large {
    font-size: 2.5rem;
    margin-right: 15px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.badge-count-large {
    background: rgba(255,255,255,0.25);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
}

/* Exercise List */
.exercise-list {
    padding: 30px;
}

/* Exercise Item - Clickable Modal Trigger */
.exercise-item-clickable {
    background: #f8f9fa;
    border-radius: 20px;
    margin-bottom: 20px;
    border-left: 6px solid var(--accent-color);
    transition: all 0.3s;
    cursor: pointer;
    overflow: hidden;
}

.exercise-item-clickable:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-left-color: var(--primary-color);
    background: white;
}

/* Exercise Header - Clickable Area */
.exercise-header-click {
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.exercise-number-large {
    background: linear-gradient(135deg, var(--primary-color), #c0392b);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.exercise-info-main {
    flex: 1;
}

.exercise-name-tab {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.exercise-target-preview {
    color: #7f8c8d;
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
}

.target-icon {
    font-style: normal;
    margin-right: 5px;
}

/* Tap Hint */
.tap-hint {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px;
    border-radius: 15px;
    background: rgba(52, 152, 219, 0.1);
    transition: all 0.3s;
}

.exercise-item-clickable:hover .tap-hint {
    background: var(--accent-color);
}

.tap-icon {
    font-size: 1.5rem;
    animation: tapPulse 1.5s infinite;
}

@keyframes tapPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.tap-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
    transition: all 0.3s;
}

.exercise-item-clickable:hover .tap-text {
    color: white;
}

/* Modal Customization */
.modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), #c0392b);
    color: white;
    border-bottom: none;
    padding: 20px 25px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-body {
    padding: 25px;
    max-height: 70vh;
}

.modal-footer {
    border-top: 1px solid #e0e0e0;
    padding: 15px 25px;
}

/* Modal Sections */
.modal-section {
    margin-bottom: 25px;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--accent-color);
}

.section-content {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
}

.target-muscles {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(52, 152, 219, 0.05));
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    font-weight: 600;
    color: var(--secondary-color);
}

/* Media Preview in Modal */
.media-preview {
    margin-top: 15px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.media-preview img,
.media-preview video {
    width: 100%;
    height: auto;
    display: block;
}

/* Info Alert */
.alert {
    border-radius: 12px;
    border: none;
}

.info-icon {
    font-style: normal;
    margin-right: 8px;
}

/* Responsive Tab System */
@media (max-width: 768px) {
    .hero-section {
        padding: 20px 0;
    }
    
    .schedule-tabs {
        gap: 10px;
    }
    
    .tab-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .day-header-tab {
        padding: 20px 25px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .day-icon-large {
        font-size: 2rem;
        margin-right: 0;
    }
    
    .exercise-list {
        padding: 20px;
    }
    
    /* Clickable card mobile */
    .exercise-header-click {
        padding: 20px;
        gap: 15px;
    }
    
    .exercise-number-large {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .exercise-name-tab {
        font-size: 1.2rem;
    }
    
    .exercise-target-preview {
        font-size: 0.9rem;
    }
    
    .tap-hint {
        padding: 8px;
    }
    
    .tap-icon {
        font-size: 1.3rem;
    }
    
    .tap-text {
        font-size: 0.7rem;
    }
    
    /* Modal mobile */
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-title {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 20px;
        max-height: 60vh;
    }
    
    .section-title {
        font-size: 1rem;
    }
    
    .section-content {
        font-size: 0.95rem;
    }
}

/* Navbar */
.navbar-custom-modern {
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    padding: 15px 0;
}

.navbar-brand-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
    font-size: 1.4rem;
}

.brand-icon {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.brand-text {
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-actions {
    display: flex;
    gap: 12px;
}

.nav-btn {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.nav-btn-success {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
}

.nav-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
    color: white;
}

.nav-btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.nav-btn-outline:hover {
    background: white;
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.btn-icon {
    font-size: 1.1rem;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .navbar-brand-modern {
        font-size: 1.1rem;
    }
    
    .brand-icon {
        font-size: 1.5rem;
    }
    
    .navbar-actions {
        gap: 8px;
    }
    
    .nav-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .btn-text {
        display: none;
    }
    
    .btn-icon {
        font-size: 1.3rem;
    }
}

/* Cards */
.day-card-tab {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

.modal-header {
    background: var(--primary-color);
    color: white;
    border-bottom: none;
}

.modal-body {
    padding: 25px;
}

.modal-body img,
.modal-body video {
    border-radius: 15px;
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), #c0392b);
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

/* Attendance */
.attendance-form {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.attendance-history {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
}

/* Table */
.table-custom {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.table-custom thead {
    background: var(--secondary-color);
    color: white;
}

/* Admin Panel */
.admin-sidebar {
    background: var(--dark-bg);
    min-height: 100vh;
    padding: 20px;
}

.admin-sidebar .nav-link {
    color: #bdc3c7;
    padding: 12px 20px;
    margin-bottom: 5px;
    border-radius: 8px;
    transition: all 0.3s;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: var(--primary-color);
    color: white;
}

/* Login Form */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    max-width: 400px;
    width: 100%;
}

/* Modal */
.modal-header {
    background: var(--primary-color);
    color: white;
}

/* Animation Improvements */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: slideIn 0.5s ease-out;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.active-day {
    animation: pulse 2s infinite;
}

/* Quick Navigation */
.quick-nav-container {
    position: sticky;
    top: 70px;
    z-index: 100;
    margin: 30px 0;
}

.quick-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.quick-nav-btn {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.quick-nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    background: white;
    color: var(--primary-color);
}

.quick-nav-btn .day-icon {
    font-size: 1.2rem;
}

/* Footer Modern */
.footer-modern {
    background: linear-gradient(135deg, var(--secondary-color), #1a252f);
    margin-top: 50px;
    padding: 30px 0 !important;
}

.footer-modern p {
    margin: 5px 0;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.active-day {
    animation: pulse 2s infinite;
}

/* Modal Improvements */
.modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

.modal-header {
    background: var(--primary-color);
    color: white;
    border-bottom: none;
}

.modal-body {
    padding: 25px;
}

.modal-body img,
.modal-body video {
    border-radius: 15px;
}

/* Responsive Quick Nav */
@media (max-width: 768px) {
    .quick-nav-buttons {
        gap: 10px;
    }
    
    .quick-nav-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .quick-nav-btn .day-icon {
        font-size: 1rem;
    }
}