/**
 * Organizer Dashboard Styles - Ultra Responsive Edition
 * Adaptable a CUALQUIER tamaño de pantalla
 * @version 4.1.0
 */

/* ========================================
   RESET Y BOX-SIZING UNIVERSAL
======================================== */
.mec-organizer-portal-wrapper *,
.mec-organizer-portal-wrapper *::before,
.mec-organizer-portal-wrapper *::after {
    box-sizing: border-box;
}

/* ========================================
   GLOBAL VARIABLES & DESIGN SYSTEM
======================================== */
:root {
    /* Vibrant Colors */
    --mec-primary: #667eea;
    --mec-primary-dark: #5568d3;
    --mec-primary-light: #a5b4fc;
    --mec-primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    /* Success & Status */
    --mec-success: #10b981;
    --mec-success-light: #d1fae5;
    --mec-warning: #f59e0b;
    --mec-warning-light: #fef3c7;
    --mec-danger: #ef4444;
    --mec-danger-light: #fee2e2;
    --mec-info: #3b82f6;
    --mec-info-light: #dbeafe;

    /* Grays */
    --mec-gray-50: #f9fafb;
    --mec-gray-100: #f3f4f6;
    --mec-gray-200: #e5e7eb;
    --mec-gray-300: #d1d5db;
    --mec-gray-400: #9ca3af;
    --mec-gray-500: #6b7280;
    --mec-gray-600: #4b5563;
    --mec-gray-700: #374151;
    --mec-gray-800: #1f2937;
    --mec-gray-900: #111827;

    /* Modern Shadows */
    --mec-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --mec-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --mec-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --mec-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --mec-shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --mec-shadow-glow: 0 0 30px rgba(102, 126, 234, 0.3);

    /* Border Radius */
    --mec-radius-sm: 8px;
    --mec-radius: 12px;
    --mec-radius-lg: 16px;
    --mec-radius-xl: 24px;

    /* Transitions */
    --mec-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --mec-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   WRAPPER & LAYOUT - ULTRA RESPONSIVE
======================================== */
.mec-organizer-portal-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(8px, 2vw, 24px);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 0%;
    position: relative;
    overflow-x: hidden;
}

.mec-organizer-portal-wrapper::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.mec-organizer-dashboard {
    position: relative;
    z-index: 1;
    max-width: 100%;
    width: 100%;
}

/* ========================================
   HEADER SECTION - ADAPTIVE
======================================== */
.mec-dash-header {
    background: linear-gradient(-45deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    padding: clamp(14px, 2.5vw, 32px);
    border-radius: clamp(12px, 2vw, 24px);
    margin-bottom: clamp(14px, 2.5vw, 32px);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: clamp(12px, 2vw, 20px);
    box-shadow: var(--mec-shadow-lg), var(--mec-shadow-glow);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.mec-dash-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    pointer-events: none;
}

.mec-dash-header>div:first-child {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-width: 0;
}

.mec-dash-header>div:last-child {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.mec-dash-header h1 {
    margin: 0 0 4px 0;
    font-size: clamp(16px, 3.5vw, 28px);
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
    word-break: break-word;
    line-height: 1.2;
}

.mec-dash-header span {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(12px, 2vw, 15px);
    font-weight: 500;
    display: block;
}

.mec-dash-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mec-dash-actions .button {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: clamp(8px, 1.5vw, 12px) clamp(14px, 2.5vw, 24px);
    border-radius: var(--mec-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(12px, 2vw, 14px);
    transition: var(--mec-transition);
    box-shadow: var(--mec-shadow);
    white-space: nowrap;
}

.mec-dash-actions .button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--mec-shadow-md);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   TAB NAVIGATION - FLUID SCROLL
======================================== */
.mec-dash-tabs {
    margin-bottom: clamp(16px, 3vw, 32px);
    border-bottom: 2px solid var(--mec-gray-200);
    display: flex;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    background: white;
    padding: 0 clamp(12px, 2vw, 24px);
    border-radius: var(--mec-radius-lg) var(--mec-radius-lg) 0 0;
    box-shadow: var(--mec-shadow-sm);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--mec-primary) var(--mec-gray-100);
    width: 100%;
}

.mec-dash-tabs::-webkit-scrollbar {
    height: 3px;
}

.mec-dash-tabs::-webkit-scrollbar-track {
    background: var(--mec-gray-100);
    border-radius: 10px;
}

.mec-dash-tabs::-webkit-scrollbar-thumb {
    background: var(--mec-primary);
    border-radius: 10px;
}

.mec-tab-link {
    padding: clamp(12px, 2vw, 16px) clamp(14px, 2.5vw, 20px);
    border-bottom: 3px solid transparent;
    color: var(--mec-gray-600);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(11px, 2vw, 14px);
    white-space: nowrap;
    transition: var(--mec-transition);
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    flex-shrink: 0;
}

.mec-tab-link i {
    font-size: clamp(13px, 2.5vw, 16px);
    transition: var(--mec-transition);
}

.mec-tab-link:hover {
    color: var(--mec-primary);
    background: linear-gradient(to bottom, transparent, rgba(102, 126, 234, 0.05));
}

.mec-tab-link:hover i {
    transform: scale(1.1);
}

.mec-tab-link.active {
    border-bottom-color: var(--mec-primary);
    color: var(--mec-primary);
    background: linear-gradient(to bottom, rgba(102, 126, 234, 0.05), rgba(102, 126, 234, 0.1));
}

.mec-tab-link.active i {
    animation: bounce 0.6s ease;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* ========================================
   TAB CONTENT
======================================== */
.mec-tab-content {
    display: none;
    animation: fadeInUp 0.4s ease;
    width: 100%;
    max-width: 100%;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   STAT CARDS - ULTRA RESPONSIVE GRID
======================================== */
.mec-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: clamp(12px, 2vw, 24px);
    margin-bottom: clamp(16px, 3vw, 32px);
    width: 100%;
}

.mec-stat-card,
.mec-overview-card {
    background: white;
    padding: clamp(16px, 2.5vw, 24px);
    border-radius: var(--mec-radius-lg);
    box-shadow: var(--mec-shadow);
    border: 1px solid var(--mec-gray-100);
    transition: var(--mec-transition);
    position: relative;
    overflow: hidden;
    min-width: 0;
    width: 100%;
}

.mec-stat-card::before,
.mec-overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--mec-primary-gradient);
    opacity: 0;
    transition: var(--mec-transition);
}

.mec-stat-card:hover,
.mec-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mec-shadow-lg);
    border-color: var(--mec-primary-light);
}

.mec-stat-card:hover::before,
.mec-overview-card:hover::before {
    opacity: 1;
}

/* Overview Card Header */
.mec-overview-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: clamp(12px, 2vw, 16px);
    gap: 10px;
    flex-wrap: wrap;
}

.mec-overview-card-title {
    font-size: clamp(11px, 1.8vw, 13px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--mec-gray-500);
    font-weight: 700;
    flex: 1 1 auto;
}

.mec-overview-card-icon {
    width: clamp(38px, 6vw, 48px);
    height: clamp(38px, 6vw, 48px);
    border-radius: var(--mec-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(16px, 3vw, 20px);
    transition: var(--mec-transition);
    flex-shrink: 0;
}

.mec-overview-card:hover .mec-overview-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.mec-overview-card-value {
    font-size: clamp(20px, 4.5vw, 36px);
    font-weight: 800;
    color: var(--mec-gray-900);
    line-height: 1.2;
    margin-bottom: clamp(8px, 1.5vw, 12px);
    word-break: break-word;
}

.mec-overview-card-footer {
    font-size: clamp(11px, 1.8vw, 13px);
    color: var(--mec-gray-500);
    line-height: 1.4;
}

/* Standard Stat Card */
.mec-stat-card h4 {
    margin: 0 0 clamp(8px, 1.5vw, 12px) 0;
    color: var(--mec-gray-500);
    font-size: clamp(10px, 1.6vw, 12px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.mec-stat-card .value,
.mec-stat-value {
    font-size: clamp(22px, 5vw, 40px);
    font-weight: 800;
    color: var(--mec-gray-900);
    line-height: 1;
    background: var(--mec-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-break: break-word;
}

/* ========================================
   CARDS & CONTAINERS
======================================== */
.mec-card,
.mec-panel {
    background: white;
    border-radius: var(--mec-radius-lg);
    box-shadow: var(--mec-shadow);
    padding: clamp(16px, 3vw, 28px);
    margin-bottom: clamp(16px, 3vw, 28px);
    border: 1px solid var(--mec-gray-100);
    transition: var(--mec-transition);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.mec-card:hover,
.mec-panel:hover {
    box-shadow: var(--mec-shadow-md);
}

.mec-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(16px, 2.5vw, 24px);
    padding-bottom: clamp(12px, 2vw, 20px);
    border-bottom: 2px solid var(--mec-gray-100);
    gap: 12px;
    flex-wrap: wrap;
}

.mec-card-header h3 {
    margin: 0;
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 700;
    color: var(--mec-gray-900);
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

.mec-card-header h3 i {
    color: var(--mec-primary);
    font-size: clamp(18px, 3.5vw, 22px);
    flex-shrink: 0;
}

/* ========================================
   TABLES - PERFECT RESPONSIVE
======================================== */
.mec-table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--mec-radius);
    background: white;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--mec-primary) var(--mec-gray-100);
}

.mec-table-responsive::-webkit-scrollbar {
    height: 6px;
}

.mec-table-responsive::-webkit-scrollbar-track {
    background: var(--mec-gray-100);
    border-radius: 10px;
}

.mec-table-responsive::-webkit-scrollbar-thumb {
    background: var(--mec-primary);
    border-radius: 10px;
}

.mec-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: white;
}

.mec-table thead {
    background: linear-gradient(to bottom, var(--mec-gray-50), white);
    border-bottom: 2px solid var(--mec-gray-200);
}

.mec-table thead th {
    padding: clamp(12px, 2vw, 16px);
    text-align: left;
    font-weight: 700;
    font-size: clamp(10px, 1.8vw, 12px);
    color: var(--mec-gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    background: var(--mec-gray-50);
    z-index: 10;
    white-space: nowrap;
}

.mec-table tbody tr {
    border-bottom: 1px solid var(--mec-gray-100);
    transition: var(--mec-transition-fast);
}

.mec-table tbody tr:hover {
    background: linear-gradient(to right, rgba(102, 126, 234, 0.03), transparent);
}

.mec-table tbody tr:last-child {
    border-bottom: none;
}

.mec-table tbody td {
    padding: clamp(14px, 2.5vw, 18px) clamp(12px, 2vw, 16px);
    font-size: clamp(12px, 2vw, 14px);
    color: var(--mec-gray-800);
    white-space: nowrap;
}

/* Magic Link Styling */
.mec-magic-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--mec-info-light);
    color: var(--mec-info);
    border-radius: var(--mec-radius-sm);
    font-size: clamp(10px, 1.6vw, 12px);
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: var(--mec-transition);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mec-magic-link:hover {
    background: var(--mec-info);
    color: white;
    transform: scale(1.05);
}

/* ========================================
   BUTTONS - TOUCH FRIENDLY
======================================== */
.mec-btn,
.mec-organizer-dashboard .button {
    background: var(--mec-primary-gradient);
    color: white;
    padding: clamp(10px, 2vw, 12px) clamp(18px, 3vw, 24px);
    border: none;
    border-radius: var(--mec-radius);
    cursor: pointer;
    font-weight: 700;
    font-size: clamp(12px, 2vw, 14px);
    transition: var(--mec-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    line-height: 1.5;
    box-shadow: var(--mec-shadow);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-height: 44px;
}

.mec-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.mec-btn:hover::before {
    width: 300px;
    height: 300px;
}

.mec-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--mec-shadow-lg);
}

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

/* Button Variants */
.mec-btn-sm {
    padding: clamp(6px, 1.5vw, 8px) clamp(12px, 2vw, 16px);
    font-size: clamp(11px, 1.8vw, 13px);
    min-height: 38px;
}

.mec-btn.mec-btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.mec-btn.mec-btn-danger,
.mec-btn-danger-outline {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.mec-btn.mec-btn-outline,
.mec-btn-outline {
    background: white;
    border: 2px solid var(--mec-gray-300);
    color: var(--mec-gray-700);
    box-shadow: var(--mec-shadow-sm);
}

.mec-btn.mec-btn-outline:hover,
.mec-btn-outline:hover {
    background: var(--mec-gray-50);
    border-color: var(--mec-primary);
    color: var(--mec-primary);
}

.mec-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.mec-btn:disabled:hover {
    transform: none;
    box-shadow: var(--mec-shadow);
}

/* Action Group */
.mec-action-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* ========================================
   FORM ELEMENTS - RESPONSIVE
======================================== */
.mec-input,
.mec-organizer-dashboard input[type="text"],
.mec-organizer-dashboard input[type="email"],
.mec-organizer-dashboard input[type="password"],
.mec-organizer-dashboard input[type="number"],
.mec-organizer-dashboard input[type="url"],
.mec-organizer-dashboard input[type="search"],
.mec-organizer-dashboard select,
.mec-organizer-dashboard textarea {
    width: 100%;
    max-width: 100%;
    padding: clamp(10px, 2vw, 12px) clamp(12px, 2.5vw, 16px);
    border: 2px solid var(--mec-gray-200);
    border-radius: var(--mec-radius);
    margin-bottom: clamp(12px, 2vw, 16px);
    font-size: clamp(14px, 2.5vw, 14px);
    color: var(--mec-gray-900);
    background: white;
    transition: var(--mec-transition);
    font-family: inherit;
}

.mec-input:focus,
.mec-organizer-dashboard input:focus,
.mec-organizer-dashboard select:focus,
.mec-organizer-dashboard textarea:focus {
    outline: none;
    border-color: var(--mec-primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: white;
}

.mec-organizer-dashboard label {
    display: block;
    margin-bottom: clamp(6px, 1.5vw, 8px);
    font-weight: 600;
    font-size: clamp(12px, 2vw, 13px);
    color: var(--mec-gray-700);
    letter-spacing: 0.3px;
}

/* Search Box */
.mec-search-box {
    position: relative;
    display: flex;
    gap: 8px;
    max-width: 100%;
    width: 100%;
}

.mec-search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mec-gray-400);
    font-size: clamp(14px, 2.5vw, 16px);
}

.mec-search-box input {
    padding-left: clamp(36px, 6vw, 44px);
    margin-bottom: 0;
}

/* ========================================
   MODALS - ADAPTIVE
======================================== */
.mec-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: clamp(10px, 2vw, 20px);
    animation: fadeIn 0.2s ease;
}

.mec-modal-overlay.active {
    display: flex;
}

.mec-modal-content {
    background: white;
    border-radius: var(--mec-radius-xl);
    width: 100%;
    max-width: min(600px, calc(100vw - 40px));
    max-height: 85vh;
    max-height: 85dvh;
    overflow: hidden;
    box-shadow: var(--mec-shadow-xl);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    position: relative;
    margin: auto;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.mec-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: clamp(20px, 4vw, 30px) clamp(24px, 5vw, 40px);
    border-bottom: none;
    position: relative;
    overflow: hidden;
    margin: 0;
}

.mec-modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.mec-modal-title {
    margin: 0 !important;
    color: white !important;
    font-size: clamp(20px, 4.5vw, 26px) !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    letter-spacing: -0.5px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    background: transparent !important;
    padding: 0 !important;
    border-bottom: none !important;
}

.mec-modal-title i {
    font-size: 0.9em;
    opacity: 0.9;
}

.mec-modal-body {
    padding: clamp(20px, 3.5vw, 28px);
    overflow-y: auto;
    flex: 1;
    max-height: calc(90vh - 180px);
}

.mec-modal-footer {
    padding: clamp(16px, 2.5vw, 20px) clamp(20px, 3.5vw, 28px);
    background: var(--mec-gray-50);
    border-top: 2px solid var(--mec-gray-100);
    display: flex;
    gap: clamp(10px, 2vw, 12px);
    justify-content: flex-end;
    flex-wrap: wrap;
    align-items: center;
    min-height: 70px;
}

.mec-modal-close {
    position: absolute;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 38px;
    height: 38px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    transition: var(--mec-transition);
    z-index: 100;
    backdrop-filter: blur(4px);
    box-shadow: none;
}

.mec-modal-close:hover {
    background: var(--mec-danger);
    border-color: var(--mec-danger);
    color: white;
    transform: translateY(-50%) rotate(90deg) scale(1.1);
}

/* ========================================
   BADGES
======================================== */
.mec-badge {
    padding: clamp(5px, 1vw, 6px) clamp(10px, 2vw, 12px);
    border-radius: 20px;
    font-size: clamp(10px, 1.6vw, 12px);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.3px;
}

.mec-badge.success {
    background: var(--mec-success-light);
    color: #065f46;
}

.mec-badge.warning {
    background: var(--mec-warning-light);
    color: #92400e;
}

.mec-badge.danger {
    background: var(--mec-danger-light);
    color: #991b1b;
}

.mec-badge.info {
    background: var(--mec-info-light);
    color: #1e40af;
}

.mec-badge.gray {
    background: var(--mec-gray-200);
    color: var(--mec-gray-700);
}

/* ========================================
   LOADING SPINNER
======================================== */
.mec-loading {
    width: clamp(36px, 6vw, 48px);
    height: clamp(36px, 6vw, 48px);
    border: 4px solid var(--mec-gray-200);
    border-top-color: var(--mec-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

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

.mec-loading-container {
    text-align: center;
    padding: clamp(40px, 6vw, 60px) clamp(16px, 3vw, 20px);
    color: var(--mec-gray-500);
}

.mec-loading-container p {
    margin-top: clamp(12px, 2vw, 16px);
    font-size: clamp(13px, 2vw, 14px);
    font-weight: 600;
}

/* ========================================
   TOOLBAR - STACKABLE
======================================== */
.mec-toolbar,
.mec-table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(16px, 3vw, 24px);
    gap: clamp(12px, 2vw, 16px);
    flex-wrap: wrap;
    padding: clamp(12px, 2.5vw, 16px);
    background: var(--mec-gray-50);
    border-radius: var(--mec-radius);
    border: 1px solid var(--mec-gray-200);
}

.mec-toolbar-actions,
.mec-toolbar-left,
.mec-toolbar-right,
.mec-bulk-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* ========================================
   NOTIFICATIONS
======================================== */
.mec-notification {
    position: fixed;
    top: clamp(12px, 2vw, 24px);
    right: clamp(12px, 2vw, 24px);
    background: white;
    padding: clamp(14px, 2.5vw, 18px) clamp(18px, 3vw, 24px);
    border-radius: var(--mec-radius-lg);
    box-shadow: var(--mec-shadow-xl);
    border-left: 4px solid var(--mec-primary);
    z-index: 100000;
    min-width: min(280px, calc(100vw - 48px));
    max-width: min(420px, calc(100vw - 48px));
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideInRight {
    from {
        transform: translateX(500px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.mec-notification.success {
    border-left-color: var(--mec-success);
}

.mec-notification.error {
    border-left-color: var(--mec-danger);
}

.mec-notification.warning {
    border-left-color: var(--mec-warning);
}

/* ========================================
   EMPTY STATE
======================================== */
.mec-empty-state {
    text-align: center;
    padding: clamp(50px, 8vw, 80px) clamp(16px, 3vw, 20px);
    color: var(--mec-gray-500);
}

.mec-empty-state-icon {
    font-size: clamp(48px, 8vw, 64px);
    margin-bottom: clamp(16px, 2.5vw, 20px);
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.mec-empty-state h3 {
    margin: 0 0 clamp(10px, 2vw, 12px) 0;
    font-size: clamp(17px, 3vw, 20px);
    font-weight: 700;
    color: var(--mec-gray-700);
}

.mec-empty-state p {
    margin: 0;
    font-size: clamp(13px, 2.5vw, 15px);
}

/* ========================================
   PROMOTER EVENT ASSIGNMENT
======================================== */
.mec-event-assignment {
    border: 2px solid var(--mec-gray-200);
    border-radius: var(--mec-radius);
    padding: clamp(16px, 2.5vw, 20px);
    margin-bottom: clamp(16px, 2.5vw, 20px);
    background: white;
    transition: var(--mec-transition);
}

.mec-event-assignment:hover {
    border-color: var(--mec-primary);
    box-shadow: var(--mec-shadow);
}

.mec-event-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(12px, 2vw, 14px);
    border-bottom: 1px solid var(--mec-gray-100);
    transition: var(--mec-transition-fast);
    gap: 12px;
    flex-wrap: wrap;
}

.mec-event-item:hover {
    background: var(--mec-gray-50);
}

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

.mec-event-info {
    flex: 1 1 auto;
    min-width: 0;
}

.mec-event-info h4 {
    margin: 0 0 4px 0;
    font-size: clamp(14px, 2.5vw, 15px);
    font-weight: 700;
    color: var(--mec-gray-900);
    word-break: break-word;
}

.mec-event-info p {
    margin: 0;
    font-size: clamp(12px, 2vw, 13px);
    color: var(--mec-gray-500);
}

/* ========================================
   FORM ROW
======================================== */
.mec-form-row {
    display: flex;
    gap: clamp(12px, 2vw, 16px);
    margin-bottom: clamp(12px, 2vw, 16px);
    flex-wrap: wrap;
}

.mec-form-row>* {
    flex: 1 1 calc(50% - 8px);
    min-width: min(100%, 200px);
}

/* ========================================
   TOOLTIP
======================================== */
.tooltip {
    position: relative;
}

.tooltip:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    background: var(--mec-gray-900);
    color: white;
    font-size: clamp(11px, 1.8vw, 12px);
    border-radius: var(--mec-radius-sm);
    white-space: nowrap;
    margin-bottom: 8px;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

/* ========================================
   UTILITY CLASSES
======================================== */
.mec-w-full {
    width: 100% !important;
}

.mec-max-w-full {
    max-width: 100% !important;
}

.mec-overflow-hidden {
    overflow: hidden !important;
}

.mec-overflow-x-auto {
    overflow-x: auto !important;
}

/* RESPONSIVE TICKETS LIST LAYOUT */
.mec-list-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 120px;
    padding: 15px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #64748b;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mec-ticket-item-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 120px;
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
    background: white;
    transition: background 0.2s;
}

.mec-ticket-item-row:hover {
    background: #f8fafc;
}

/* MOBILE TRANSFORMATION */
@media (max-width: 768px) {
    .mec-list-header {
        display: none !important;
    }

    .mec-ticket-item-row {
        display: flex;
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        margin-bottom: 20px;
        border-radius: 24px;
        /* More rounded premium look */
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }

    .mec-ticket-item-row::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 6px;
        height: 100%;
        background: var(--mec-primary-gradient);
    }

    .mec-ticket-info {
        width: 100%;
        margin-bottom: 0;
        border-bottom: 1px dashed #e2e8f0;
        padding-bottom: 16px;
    }

    .mec-ticket-info h4 {
        font-size: 18px !important;
        font-weight: 800 !important;
        color: #1e293b !important;
    }

    .mec-ticket-price-col,
    .mec-ticket-stock-col {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        font-size: 16px;
    }

    .mec-ticket-price-col::before {
        content: "Price / Valor";
        color: #64748b;
        font-weight: 700;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .mec-ticket-stock-col::before {
        content: "Status / Estado";
        color: #64748b;
        font-weight: 700;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .mec-ticket-price-col strong {
        font-size: 20px !important;
        color: #10b981 !important;
    }

    .mec-ticket-actions-col {
        width: 100%;
        margin-top: 10px;
        display: flex;
        gap: 12px;
    }

    .mec-ticket-actions-col .mec-btn {
        flex: 1;
        height: 50px;
        border-radius: 14px;
        font-size: 14px;
        font-weight: 800;
        justify-content: center;
    }
}

/* ========================================
   MOBILE FAB (Floating Action Button)
======================================== */
.mec-mobile-fab {
    position: fixed;
    right: 24px;
    bottom: calc(24px + env(safe-area-inset-bottom));
    /* Account for Safari bar */
    width: 65px;
    height: 65px;
    border-radius: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mec-mobile-fab:hover {
    transform: scale(1.1) rotate(90deg);
}

.mec-mobile-fab:active {
    transform: scale(0.9);
}

@media (min-width: 769px) {
    .mec-mobile-fab {
        display: none !important;
    }
}

/* ========================================
   LOGIN PAGES - VIBRANT FLUID REDESIGN
   ======================================== */
.mec-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Fluid Background Shapes */
.mec-login-bg-shape {
    position: absolute;
    z-index: 0;
}

.mec-login-wrapper::before,
.mec-login-wrapper::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 100%;
    background: linear-gradient(135deg, #ff9a9e 0%, #ff6a88 50%, #ff99ac 100%);
    z-index: 0;
    border-radius: 50%;
    filter: blur(0px);
    /* Clean shapes as per image, or use svg if needed. Using organic border-radius for css approx */
}

/* Top Left Shape approximation */
.mec-login-wrapper::before {
    top: -30%;
    left: -10%;
    width: 80%;
    height: 80%;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morphShape 15s ease-in-out infinite both alternate;
}

/* Bottom Right Shape approximation */
.mec-login-wrapper::after {
    bottom: -20%;
    right: -10%;
    width: 70%;
    height: 70%;
    background: linear-gradient(135deg, #fd746c 0%, #ff9068 100%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morphShape 20s ease-in-out infinite both alternate-reverse;
}

@keyframes morphShape {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    100% {
        border-radius: 40% 60% 30% 70% / 60% 30% 70% 40%;
        transform: rotate(10deg);
    }
}

/* Clean White Card */
.mec-login-card {
    width: 100%;
    max-width: 420px;
    padding: 24px 0px;
    /* Padding for card is minimal, content has padding */
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    backdrop-filter: blur(10px);
    overflow: hidden;
    /* To clip header if needed */
    display: flex;
    flex-direction: column;
    /* Create the "cutout" look by having white card on vibrant bg */
}

/* Inner Container for Content */
.mec-login-card>* {
    padding-left: 40px;
    padding-right: 40px;
}

/* Header */
.mec-login-header {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

.mec-login-logo {
    display: none;
    /* Reference image doesn't emphasize a big logo icon, just text 'Login' */
}

.mec-login-title {
    font-size: 32px;
    font-weight: 700;
    color: #ff6a88;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #FF6B6B 0%, #d43f3f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mec-login-subtitle {
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
}

/* Form Styles */
.mec-login-form .mec-field-group {
    margin-bottom: 20px;
}

/* Input Wrapper (Pill Shape) */
.mec-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 4px 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.mec-input-wrapper:focus-within {
    background: #ffffff;
    border-color: #ff9a9e;
    box-shadow: 0 4px 12px rgba(255, 106, 136, 0.15);
}

.mec-input-icon {
    font-size: 18px;
    color: #ff6a88;
    /* Vibrant icon color */
    margin: 0 10px 0 12px;
}

.mec-login-input {
    width: 100%;
    padding: 12px 0;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #374151;
    font-weight: 500;
}

.mec-login-input:focus {
    outline: none;
}

.mec-login-input::placeholder {
    color: #9ca3af;
}

/* Password Toggle */
.mec-password-toggle {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 8px;
    margin-right: 4px;
    transition: color 0.2s;
}

.mec-password-toggle:hover {
    color: #ff6a88;
}

/* Options */
.mec-login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 24px;
    color: #6b7280;
}

.mec-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.mec-checkbox-wrapper input {
    accent-color: #ff6a88;
}

.mec-link {
    color: #ff6a88;
    text-decoration: none;
    font-weight: 600;
}

.mec-link:hover {
    text-decoration: underline;
}

/* Gradient Button */
.mec-login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(90deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.mec-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(255, 107, 107, 0.4);
    filter: brightness(1.1);
}

/* Footer (inside card) */
.mec-login-footer {
    border-top: 1px solid #f3f4f6;
    margin-top: 24px;
    padding-top: 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    padding-bottom: 24px;
}

/* Alerts */
.mec-alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mec-alert-error {
    background: #fff1f2;
    color: #e11d48;
}

.mec-alert-success {
    background: #ecfdf5;
    color: #059669;
}

@media (max-width: 768px) {
    .mec-mobile-filter-toggle {
        display: block !important;
    }

    .mec-dashboard-filters {
        position: fixed;
        bottom: -100%;
        left: 0;
        right: 0;
        background: white;
        z-index: 100000;
        padding: 30px 20px !important;
        border-radius: 24px 24px 0 0 !important;
        box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.15) !important;
        transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
        max-height: 80vh;
        overflow-y: auto;
    }

    .mec-dashboard-filters.active {
        bottom: 0;
    }

    .mec-mobile-filter-header {
        display: flex !important;
    }

    .mec-dashboard-filter-actions {
        margin-top: 10px;
        flex-direction: column;
    }

    .mec-dashboard-filter-actions .mec-btn {
        width: 100%;
    }

    /* Overlay for mobile filters */
    .mec-dashboard-filters-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99999;
        backdrop-filter: blur(2px);
    }

    .mec-dashboard-filters.active+.mec-dashboard-filters-overlay {
        display: block;
    }
}

@media (max-width: 480px) {
    .mec-login-card {
        max-width: 95%;
        padding: 25px 20px;
    }
}