/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial Black', Arial, sans-serif;
    background: #121212;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 15px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #ff0040, #ffff00, #00ff40);
    opacity: 0.1;
    animation: heroGlow 3s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.1; }
    100% { opacity: 0.2; }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ffff00, #ff0040, #00ff40);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

/* Progress Dashboard */
.daily-motivation {
    position: relative;
    z-index: 1;
    margin: 30px 0;
}

.quote-container {
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.9) 0%, rgba(26, 26, 26, 0.9) 100%);
    border: 2px solid #444;
    border-radius: 20px;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.quote-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffff00, #00ff40, #ff0040, #00bfff);
    opacity: 0.8;
}

.quote-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.quote-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    font-style: italic;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
}

.quote-text::before,
.quote-text::after {
    content: '"';
    font-size: 2rem;
    color: #ffff00;
    font-weight: bold;
}

.quote-author {
    font-size: 1rem;
    color: #cccccc;
    margin-bottom: 20px;
    font-style: italic;
}

.new-quote-btn {
    background: linear-gradient(135deg, #ffff00, #ff0040);
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    color: #000000;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 255, 0, 0.3);
}

.new-quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 0, 0.5);
    background: linear-gradient(135deg, #00ff40, #ffff00);
}

.new-quote-btn:active {
    transform: translateY(0);
}

/* Meal Plan Styling */
.meal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.regenerate-meal-btn {
    background: linear-gradient(135deg, #00ff40, #ffff00);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    color: #000000;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 255, 64, 0.3);
}

.regenerate-meal-btn:hover {
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 4px 15px rgba(0, 255, 64, 0.5);
    background: linear-gradient(135deg, #ffff00, #ff0040);
}

.regenerate-meal-btn:active {
    transform: scale(0.95);
}

/* Challenge Tracking Styles */
.task-info {
    background: #2a2a2a;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border: 2px solid #444;
}

.daily-task {
    margin-bottom: 20px;
}

.daily-task h4 {
    color: #ffff00;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.task-name {
    font-size: 1.4rem;
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 8px;
}

.task-target {
    color: #00ff40;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.task-complete-btn {
    background: linear-gradient(135deg, #00ff40, #ffff00);
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    color: #000000;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 255, 64, 0.3);
}

.task-complete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 64, 0.5);
    background: linear-gradient(135deg, #ffff00, #ff0040);
}

.week-progress h4 {
    color: #ffff00;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.day-indicators {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.day-indicator {
    background: #1a1a1a;
    border: 2px solid #444;
    border-radius: 8px;
    padding: 10px 15px;
    color: #cccccc;
    font-weight: bold;
    transition: all 0.3s ease;
}

.day-indicator.completed {
    background: linear-gradient(135deg, #00ff40, #00cc32);
    border-color: #00ff40;
    color: #000000;
}

.day-indicator.current {
    background: linear-gradient(135deg, #ffff00, #ff8800);
    border-color: #ffff00;
    color: #000000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 0, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px 5px rgba(255, 255, 0, 0.1); }
}

/* Navigation */
.main-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 10px;
    color: #ffffff;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:hover {
    border-color: #ffff00;
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.3);
    transform: translateY(-2px);
}

.nav-btn.active {
    background: linear-gradient(135deg, #ffff00, #ff0040);
    border-color: #ffff00;
    color: #000000;
    box-shadow: 0 0 30px rgba(255, 255, 0, 0.5);
}

.nav-icon {
    width: 24px;
    height: 24px;
}

/* Content Sections */
.content-section {
    display: none;
    background: #1a1a1a;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #333;
}

.content-section.active {
    display: block;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #ffff00;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.section-header p {
    font-size: 1.1rem;
    color: #cccccc;
}

/* Buttons */
.primary-btn, .secondary-btn, .danger-btn, .success-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.primary-btn {
    background: linear-gradient(135deg, #ffff00, #ff8800);
    color: #000000;
    box-shadow: 0 4px 15px rgba(255, 255, 0, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 0, 0.5);
}

.secondary-btn {
    background: linear-gradient(135deg, #444, #666);
    color: #ffffff;
    border: 1px solid #666;
}

.secondary-btn:hover {
    background: linear-gradient(135deg, #555, #777);
    border-color: #ffff00;
}

.danger-btn {
    background: linear-gradient(135deg, #ff0040, #cc0033);
    color: #ffffff;
}

.success-btn {
    background: linear-gradient(135deg, #00ff40, #00cc33);
    color: #000000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Workout Section */
.workout-controls, .martial-controls, .challenge-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.workout-display, .drill-display, .challenge-display {
    background: #2a2a2a;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #444;
}

.workout-header {
    text-align: center;
    margin-bottom: 30px;
}

.workout-progress {
    margin-top: 15px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #444;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffff00, #00ff40);
    transition: width 0.5s ease;
    border-radius: 4px;
}

.exercise-card, .drill-card, .challenge-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
}

.exercise-visual, .drill-visual {
    width: 120px;
    height: 120px;
    background: #333;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #555;
}

.exercise-icon, .drill-icon {
    width: 80px;
    height: 80px;
    background: #555;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.exercise-info h4, .drill-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffff00;
}

.exercise-details, .drill-details {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.exercise-details span, .drill-details span {
    background: #444;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #666;
}

.exercise-instructions, .drill-instructions {
    color: #cccccc;
    line-height: 1.6;
}

/* Rest Timer */
.rest-timer, .drill-timer {
    text-align: center;
    background: #333;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    border: 2px solid #ff0040;
}

.timer-display, .challenge-timer-display {
    font-size: 4rem;
    font-weight: bold;
    color: #ff0040;
    text-shadow: 0 0 20px rgba(255, 0, 64, 0.8);
    margin: 20px 0;
    font-family: 'Courier New', monospace;
}

.challenge-timer-display {
    font-size: 3rem;
}

/* Martial Arts Section */
.drill-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #444;
    padding-bottom: 20px;
}

.drill-header h3 {
    color: #ffff00;
    font-size: 2rem;
    margin-bottom: 15px;
}

.drill-progress {
    margin-top: 15px;
}

.current-drill-set {
    margin: 20px 0;
    padding: 20px;
    background: #333;
    border-radius: 12px;
    border: 1px solid #555;
}

.current-drill-set h4 {
    color: #ff0040;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.drill-set-details {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.drill-set-details span {
    background: #444;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #666;
    font-weight: bold;
}

.drill-videos {
    margin-top: 25px;
    padding: 20px;
    background: #2a2a2a;
    border-radius: 12px;
    border: 1px solid #555;
}

.drill-videos h4 {
    color: #00ff40;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.video-links {
    display: grid;
    gap: 12px;
}

.video-link {
    padding: 12px 15px;
    background: #333;
    border-radius: 8px;
    border: 1px solid #555;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-link:hover {
    border-color: #ffff00;
    background: #444;
}

.video-link a {
    color: #ffff00;
    text-decoration: none;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.video-link a:hover {
    color: #ffffff;
}

.video-description {
    color: #cccccc;
    font-size: 0.9rem;
}

.youtube-search {
    background: #333 !important;
    border: 2px solid #ff0000 !important;
    transition: all 0.3s ease;
}

.youtube-search:hover {
    background: #ff0000 !important;
    border-color: #ffffff !important;
    transform: translateY(-2px);
}

.search-title {
    color: #ffff00;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1rem;
}

.search-description {
    color: #cccccc;
    font-size: 0.9rem;
}

/* Enhanced Nutrition System */
.enhanced-meal {
    position: relative;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border: 1px solid #555;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.meal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.meal-targets {
    color: #ffff00;
    font-size: 0.9rem;
    font-weight: bold;
}

.meal-version-selector {
    margin-bottom: 15px;
}

.meal-version-selector label {
    display: block;
    color: #cccccc;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.version-selector {
    background: #333;
    color: white;
    border: 1px solid #555;
    padding: 8px 12px;
    border-radius: 6px;
    width: 100%;
    max-width: 300px;
}

.ingredient-alternatives {
    margin-top: 15px;
    text-align: center;
}

.alternatives-btn {
    background: #444;
    border: 1px solid #00ff40;
    color: #00ff40;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.alternatives-btn:hover {
    background: #00ff40;
    color: #000;
}

.alternatives-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alternatives-content {
    background: #2a2a2a;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #444;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.alternatives-content h3 {
    color: #ffff00;
    text-align: center;
    margin-bottom: 20px;
}

.alternative-category {
    margin-bottom: 20px;
}

.alternative-category h4 {
    color: #00ff40;
    margin-bottom: 10px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.alternative-item {
    background: #333;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    border-left: 3px solid #ffff00;
}

.alternative-item strong {
    color: #ffff00;
}

.close-alternatives {
    display: block;
    margin: 20px auto 0;
    padding: 10px 20px;
}

.target-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #333;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #ffff00;
}

.target-label {
    color: #cccccc;
    font-weight: bold;
}

.target-value {
    color: #ffff00;
    font-size: 1.2rem;
    font-weight: bold;
}

.breakdown-info {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid #333;
}

.breakdown-info p {
    margin: 5px 0;
    color: #cccccc;
}

.next-steps {
    background: linear-gradient(135deg, #004400, #002200);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid #00ff40;
    text-align: center;
}

.next-steps p {
    color: #00ff40;
    font-weight: bold;
    margin: 0;
}

/* Enhanced Beast Challenge System */
.challenge-type-selector {
    margin-bottom: 30px;
}

.challenge-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.challenge-type-card {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border: 2px solid #444;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.challenge-type-card:hover {
    border-color: #ffff00;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 255, 0, 0.2);
}

.challenge-type-card[data-type="daily"]:hover {
    border-color: #00ff40;
    box-shadow: 0 10px 25px rgba(0, 255, 64, 0.2);
}

.challenge-type-card[data-type="extreme"]:hover {
    border-color: #ff0040;
    box-shadow: 0 10px 25px rgba(255, 0, 64, 0.2);
}

.challenge-type-card[data-type="martial"]:hover {
    border-color: #ff8000;
    box-shadow: 0 10px 25px rgba(255, 128, 0, 0.2);
}

.type-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.challenge-type-card h4 {
    color: #ffff00;
    margin: 15px 0 10px;
    font-size: 1.1rem;
}

.challenge-type-card p {
    color: #cccccc;
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.difficulty-badge {
    display: inline-block;
    background: #444;
    color: #ffff00;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid #666;
}

.enhanced-challenge {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border: 2px solid #ffff00;
    border-radius: 20px;
    padding: 30px;
    margin-top: 20px;
}

.challenge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #444;
    padding-bottom: 15px;
}

.challenge-meta {
    display: flex;
    gap: 15px;
}

.type-badge {
    background: #0066cc;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.rewards-display {
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
}

.rewards-display h4 {
    color: #ffff00;
    margin: 0 0 10px;
}

.rewards-list {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.reward-item {
    background: #333;
    color: #ffff00;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    border: 1px solid #555;
}

.requirements-check {
    background: #330000;
    border: 2px solid #ff0040;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.requirements-check h4 {
    color: #ff0040;
    margin: 0 0 10px;
}

.exercise-list {
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
}

.exercise-item {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid #00ff40;
}

.exercise-name {
    color: #ffff00;
    font-weight: bold;
    margin-bottom: 5px;
}

.exercise-details {
    color: #cccccc;
    font-size: 0.9rem;
}

.weekly-progress {
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
}

.daily-task {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.daily-task.completed {
    border-left-color: #00ff40;
    background: #002200;
}

.task-info {
    flex: 1;
}

.task-day {
    color: #ffff00;
    font-weight: bold;
    margin-bottom: 5px;
}

.task-description {
    color: #cccccc;
    font-size: 0.9rem;
}

.task-status {
    color: #00ff40;
    font-weight: bold;
}

.achievement-panel {
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
}

.achievement-panel h3 {
    color: #ffff00;
    text-align: center;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    background: #1a1a1a;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #444;
}

.stat-value {
    display: block;
    color: #ffff00;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    color: #cccccc;
    font-size: 0.8rem;
}

.badges-display {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.badge-item {
    background: linear-gradient(135deg, #444, #666);
    border: 2px solid #ffff00;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    cursor: pointer;
}

.badge-item:hover::after {
    content: attr(data-title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .challenge-types-grid {
        grid-template-columns: 1fr;
    }
    
    .challenge-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .challenge-meta {
        align-self: flex-end;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Enhanced Dashboard Styling */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 2px solid #444;
    border-radius: 15px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    border-color: #ffff00;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 0, 0.2);
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffff00, #00ff40, #ff0040);
    opacity: 0.8;
}

.card-header h3 {
    color: #ffff00;
    margin: 0 0 20px 0;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Level Card Styling */
.level-display {
    text-align: center;
}

.level-number {
    font-size: 3rem;
    font-weight: bold;
    color: #00ff40;
    text-shadow: 0 0 20px rgba(0, 255, 64, 0.5);
    margin-bottom: 10px;
    display: block;
}

.level-label {
    font-size: 1.2rem;
    color: #ffff00;
    font-weight: bold;
    margin-bottom: 15px;
    display: block;
}

.xp-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a1a;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #333;
}

.xp-label {
    color: #cccccc;
    font-size: 0.9rem;
}

.xp-value {
    color: #00ff40;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Session Stats Card */
.session-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.stat-row:hover {
    border-color: #ffff00;
    background: #252525;
}

.stat-icon {
    font-size: 1.2rem;
    margin-right: 10px;
}

.stat-name {
    color: #cccccc;
    flex: 1;
    margin-left: 10px;
}

.stat-value {
    color: #ffff00;
    font-weight: bold;
    font-size: 1.1rem;
    min-width: 30px;
    text-align: right;
}

.total-row {
    border: 2px solid #00ff40;
    background: rgba(0, 255, 64, 0.1);
}

.total-row .stat-value {
    color: #00ff40;
    font-size: 1.3rem;
}

/* Streak Card */
.streak-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: center;
}

.current-streak, .best-streak {
    padding: 15px;
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #333;
}

.streak-number, .best-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00ff40;
    text-shadow: 0 0 15px rgba(0, 255, 64, 0.5);
    display: block;
    margin-bottom: 8px;
}

.best-number {
    color: #ffff00;
    text-shadow: 0 0 15px rgba(255, 255, 0, 0.5);
}

.streak-label, .best-label {
    color: #cccccc;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Performance Card */
.performance-metrics {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #333;
}

.metric-label {
    color: #cccccc;
    font-weight: bold;
}

.metric-value {
    color: #ffff00;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Dashboard Panel Styling */
.dashboard-panel {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 2px solid #444;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.dashboard-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffff00, #00ff40, #ff0040);
    opacity: 0.8;
}

.dashboard-panel h3 {
    color: #ffff00;
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Progress Panel */
.progress-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.progress-item {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-label {
    color: #cccccc;
    font-weight: bold;
    font-size: 1rem;
}

.progress-percentage {
    color: #ffff00;
    font-weight: bold;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #333;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffff00, #00ff40);
    border-radius: 6px;
    transition: width 0.8s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Activity Chart */
.activity-chart {
    display: flex;
    justify-content: space-between;
    align-items: end;
    height: 120px;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #333;
}

.chart-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.chart-bar {
    width: 25px;
    background: linear-gradient(to top, #ffff00, #00ff40);
    border-radius: 3px;
    min-height: 10px;
    transition: all 0.3s ease;
}

.chart-bar:hover {
    transform: scaleY(1.1);
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.chart-label {
    color: #cccccc;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Data Management */
.data-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.control-group {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
}

.control-header h4 {
    color: #ffff00;
    margin-bottom: 8px;
    font-size: 1rem;
}

.control-header p {
    color: #cccccc;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.autosave-status {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
}

.autosave-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.autosave-header h4 {
    color: #ffff00;
    margin: 0;
    font-size: 1rem;
}

.autosave-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.autosave-toggle label {
    color: #cccccc;
    font-size: 0.9rem;
}

.autosave-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #00ff40;
}

.autosave-indicator {
    background: #333;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #444;
    color: #00ff40;
    font-weight: bold;
    text-align: center;
}

/* Nutrition Panel */
.nutrition-placeholder {
    text-align: center;
    padding: 30px;
    color: #cccccc;
}

.nutrition-placeholder p {
    margin-bottom: 20px;
    font-size: 1rem;
}

.nutrition-summary-display {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
}

.nutrition-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #333;
}

.nutrition-row:last-child {
    border-bottom: none;
}

.nutrition-label {
    color: #cccccc;
    font-weight: bold;
}

.nutrition-value {
    color: #ffff00;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Motivation Panel */
.motivation-content {
    text-align: center;
}

.dashboard-quote {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #00ff40;
    font-style: italic;
    color: #cccccc;
    margin-bottom: 20px;
    font-size: 1.2rem;
    line-height: 1.6;
    position: relative;
}

.dashboard-quote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 3rem;
    color: #00ff40;
    opacity: 0.3;
}

.dashboard-quote::after {
    content: '"';
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 3rem;
    color: #00ff40;
    opacity: 0.3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .data-controls {
        grid-template-columns: 1fr;
    }
    
    .streak-display {
        grid-template-columns: 1fr;
    }
    
    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .activity-chart {
        height: 100px;
        padding: 15px;
    }
    
    .chart-bar {
        width: 20px;
    }
}

@media (max-width: 480px) {
    .dashboard-card {
        padding: 20px;
    }
    
    .dashboard-panel {
        padding: 20px;
    }
    
    .level-number {
        font-size: 2.5rem;
    }
    
    .streak-number, .best-number {
        font-size: 2rem;
    }
}

.drill-timer h3 {
    text-align: center;
    color: #ff0040;
    margin-bottom: 20px;
}

/* Nutrition Section */
.nutrition-calculator {
    background: #2a2a2a;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #444;
}

.meal-plan-generator {
    background: #2a2a2a;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #444;
    text-align: center;
}

.meal-plan-display {
    background: #2a2a2a;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #444;
}

.meal-plan-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #444;
    padding-bottom: 20px;
}

.meal-plan-header h3 {
    color: #ffff00;
    font-size: 2rem;
    margin-bottom: 15px;
}

.daily-totals {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.daily-totals span {
    background: #333;
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid #555;
    font-weight: bold;
}

.daily-meals {
    display: grid;
    gap: 20px;
}

.meal-time {
    background: #333;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #555;
}

.meal-time h4 {
    color: #ffff00;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.meal-name {
    color: #00ff40;
    font-weight: bold;
    margin-bottom: 10px;
}

.meal-foods {
    margin-bottom: 15px;
}

.meal-foods ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.meal-foods li {
    padding: 5px 0;
    color: #cccccc;
    position: relative;
    padding-left: 20px;
}

.meal-foods li:before {
    content: '🍽️';
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

.meal-stats {
    display: flex;
    justify-content: space-between;
    background: #444;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.meal-stats span {
    font-weight: bold;
}

.meal-stats .calories {
    color: #ff8800;
}

.meal-stats .protein {
    color: #00ff40;
}

.meal-plan-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.calculator-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: bold;
    color: #ffff00;
}

.form-group input, .form-group select {
    padding: 12px;
    border: 1px solid #555;
    border-radius: 8px;
    background: #333;
    color: #ffffff;
    font-size: 1rem;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #ffff00;
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.3);
}

.calorie-results {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #333;
    border-radius: 8px;
    border: 1px solid #555;
}

.result-item span:last-child {
    font-weight: bold;
    color: #00ff40;
}

.meal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.meal-card {
    background: #2a2a2a;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 1px solid #444;
    transition: transform 0.3s ease;
}

.meal-card:hover {
    transform: translateY(-5px);
    border-color: #ffff00;
}

.meal-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.meal-card h4 {
    color: #ffff00;
    margin-bottom: 10px;
}

.protein-amount {
    color: #00ff40;
    font-weight: bold;
    font-size: 0.9rem;
}

.snack-list {
    display: grid;
    gap: 10px;
}

.snack-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 8px;
    border: 1px solid #444;
}

.snack-item span:last-child {
    color: #00ff40;
    font-weight: bold;
}

.nutrition-tips {
    background: #2a2a2a;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #444;
}

.nutrition-tips h3 {
    color: #ffff00;
    margin-bottom: 20px;
}

.nutrition-tips ul {
    list-style: none;
}

.nutrition-tips li {
    padding: 10px 0;
    border-bottom: 1px solid #444;
    position: relative;
    padding-left: 30px;
}

.nutrition-tips li:before {
    content: '💪';
    position: absolute;
    left: 0;
}

/* Beast Challenge Section */
.challenge-description {
    font-size: 1.2rem;
    text-align: center;
    margin: 20px 0;
    color: #cccccc;
    line-height: 1.6;
}

/* Saved Items */
.saved-items {
    background: #2a2a2a;
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    border: 1px solid #444;
}

.saved-list {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.saved-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #333;
    border-radius: 8px;
    border: 1px solid #555;
}

.saved-item-info {
    flex: 1;
}

.saved-item-name {
    font-weight: bold;
    color: #ffff00;
    margin-bottom: 5px;
}

.saved-item-details {
    font-size: 0.9rem;
    color: #cccccc;
}

.saved-item-actions {
    display: flex;
    gap: 10px;
}

.saved-item-actions button {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Quote Popup */
.quote-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.quote-content {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    text-align: center;
    border: 2px solid #ffff00;
    position: relative;
    animation: quoteAppear 0.5s ease-out;
}

@keyframes quoteAppear {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.quote-content p {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffff00;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #ff0040;
}

/* Success Animation */
.success-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.confetti {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 0, 0.3) 0%, transparent 70%);
    animation: confettiBurst 2s ease-out;
}

@keyframes confettiBurst {
    0% { 
        transform: scale(0);
        opacity: 1;
    }
    50% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% { 
        transform: scale(2);
        opacity: 0;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .main-nav {
        grid-template-columns: 1fr 1fr;
    }
    
    .nav-btn {
        font-size: 0.9rem;
        padding: 12px 15px;
    }
    
    .exercise-card, .drill-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .exercise-visual, .drill-visual {
        justify-self: center;
    }
    
    .calculator-form {
        grid-template-columns: 1fr;
    }
    
    .meal-grid {
        grid-template-columns: 1fr;
    }
    
    .workout-controls, .martial-controls, .challenge-controls {
        flex-direction: column;
    }
    
    .timer-display {
        font-size: 3rem;
    }
    
    .quote-content {
        margin: 20px;
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .main-nav {
        grid-template-columns: 1fr;
    }
    
    .exercise-details, .drill-details {
        flex-direction: column;
        gap: 10px;
    }
    
    .saved-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .saved-item-actions {
        justify-content: center;
    }
}

/* Animations and Effects */
@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(255, 255, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 255, 0, 0.8); }
    100% { box-shadow: 0 0 5px rgba(255, 255, 0, 0.5); }
}

.glow-effect {
    animation: glow 2s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake-effect {
    animation: shake 0.5s ease-in-out;
}

@keyframes flash {
    0% { background-color: #1a1a1a; }
    50% { background-color: #ffff00; }
    100% { background-color: #1a1a1a; }
}

.flash-effect {
    animation: flash 0.5s ease-in-out;
}

/* RPE Rating Modal */
.rpe-modal, .progress-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.rpe-modal.show, .progress-modal.show {
    display: flex;
}

.rpe-content, .progress-content {
    background: #2a2a2a;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #444;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.rpe-content h3, .progress-content h3 {
    color: #ffff00;
    margin-bottom: 20px;
    text-align: center;
}

.rpe-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.rpe-btn {
    background: #333;
    color: white;
    border: 1px solid #555;
    padding: 12px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.rpe-btn:hover {
    background: #444;
    border-color: #ffff00;
}

.rpe-btn.selected {
    background: #ffff00;
    color: #000;
    border-color: #ffff00;
}

.rpe-description {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    border-left: 4px solid #ffff00;
}

.completion-section {
    margin-bottom: 20px;
}

.completion-section label {
    display: block;
    margin-bottom: 10px;
    color: #cccccc;
}

#completion-slider {
    width: 100%;
    margin-bottom: 10px;
}

#completion-value {
    color: #ffff00;
    font-weight: bold;
}

.rpe-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Progress Modal */
.progress-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #444;
}

.progress-tab {
    background: none;
    border: none;
    color: #cccccc;
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.progress-tab.active {
    color: #ffff00;
    border-bottom-color: #ffff00;
}

.progress-tab-content {
    display: none;
}

.progress-tab-content.active {
    display: block;
}

.progress-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.metric-card {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #333;
}

.metric-card h4 {
    color: #cccccc;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.metric-card span {
    color: #ffff00;
    font-size: 1.5rem;
    font-weight: bold;
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    background: #1a1a1a;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid #ffff00;
}

.history-item h4 {
    color: #ffff00;
    margin-bottom: 5px;
}

.history-item p {
    color: #cccccc;
    font-size: 0.9rem;
    margin: 2px 0;
}
