/* ===================================
   GLOBAL FITNESS v3.0 - Professional Overrides
   Sobrescribe estilos antiguos para el diseño profesional
   ================================= */

/* Actualizar glass-effect con gradientes sutiles */
.glass-effect {
    background: linear-gradient(135deg, #ffffff 0%, #fdfbfb 100%);
    backdrop-filter: none;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.glass-effect:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: rgba(255, 68, 68, 0.15);
}

/* Actualizar glow-effect para ser más sutil */
.glow-effect {
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.2);
    border: 2px solid #FF4444;
}

/* Actualizar colores de texto */
.text-gray-300 {
    color: #6b7280 !important;
}

.text-gray-400 {
    color: #9ca3af !important;
}

.text-gray-500 {
    color: #6b7280 !important;
}

/* Botones con gradiente moderno */
.bg-gradient-to-r {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF4444 50%, #EE3333 100%) !important;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
    transition: all 0.3s ease;
}

.bg-gradient-to-r:hover {
    background: linear-gradient(135deg, #FF5555 0%, #EE3333 50%, #CC0000 100%) !important;
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.4);
    transform: translateY(-2px);
}

/* Timeline moderno con gradientes */
.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline-item {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #e5e7eb, #f3f4f6);
    border-radius: 2px;
}

.timeline-item.completed::before {
    background: linear-gradient(to bottom, #10b981 0%, #059669 100%);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -7px;
    top: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.timeline-item.completed::after {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.3);
}

/* Tabs modernos con gradientes */
.tab-button {
    padding: 0.875rem 1.75rem;
    border-radius: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
    color: #6b7280;
    border: 1px solid transparent;
    position: relative;
}

.tab-button::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.05), rgba(255, 107, 107, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-button:hover {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    color: #1a1a1a;
}

.tab-button.active {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF4444 50%, #EE3333 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

.tab-button.active::before {
    opacity: 1;
}

/* Stats cards con gradientes */
.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #fdfbfb 100%);
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 68, 68, 0.05), transparent 70%);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 68, 68, 0.2);
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

/* Modal moderno */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content-modern {
    background: white;
    border-radius: 1rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress bars */
.progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF4444, #FF6666);
    border-radius: 9999px;
    transition: width 0.5s ease-out;
}

/* Badge moderno */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-primary {
    background: #fef2f2;
    color: #991b1b;
}

.badge-success {
    background: #f0fdf4;
    color: #166534;
}

.badge-warning {
    background: #fefce8;
    color: #854d0e;
}

.badge-info {
    background: #eff6ff;
    color: #1e40af;
}

/* Alerts profesionales */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid;
    margin-bottom: 1rem;
}

.alert-success {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

.alert-warning {
    background: #fefce8;
    border-color: #eab308;
    color: #854d0e;
}

.alert-info {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
}

/* Divider */
.divider {
    height: 1px;
    background: #e5e7eb;
    margin: 2rem 0;
}

.divider-text {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.divider-text::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
    z-index: 0;
}

.divider-text span {
    position: relative;
    z-index: 1;
    background: white;
    padding: 0 1rem;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Section header */
.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: #6b7280;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.empty-state-description {
    color: #6b7280;
    max-width: 400px;
    margin: 0 auto;
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #FF4444;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Tooltip moderno */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    background: #1a1a1a;
    color: white;
    text-align: center;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.875rem;
    white-space: nowrap;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Dropdown moderno */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    padding: 0.5rem;
}

.dropdown.active .dropdown-menu {
    display: block;
    animation: dropdownSlideIn 0.2s ease-out;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #1a1a1a;
}

.dropdown-item:hover {
    background: #f3f4f6;
}

/* Avatar */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF4444, #CC0000);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.avatar-lg {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

/* Skeleton loader */
.skeleton {
    background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 0.5rem;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Selection color */
::selection {
    background: #fecaca;
    color: #991b1b;
}

::-moz-selection {
    background: #fecaca;
    color: #991b1b;
}
