html, body {
    font-family: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

a, .btn-link {
    color: #16a085;
    font-weight: 500;
}

a:hover, .btn-link:hover {
    color: #1abc9c;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 15px 0 rgba(46, 204, 113, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(46, 204, 113, 0.4);
}

.btn-secondary {
    color: #fff;
    background: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 15px 0 rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(52, 152, 219, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 15px 0 rgba(243, 156, 18, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(243, 156, 18, 0.4);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(46, 204, 113, 0.5);
}

.content {
    padding-top: 1.1rem;
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    font-weight: 600;
}

/* Hero Section Styling */
.display-4 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.lead {
    color: #34495e;
    font-weight: 500;
}

/* Fitness Icon Colors */
.text-primary {
    color: #27ae60 !important;
}

.text-success {
    color: #f39c12 !important;
}

.text-warning {
    color: #e74c3c !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 3rem 0;
    margin: -1.1rem -15px 3rem -15px;
    border-radius: 0 0 30px 30px;
}

.hero-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    color: #34495e;
    font-weight: 600;
    font-size: 1.3rem;
}

.hero-stats {
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    margin: 0 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Feature Cards */
.features-section .feature-card {
    transition: all 0.4s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.features-section .feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1) 0%, rgba(46, 204, 113, 0.1) 100%);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.2) 0%, rgba(46, 204, 113, 0.2) 100%);
}

.feature-highlight {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1rem;
    display: inline-block;
}

/* Call to Action */
.cta-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cta-card .card-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.cta-card .card-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-button {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(39, 174, 96, 0.4);
    background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
}

/* Badge Enhancements */
.badge {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.badge-success {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.badge-warning {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

/* Alert Enhancements */
.alert {
    border: none;
    border-radius: 15px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.alert-info {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(93, 173, 226, 0.1) 100%);
    border-left: 4px solid #3498db;
}

.alert-success {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1) 0%, rgba(46, 204, 113, 0.1) 100%);
    border-left: 4px solid #27ae60;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.1) 0%, rgba(230, 126, 34, 0.1) 100%);
    border-left: 4px solid #f39c12;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(192, 57, 43, 0.1) 100%);
    border-left: 4px solid #e74c3c;
}

/* Loading and Progress Enhancements */
.spinner-border {
    border-color: #27ae60;
    border-right-color: transparent;
}

.progress {
    height: 8px;
    border-radius: 10px;
    background-color: rgba(236, 240, 241, 0.8);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Workout Type Specific Colors */
.workout-upper {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.workout-lower {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.workout-cardio {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    border: none;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(39, 174, 96, 0.4);
}

/* Workout Stats Cards */
.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-description {
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

/* Motivational Quotes */
.quote-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    margin: 2rem 0;
}

.quote-text {
    font-size: 1.3rem;
    font-style: italic;
    color: #34495e;
    font-weight: 500;
    margin-bottom: 1rem;
}

.quote-author {
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .feature-icon {
        width: 80px;
        height: 80px;
    }
    
    .cta-card .card-title {
        font-size: 1.8rem;
    }
    
    .hero-section {
        margin-left: 0;
        margin-right: 0;
        padding: 2rem 0;
    }
}

/* Cardio High Point Highlighting */
.table-warning {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.border-warning {
    border-color: #ffc107 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.cardio-high-point {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 133, 27, 0.1) 100%);
    border-left: 4px solid #ffc107;
}

.high-point-badge {
    background: linear-gradient(135deg, #ffc107 0%, #ff851b 100%);
    color: #fff;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

/* Mobile-specific cardio table improvements */
@media (max-width: 576px) {
    .cardio-intensity-table .table-sm td,
    .cardio-intensity-table .table-sm th {
        padding: 0.5rem 0.25rem;
        font-size: 0.875rem;
    }
    
    .cardio-intensity-table .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .cardio-intensity-table .form-control-sm {
        font-size: 0.875rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-stats .col-auto {
        margin-bottom: 1rem;
    }
    
    .stat-item {
        margin: 0 0.5rem;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .fab {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #27ae60;
    box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.25);
}

.invalid {
    outline: 1px solid #e74c3c;
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
}

.validation-message {
    color: #e74c3c;
    font-weight: 500;
}

/* Form Control Enhancements */
.form-control {
    border-radius: 10px;
    border: 2px solid #ecf0f1;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #27ae60;
    box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.25);
}

/* Table Enhancements */
.table {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.table thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr:hover {
    background: rgba(39, 174, 96, 0.1);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* Google Sign-In Button Styling */
.google-signin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    background-color: #fff;
    color: #3c4043;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.218s, border-color 0.218s, box-shadow 0.218s;
    min-width: 0;
    text-decoration: none;
    gap: 12px;
}

.google-signin-btn:hover {
    background-color: #f8f9fa;
    border-color: #dadce0;
    box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.302), 0 4px 8px 3px rgba(60, 64, 67, 0.149);
}

.google-signin-btn:focus {
    background-color: #f8f9fa;
    border-color: #4285f4;
    outline: none;
    box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.302), 0 4px 8px 3px rgba(60, 64, 67, 0.149);
}

.google-signin-btn:active {
    background-color: #f1f3f4;
    border-color: #dadce0;
    box-shadow: 0 2px 3px 0 rgba(60, 64, 67, 0.302);
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUx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YgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* Donate Button Styling */
.donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
}

.donate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none !important;
}

/* Heart Icon for Donate Button */
.bi-heart-fill-donate {
    display: inline-block;
    position: relative;
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    background-size: cover;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-heart-fill' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.314C12.438-3.248 23.534 4.735 8 15-7.534 4.736 3.562-3.248 8 1.314z'/%3E%3C/svg%3E");
}
