/**
 * EAU System - Componentes Reutilizáveis
 * Versão: 2.0.5
 * Componentes compartilhados entre Dashboard e Members Management
 */

/* ==========================================================================
   GLOBAL PAGE PADDING - FIXED HEADER COMPENSATION
   Para páginas com o header fixo eau-app-header (68px de altura)
   ========================================================================== */

/* Todos os containers principais de páginas do sistema */
body.eau-system-page .eau-dashboard-container,
body.eau-system-page .eau-profile-container,
body.eau-system-page .eau-my-profile-container,
body.eau-system-page .eau-members-management-container,
body.eau-system-page .eau-institutions-management-container,
body.eau-system-page .eau-activities-management-container,
body.eau-system-page .eau-categories-management-container,
body.eau-system-page .eau-settings-container,
body.eau-system-page .eau-register-container,
body.eau-system-page .eau-events-container,
body.eau-system-page .eau-events-archive-container,
body.eau-system-page .eau-checkout-container,
body.eau-system-page .eau-membership-selection-container,
body.eau-system-page .eau-roadmap-container,
body.eau-system-page .eau-my-cpds-container,
body.eau-system-page .eau-my-payments-container,
body.eau-system-page .eau-my-institution-container,
body.eau-system-page .eau-courses-container,
body.eau-system-page .eau-openlearning-courses-container,
body.eau-system-page .eau-duplicate-manager-container,
body.eau-system-page .eau-payments-management-container,
body.eau-system-page .eau-membership-applications-container,
body.eau-system-page .eau-email-update-container,
body.eau-system-page .eau-system-presentation-container,
body.eau-system-page .eau-my-applications-container {
    padding-top: 90px !important;
    padding-bottom: 3rem !important;
}

/* ==========================================================================
   STATS CARDS COMPONENT
   ========================================================================== */

.eau-stats-cards {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
    margin-bottom: 2rem !important;
}

.eau-stat-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    transition: all 0.2s ease !important;
}

.eau-stat-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.eau-stat-card-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 3rem !important;
    height: 3rem !important;
    border-radius: 8px !important;
}

.eau-stat-card-icon i,
.eau-stat-card-icon svg {
    width: 1.5rem !important;
    height: 1.5rem !important;
    stroke-width: 2 !important;
}

.eau-stat-card-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.eau-stat-card-title {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin: 0 !important;
}

.eau-stat-card-stats {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
}

.eau-stat-card-number {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    line-height: 1 !important;
}

.eau-stat-card-subtitle {
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    color: #6b7280 !important;
}

/* Cores dos Stats Cards */
.eau-stat-card-blue .eau-stat-card-icon {
    background: #dbeafe !important;
}

.eau-stat-card-blue .eau-stat-card-icon i,
.eau-stat-card-blue .eau-stat-card-icon svg {
    color: #2563eb !important;
    stroke: #2563eb !important;
}

.eau-stat-card-green .eau-stat-card-icon {
    background: #dcfce7 !important;
}

.eau-stat-card-green .eau-stat-card-icon i,
.eau-stat-card-green .eau-stat-card-icon svg {
    color: #059669 !important;
    stroke: #059669 !important;
}

.eau-stat-card-purple .eau-stat-card-icon {
    background: #f3e8ff !important;
}

.eau-stat-card-purple .eau-stat-card-icon i,
.eau-stat-card-purple .eau-stat-card-icon svg {
    color: #9333ea !important;
    stroke: #9333ea !important;
}

.eau-stat-card-orange .eau-stat-card-icon {
    background: #fed7aa !important;
}

.eau-stat-card-orange .eau-stat-card-icon i,
.eau-stat-card-orange .eau-stat-card-icon svg {
    color: #ea580c !important;
    stroke: #ea580c !important;
}

.eau-stat-card-red .eau-stat-card-icon {
    background: #fecaca !important;
}

.eau-stat-card-red .eau-stat-card-icon i,
.eau-stat-card-red .eau-stat-card-icon svg {
    color: #dc2626 !important;
    stroke: #dc2626 !important;
}

.eau-stat-card-yellow .eau-stat-card-icon {
    background: #fef3c7 !important;
}

.eau-stat-card-yellow .eau-stat-card-icon i,
.eau-stat-card-yellow .eau-stat-card-icon svg {
    color: #d97706 !important;
    stroke: #d97706 !important;
}

/* Responsivo - Stats Cards */
@media (max-width: 767px) {
    .eau-stats-cards {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .eau-stat-card {
        padding: 1.25rem !important;
    }

    .eau-stat-card-number {
        font-size: 1.5rem !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .eau-stats-cards {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .eau-stats-cards {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.25rem !important;
    }

    .eau-stat-card-number {
        font-size: 1.75rem !important;
    }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.eau-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.625rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.eau-btn i,
.eau-btn svg {
    width: 1rem !important;
    height: 1rem !important;
    stroke-width: 2 !important;
}

/* Primary Button */
.eau-btn-primary {
    background: #2563eb !important;
    color: #ffffff !important;
}

.eau-btn-primary:hover {
    background: #1d4ed8 !important;
}

.eau-btn-primary:active,
.eau-btn-primary:focus,
.eau-btn-primary:visited {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3) !important;
}

/* Secondary Button */
.eau-btn-secondary {
    background: #ffffff !important;
    color: #374151 !important;
    border-color: #d1d5db !important;
}

.eau-btn-secondary:hover {
    background: #f9fafb !important;
}

.eau-btn-secondary:active,
.eau-btn-secondary:focus,
.eau-btn-secondary:visited {
    background: #f3f4f6 !important;
    color: #374151 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(107, 114, 128, 0.2) !important;
}

/* Success Button */
.eau-btn-success {
    background: #10b981 !important;
    color: #ffffff !important;
}

.eau-btn-success:hover {
    background: #059669 !important;
}

.eau-btn-success:active,
.eau-btn-success:focus,
.eau-btn-success:visited {
    background: #059669 !important;
    color: #ffffff !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3) !important;
}

/* Warning Button */
.eau-btn-warning {
    background: #f59e0b !important;
    color: #ffffff !important;
}

.eau-btn-warning:hover {
    background: #d97706 !important;
}

.eau-btn-warning:active,
.eau-btn-warning:focus,
.eau-btn-warning:visited {
    background: #d97706 !important;
    color: #ffffff !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3) !important;
}

/* Danger Button */
.eau-btn-danger {
    background: #dc2626 !important;
    color: #ffffff !important;
}

.eau-btn-danger:hover {
    background: #b91c1c !important;
}

.eau-btn-danger:active,
.eau-btn-danger:focus,
.eau-btn-danger:visited {
    background: #b91c1c !important;
    color: #ffffff !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.3) !important;
}

/* ==========================================================================
   SEARCH BAR
   ========================================================================== */

.eau-search-wrapper {
    position: relative !important;
    flex: 1 !important;
}

.eau-search-wrapper i,
.eau-search-wrapper svg {
    position: absolute !important;
    left: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
    color: #9ca3af !important;
    stroke: #9ca3af !important;
    pointer-events: none !important;
}

.eau-search-input {
    width: 100% !important;
    padding: 0.75rem 1rem 0.75rem 3rem !important;
    font-size: 0.875rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
}

.eau-search-input:focus {
    outline: none !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

.eau-search-input::placeholder {
    color: #9ca3af !important;
}

.eau-search-filters-bar {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin-bottom: 1.5rem !important;
}

/* ==========================================================================
   DATA TABLE COMPONENT
   ========================================================================== */

.eau-data-table-wrapper {
    position: relative !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

/* Table Header */
.eau-table-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1rem 1.5rem !important;
    border-bottom: 1px solid #e5e7eb !important;
    background: #f9fafb !important;
}

.eau-checkbox-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
    cursor: pointer !important;
    margin: 0 !important;
}

.eau-checkbox-wrapper input[type="checkbox"] {
    cursor: pointer !important;
    width: 1rem !important;
    height: 1rem !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 3px !important;
    appearance: checkbox !important;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
}

.eau-table input[type="checkbox"] {
    cursor: pointer !important;
    width: 1rem !important;
    height: 1rem !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 3px !important;
    appearance: checkbox !important;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
}

.eau-table-count {
    font-size: 0.875rem !important;
    color: #6b7280 !important;
}

.eau-count-number {
    font-weight: 600 !important;
    color: #111827 !important;
}

/* Table Container */
.eau-table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.eau-table {
    width: 100% !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    table-layout: auto !important;
    background: #ffffff !important;
    margin: 0 !important;
}

.eau-table * {
    box-sizing: border-box !important;
}

.eau-table thead {
    background: #f9fafb !important;
    border-bottom: 2px solid #e5e7eb !important;
}

.eau-table thead tr {
    background: #f9fafb !important;
}

.eau-table-th {
    padding: 0.75rem 1.5rem !important;
    text-align: left !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    white-space: nowrap !important;
    background: #f9fafb !important;
    border: none !important;
    border-bottom: 2px solid #e5e7eb !important;
    vertical-align: middle !important;
    line-height: 1.5 !important;
}

.eau-table-th-checkbox {
    width: 50px !important;
    padding-left: 1.5rem !important;
    padding-right: 0.5rem !important;
    border: none !important;
}

.eau-table-th-actions {
    text-align: center !important;
    width: 120px !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.eau-sortable {
    cursor: pointer !important;
    user-select: none !important;
}

.eau-sortable:hover {
    color: #111827 !important;
}

.eau-sort-icon {
    display: inline-block !important;
    width: 0.875rem !important;
    height: 0.875rem !important;
    margin-left: 0.25rem !important;
    vertical-align: middle !important;
    opacity: 0.5 !important;
    transition: opacity 0.2s ease !important;
}

.eau-sortable:hover .eau-sort-icon {
    opacity: 1 !important;
}

.eau-sorted-asc,
.eau-sorted-desc {
    color: #2563eb !important;
    font-weight: 600 !important;
}

.eau-sorted-asc .eau-sort-icon,
.eau-sorted-desc .eau-sort-icon {
    opacity: 1 !important;
    color: #2563eb !important;
}

/* Table Body */
.eau-table tbody {
    background: #ffffff !important;
}

.eau-table-row {
    border-bottom: 1px solid #e5e7eb !important;
    transition: background-color 0.15s ease !important;
    background: #ffffff !important;
}

.eau-table-row:hover {
    background: #f9fafb !important;
}

.eau-table-td {
    padding: 1rem 1.5rem !important;
    font-size: 0.875rem !important;
    color: #111827 !important;
    line-height: 1.5 !important;
    vertical-align: middle !important;
    border: none !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.eau-table-td-checkbox {
    width: 50px !important;
    padding-left: 1.5rem !important;
    vertical-align: middle !important;
    border: none !important;
}

.eau-table-td-actions {
    text-align: center !important;
    vertical-align: middle !important;
}

/* Actions */
.eau-table-actions {
    display: flex !important;
    gap: 0.5rem !important;
    justify-content: center !important;
}

.eau-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2rem !important;
    height: 2rem !important;
    border: none !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.eau-action-btn:hover {
    background: #f3f4f6 !important;
    color: #111827 !important;
}

.eau-action-btn i,
.eau-action-btn svg {
    width: 1rem !important;
    height: 1rem !important;
    min-width: 1rem !important;
    max-width: 1rem !important;
    stroke: currentColor !important;
    color: inherit !important;
    flex-shrink: 0 !important;
}

/* Loading state for action buttons */
.eau-action-btn.eau-loading {
    position: relative !important;
    pointer-events: none !important;
}

.eau-action-btn.eau-loading i,
.eau-action-btn.eau-loading svg {
    visibility: hidden !important;
}

.eau-action-btn.eau-loading::after {
    content: '' !important;
    position: absolute !important;
    width: 14px !important;
    height: 14px !important;
    border: 2px solid #e5e7eb !important;
    border-top-color: #2563eb !important;
    border-radius: 50% !important;
    animation: eau-btn-spin 0.8s linear infinite !important;
}

@keyframes eau-btn-spin {
    to {
        transform: rotate(360deg);
    }
}

.eau-action-view:hover {
    color: #2563eb !important;
}

.eau-action-view:hover i,
.eau-action-view:hover svg {
    stroke: #2563eb !important;
}

.eau-action-edit:hover {
    color: #059669 !important;
}

.eau-action-edit:hover i,
.eau-action-edit:hover svg {
    stroke: #059669 !important;
}

.eau-action-delete:hover {
    color: #dc2626 !important;
}

.eau-action-delete:hover i,
.eau-action-delete:hover svg {
    stroke: #dc2626 !important;
}

/* Status Badges */
.eau-status-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.375rem !important;
    padding: 0.25rem 0.75rem !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    border-radius: 9999px !important;
    white-space: nowrap !important;
}

.eau-status-badge-active {
    background: #dcfce7 !important;
    color: #059669 !important;
}

.eau-status-badge-inactive {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}

/* User Type Badges */
.eau-user-type-badge {
    display: inline-block !important;
    padding: 0.25rem 0.75rem !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
}

.eau-user-type-admin {
    background: #fef3c7 !important;
    color: #92400e !important;
}

.eau-user-type-member {
    background: #e0e7ff !important;
    color: #3730a3 !important;
}

/* Member Cell */
.eau-member-cell {
    font-weight: 600 !important;
    color: #111827 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.eau-member-cell strong {
    font-weight: 600 !important;
    color: #111827 !important;
}

/* Membership Cell */
.eau-membership-cell {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
}

.eau-membership-subtitle {
    font-size: 0.75rem !important;
    color: #6b7280 !important;
    font-weight: 400 !important;
}

/* Contact Links */
.eau-table-td a {
    color: #111827 !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
    font-size: 0.75rem !important;
}

.eau-table-td a:hover {
    color: #374151 !important;
    text-decoration: underline !important;
}

/* Loading Overlay - Skeleton */
.eau-table-loading-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    min-height: 100% !important;
    background: rgba(255, 255, 255, 0.95) !important;
    z-index: 10 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Loading Overlay Hidden (default state) */
.eau-table-loading-overlay[style*="display: none"] {
    display: none !important;
}

/* Loading Overlay Visible (when loading) */
.eau-table-loading-overlay[style*="display: block"] {
    display: block !important;
}

/* Skeleton dentro do overlay */
.eau-table-loading-overlay .eau-table {
    width: 100% !important;
}

.eau-table-loading-overlay .eau-table thead th {
    background: transparent !important;
    border-bottom: 1px solid #e5e7eb !important;
}

/* Responsivo - Data Table */
@media (max-width: 767px) {
    .eau-table-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }

    .eau-table {
        display: block !important;
    }

    .eau-table thead {
        display: none !important;
    }

    .eau-table tbody {
        display: block !important;
    }

    .eau-table-row {
        display: block !important;
        margin-bottom: 1rem !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 8px !important;
    }

    .eau-table-td {
        display: flex !important;
        justify-content: space-between !important;
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid #f3f4f6 !important;
    }

    .eau-table-td:last-child {
        border-bottom: none !important;
    }

    .eau-table-td::before {
        content: attr(data-label) !important;
        font-weight: 600 !important;
        color: #6b7280 !important;
        text-transform: uppercase !important;
        font-size: 0.75rem !important;
        letter-spacing: 0.05em !important;
    }

    .eau-table-td-checkbox {
        padding: 1rem !important;
    }

    .eau-table-td-checkbox::before {
        content: none !important;
    }

    .eau-table-td-actions {
        text-align: left !important;
    }

    .eau-table-actions {
        justify-content: flex-start !important;
    }
}

/* ==========================================================================
   PAGINATION COMPONENT
   ========================================================================== */

.eau-pagination-wrapper {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1.5rem !important;
    border-top: 1px solid #e5e7eb !important;
    background: #f9fafb !important;
}

.eau-pagination-info {
    font-size: 0.875rem !important;
    color: #6b7280 !important;
}

.eau-pagination-nav {
    display: flex !important;
    gap: 0.5rem !important;
    align-items: center !important;
}

.eau-pagination-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 2.25rem !important;
    height: 2.25rem !important;
    padding: 0 0.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.eau-pagination-btn:hover:not(:disabled) {
    background: #f3f4f6 !important;
    border-color: #9ca3af !important;
}

.eau-pagination-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.eau-pagination-btn i,
.eau-pagination-btn svg {
    width: 1rem !important;
    height: 1rem !important;
}

.eau-pagination-active {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

.eau-pagination-active:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}

.eau-pagination-ellipsis {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 2.25rem !important;
    height: 2.25rem !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
}

/* Responsivo - Pagination */
@media (max-width: 767px) {
    .eau-pagination-wrapper {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: stretch !important;
    }

    .eau-pagination-info {
        text-align: center !important;
    }

    .eau-pagination-nav {
        justify-content: center !important;
    }

    .eau-pagination-btn {
        min-width: 2rem !important;
        height: 2rem !important;
        font-size: 0.8125rem !important;
    }
}

/* ==========================================================================
   FILTERS COMPONENT
   ========================================================================== */

.eau-filters-panel {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.eau-filters-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 1rem !important;
    margin-bottom: 1.5rem !important;
}

.eau-filter-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.eau-filter-label {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.025em !important;
}

.eau-filter-select,
.eau-filter-date,
.eau-filter-text {
    width: 100% !important;
    padding: 0.625rem 0.875rem !important;
    font-size: 0.875rem !important;
    color: #1f2937 !important;
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    transition: all 0.15s ease !important;
}

.eau-filter-select:focus,
.eau-filter-date:focus,
.eau-filter-text:focus {
    outline: none !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

.eau-filter-select:hover,
.eau-filter-date:hover,
.eau-filter-text:hover {
    border-color: #9ca3af !important;
}

/* Date Range Specific Styles */
.eau-filter-date-range {
    grid-column: span 2 !important;
}

.eau-filter-date-range-inputs {
    display: flex !important;
    gap: 0.75rem !important;
    align-items: center !important;
}

.eau-filter-date-range-inputs .eau-filter-date {
    flex: 1 !important;
}

.eau-filter-date-separator {
    color: #9ca3af !important;
    font-weight: 500 !important;
}

/* Filter Actions */
.eau-filters-actions {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 0.75rem !important;
    padding-top: 1rem !important;
    border-top: 1px solid #e5e7eb !important;
}

.eau-filters-clear {
    margin-right: auto !important;
}

/* Responsivo - Filters */
@media (max-width: 767px) {
    .eau-filters-grid {
        grid-template-columns: 1fr !important;
    }

    .eau-filter-date-range {
        grid-column: span 1 !important;
    }

    .eau-filter-date-range-inputs {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .eau-filter-date-separator {
        display: none !important;
    }

    .eau-filters-actions {
        flex-direction: column-reverse !important;
    }

    .eau-filters-clear {
        margin-right: 0 !important;
    }
}

/* Filters Badge (número de filtros ativos) */
.eau-filters-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 1.25rem !important;
    height: 1.25rem !important;
    padding: 0 0.375rem !important;
    margin-left: 0.5rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    background: #ef4444 !important;
    border-radius: 9999px !important;
}

/* ==========================================================================
   MODAL COMPONENT
   ========================================================================== */

/* Modal Wrapper - Hidden by default (standalone usage) */
.eau-modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 99999 !important;
}

/* Modal Wrapper - Visible when active */
.eau-modal.active {
    display: block !important;
}

/* Modal Container inside Overlay - Always visible when parent overlay is shown */
.eau-modal-overlay > .eau-modal {
    display: flex !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    width: calc(100% - 2rem) !important;
    max-width: 600px !important;
    max-height: calc(100vh - 2rem) !important;
    flex-direction: column !important;
    z-index: 2 !important;
    animation: eauSlideUp 0.2s ease !important;
}

/* Modal Overlay - Dark background */
.eau-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 1 !important;
    animation: eauFadeIn 0.2s ease !important;
}

@keyframes eauFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Container - White box */
.eau-modal-container {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    width: calc(100% - 2rem) !important;
    max-width: 600px !important;
    max-height: calc(100vh - 2rem) !important;
    display: flex !important;
    flex-direction: column !important;
    z-index: 2 !important;
    animation: eauSlideUp 0.2s ease !important;
}

@keyframes eauSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
    }
}

/* Modal Sizes */
.eau-modal-container.eau-modal-small,
.eau-modal-small .eau-modal-container,
.eau-modal-overlay > .eau-modal.eau-modal-small {
    max-width: 400px !important;
}

.eau-modal-container.eau-modal-medium,
.eau-modal-medium .eau-modal-container,
.eau-modal-overlay > .eau-modal.eau-modal-medium {
    max-width: 600px !important;
}

.eau-modal-container.eau-modal-large,
.eau-modal-large .eau-modal-container,
.eau-modal-container.eau-modal-lg,
.eau-modal-lg .eau-modal-container,
.eau-modal-overlay > .eau-modal.eau-modal-large,
.eau-modal-overlay > .eau-modal.eau-modal-lg {
    max-width: 900px !important;
}

.eau-modal-container.eau-modal-full,
.eau-modal-full .eau-modal-container,
.eau-modal-overlay > .eau-modal.eau-modal-full {
    max-width: calc(100vw - 2rem) !important;
    max-height: calc(100vh - 2rem) !important;
}

/* Modal Full Height - Ocupa altura total da tela abaixo do header */
.eau-modal-container.eau-modal-fullheight,
.eau-modal-fullheight .eau-modal-container,
.eau-modal-overlay > .eau-modal.eau-modal-fullheight {
    top: calc(70px + 1rem) !important; /* Header height (70px) + margin */
    transform: translateX(-50%) !important;
    max-width: 900px !important;
    height: calc(100vh - 70px - 2rem) !important; /* Full height - header - margins */
    max-height: calc(100vh - 70px - 2rem) !important;
}

/* Animação específica para fullheight (sem translateY no transform) */
@keyframes eauSlideUpFullheight {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.eau-modal-container.eau-modal-fullheight,
.eau-modal-fullheight .eau-modal-container,
.eau-modal-overlay > .eau-modal.eau-modal-fullheight {
    animation: eauSlideUpFullheight 0.2s ease !important;
}

/* Modal Header */
.eau-modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1.5rem !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.eau-modal-title {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #111827 !important;
    margin: 0 !important;
}

.eau-modal-close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2rem !important;
    height: 2rem !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 6px !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.eau-modal-close:hover {
    background: #f3f4f6 !important;
    color: #111827 !important;
}

.eau-modal-close i,
.eau-modal-close svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
}

/* Modal Body */
.eau-modal-body {
    flex: 1 !important;
    padding: 1.5rem !important;
    overflow-y: auto !important;
}

/* Modal Loading */
.eau-modal-loading {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 3rem !important;
    gap: 1rem !important;
}

.eau-modal-loading p {
    color: #6b7280 !important;
    font-size: 0.875rem !important;
    margin: 0 !important;
}

/* Modal Footer */
.eau-modal-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.75rem !important;
    padding: 1.5rem !important;
    border-top: 1px solid #e5e7eb !important;
    background: #f9fafb !important;
}

/* ==========================================================================
   MODAL FORM STYLES
   ========================================================================== */

.eau-modal-form {
    width: 100% !important;
}

.eau-form-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
}

.eau-form-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.eau-form-field-span-1 {
    grid-column: span 1 !important;
}

.eau-form-field-span-2 {
    grid-column: span 2 !important;
}

.eau-form-label {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
}

.eau-form-required {
    color: #ef4444 !important;
    margin-left: 0.25rem !important;
}

.eau-form-input,
.eau-form-select,
.eau-form-textarea {
    width: 100% !important;
    padding: 0.625rem 0.875rem !important;
    font-size: 0.875rem !important;
    color: #1f2937 !important;
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    transition: all 0.15s ease !important;
}

.eau-form-input:focus,
.eau-form-select:focus,
.eau-form-textarea:focus {
    outline: none !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

.eau-form-input:disabled,
.eau-form-input:read-only,
.eau-form-select:disabled,
.eau-form-textarea:disabled,
.eau-form-textarea:read-only {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
    cursor: not-allowed !important;
}

.eau-form-textarea {
    resize: vertical !important;
    min-height: 100px !important;
}

/* Checkbox Wrapper */
.eau-form-checkbox-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    cursor: pointer !important;
}

.eau-form-checkbox {
    width: 1.125rem !important;
    height: 1.125rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}

.eau-form-checkbox-label {
    font-size: 0.875rem !important;
    color: #374151 !important;
}

/* User Types Checkboxes (v1.66.2) */
.eau-user-types-checkboxes {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    padding: 0.5rem 0 !important;
}

.eau-user-types-checkboxes .eau-checkbox-label {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    cursor: pointer !important;
    font-size: 0.875rem !important;
    color: #374151 !important;
    background: #f9fafb !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 6px !important;
    border: 1px solid #e5e7eb !important;
    transition: all 0.15s ease !important;
}

.eau-user-types-checkboxes .eau-checkbox-label:hover {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
}

.eau-user-types-checkboxes .eau-checkbox-label:has(input:checked) {
    background: #eff6ff !important;
    border-color: #2563eb !important;
}

.eau-user-types-checkboxes input[type="checkbox"] {
    width: 1rem !important;
    height: 1rem !important;
    cursor: pointer !important;
    accent-color: #2563eb !important;
    margin: 0 !important;
}

.eau-user-types-checkboxes .eau-checkbox-text {
    font-weight: 500 !important;
}

/* Static Field */
.eau-form-static {
    padding: 0.625rem 0 !important;
    font-size: 0.875rem !important;
    color: #1f2937 !important;
    font-weight: 500 !important;
}

/* Responsivo - Modal */
@media (max-width: 767px) {
    .eau-modal-container {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
    }

    .eau-modal-header {
        padding: 1rem !important;
    }

    .eau-modal-title {
        font-size: 1.125rem !important;
    }

    .eau-modal-body {
        padding: 1rem !important;
    }

    .eau-modal-footer {
        padding: 1rem !important;
        flex-direction: column-reverse !important;
    }

    .eau-modal-footer .eau-btn {
        width: 100% !important;
    }

    .eau-form-grid {
        grid-template-columns: 1fr !important;
    }

    .eau-form-field-span-1,
    .eau-form-field-span-2 {
        grid-column: span 1 !important;
    }
}

/* ==========================================================================
   SKELETON LOADING
   ========================================================================== */

/* Skeleton Base - MÁXIMA ESPECIFICIDADE para sobrescrever WordPress */
.eau-data-table-wrapper .eau-skeleton,
.eau-skeleton-table .eau-skeleton,
div.eau-skeleton {
    background-color: #e5e7eb !important;
    border-radius: 4px !important;
    position: relative !important;
    overflow: hidden !important;
}

.eau-data-table-wrapper .eau-skeleton-shimmer,
.eau-skeleton-table .eau-skeleton-shimmer,
div.eau-skeleton > .eau-skeleton-shimmer {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: -150% !important;
    width: 150% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%) !important;
    animation: eauSkeletonShimmer 1.5s ease-in-out infinite !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

@keyframes eauSkeletonShimmer {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(300%);
    }
}

/* Skeleton Variants */
.eau-skeleton-text {
    height: 1rem !important;
    margin-bottom: 0.5rem !important;
}

.eau-skeleton-title {
    height: 1.5rem !important;
    margin-bottom: 0.75rem !important;
    width: 60% !important;
}

.eau-skeleton-card {
    height: 120px !important;
    border-radius: 8px !important;
}

.eau-skeleton-circle {
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
}

.eau-skeleton-row {
    height: 60px !important;
    margin-bottom: 0.5rem !important;
}

/* Skeleton Table - Nova Estrutura */
.eau-skeleton-table {
    width: 100% !important;
    padding: 0 !important;
    min-height: 100% !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.eau-skeleton-table-row {
    display: flex !important;
    align-items: center !important;
    padding: 1rem 1.5rem !important;
    border-bottom: 1px solid #e5e7eb !important;
    gap: 1.5rem !important;
    min-height: 60px !important;
}

.eau-skeleton-table-cell {
    flex: 1 !important;
    min-width: 0 !important;
}

.eau-skeleton-table-cell-checkbox {
    flex: 0 0 50px !important;
    display: flex !important;
    justify-content: center !important;
}

.eau-skeleton-table-cell-actions {
    flex: 0 0 120px !important;
    display: flex !important;
    justify-content: center !important;
}

.eau-skeleton-checkbox {
    width: 16px !important;
    height: 16px !important;
    border-radius: 3px !important;
}

.eau-skeleton-table-row .eau-skeleton-text {
    width: 100% !important;
    max-width: 150px !important;
}

/* Skeleton Stats Cards */
.eau-skeleton-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 1rem !important;
    margin-bottom: 2rem !important;
}

.eau-skeleton-stat-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 1.5rem !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 1rem !important;
}

.eau-skeleton-stat-card .eau-skeleton-circle {
    width: 48px !important;
    height: 48px !important;
    flex-shrink: 0 !important;
}

.eau-skeleton-stat-content {
    flex: 1 !important;
}

.eau-skeleton-stat-content .eau-skeleton-title {
    height: 2rem !important;
    width: 80px !important;
    margin-bottom: 0.5rem !important;
}

.eau-skeleton-stat-content .eau-skeleton-text {
    height: 0.875rem !important;
    width: 120px !important;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

/* Toast Container */
.eau-toast-container {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 99999999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    pointer-events: none !important;
}

/* Toast Base */
.eau-toast {
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    padding: 1rem 1.25rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    min-width: 300px !important;
    max-width: 500px !important;
    pointer-events: auto !important;
    animation: eauToastSlideIn 0.3s ease !important;
    border-left: 4px solid #6b7280 !important;
}

.eau-toast.eau-toast-hiding {
    animation: eauToastSlideOut 0.3s ease !important;
}

@keyframes eauToastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes eauToastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Toast Icon */
.eau-toast-icon {
    flex-shrink: 0 !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.eau-toast-icon svg {
    width: 24px !important;
    height: 24px !important;
}

/* Toast Content */
.eau-toast-content {
    flex: 1 !important;
}

.eau-toast-title {
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    margin: 0 0 0.25rem 0 !important;
    color: #111827 !important;
}

.eau-toast-message {
    font-size: 0.875rem !important;
    margin: 0 !important;
    color: #6b7280 !important;
}

/* Toast Close Button */
.eau-toast-close {
    flex-shrink: 0 !important;
    width: 20px !important;
    height: 20px !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    color: #9ca3af !important;
    transition: color 0.15s ease !important;
}

.eau-toast-close:hover {
    color: #6b7280 !important;
}

.eau-toast-close svg {
    width: 20px !important;
    height: 20px !important;
}

/* Toast Variants */
.eau-toast-success {
    border-left-color: #10b981 !important;
}

.eau-toast-success .eau-toast-icon {
    color: #10b981 !important;
}

.eau-toast-error {
    border-left-color: #ef4444 !important;
}

.eau-toast-error .eau-toast-icon {
    color: #ef4444 !important;
}

.eau-toast-warning {
    border-left-color: #f59e0b !important;
}

.eau-toast-warning .eau-toast-icon {
    color: #f59e0b !important;
}

.eau-toast-info {
    border-left-color: #3b82f6 !important;
}

.eau-toast-info .eau-toast-icon {
    color: #3b82f6 !important;
}

/* ==========================================================================
   CONFIRM MODAL
   ========================================================================== */

/* Confirm Modal */
.eau-confirm-modal {
    max-width: 400px !important;
}

.eau-confirm-modal .eau-modal-body,
.eau-confirm-body {
    text-align: center !important;
    padding: 2rem !important;
}

.eau-confirm-icon {
    width: 48px !important;
    height: 48px !important;
    margin: 0 auto 1rem auto !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.eau-confirm-icon-danger {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}

.eau-confirm-icon-warning {
    background: #fef3c7 !important;
    color: #f59e0b !important;
}

.eau-confirm-icon-info {
    background: #dbeafe !important;
    color: #3b82f6 !important;
}

.eau-confirm-icon svg {
    width: 24px !important;
    height: 24px !important;
}

.eau-confirm-title {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    margin: 0 0 0.5rem 0 !important;
    color: #111827 !important;
}

.eau-confirm-message {
    font-size: 0.875rem !important;
    color: #6b7280 !important;
    margin: 0 0 1.5rem 0 !important;
    line-height: 1.5 !important;
}

.eau-confirm-actions {
    display: flex !important;
    gap: 0.75rem !important;
    justify-content: center !important;
}

.eau-confirm-actions .eau-btn {
    min-width: 100px !important;
    justify-content: center !important;
}

/* ==========================================================================
   WYSIWYG EDITOR COMPONENT (Quill.js)
   ========================================================================== */

.eau-wysiwyg-wrapper {
    width: 100% !important;
}

.eau-wysiwyg-editor {
    background: #fff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0 0 8px 8px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 0.875rem !important;
}

.eau-wysiwyg-editor .ql-editor {
    min-height: 150px !important;
    line-height: 1.6 !important;
}

.eau-wysiwyg-editor .ql-editor.ql-blank::before {
    color: #9ca3af !important;
    font-style: normal !important;
}

/* Quill toolbar customization */
.eau-wysiwyg-wrapper .ql-toolbar.ql-snow {
    border: 1px solid #d1d5db !important;
    border-bottom: none !important;
    border-radius: 8px 8px 0 0 !important;
    background: #f9fafb !important;
}

.eau-wysiwyg-wrapper .ql-container.ql-snow {
    border: 1px solid #d1d5db !important;
    border-radius: 0 0 8px 8px !important;
}

.eau-wysiwyg-wrapper .ql-snow .ql-picker-label,
.eau-wysiwyg-wrapper .ql-snow .ql-picker-options {
    background: #fff !important;
}

.eau-wysiwyg-wrapper .ql-snow .ql-stroke {
    stroke: #4b5563 !important;
}

.eau-wysiwyg-wrapper .ql-snow .ql-fill {
    fill: #4b5563 !important;
}

.eau-wysiwyg-wrapper .ql-snow button:hover .ql-stroke,
.eau-wysiwyg-wrapper .ql-snow button:focus .ql-stroke,
.eau-wysiwyg-wrapper .ql-snow button.ql-active .ql-stroke {
    stroke: #2563eb !important;
}

.eau-wysiwyg-wrapper .ql-snow button:hover .ql-fill,
.eau-wysiwyg-wrapper .ql-snow button:focus .ql-fill,
.eau-wysiwyg-wrapper .ql-snow button.ql-active .ql-fill {
    fill: #2563eb !important;
}

/* ==========================================================================
   MEDIA UPLOAD COMPONENT
   ========================================================================== */

.eau-media-upload-wrapper {
    width: 100% !important;
}

/* Tabs */
.eau-media-upload-tabs {
    display: flex !important;
    gap: 0.5rem !important;
    margin-bottom: 0.75rem !important;
}

.eau-media-upload-tab {
    display: flex !important;
    align-items: center !important;
    gap: 0.375rem !important;
    padding: 0.5rem 1rem !important;
    background: #f3f4f6 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.eau-media-upload-tab i,
.eau-media-upload-tab svg {
    width: 1rem !important;
    height: 1rem !important;
}

.eau-media-upload-tab:hover {
    background: #e5e7eb !important;
    color: #374151 !important;
}

.eau-media-upload-tab.eau-media-upload-tab-active {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #fff !important;
}

/* Panels */
.eau-media-upload-panel {
    display: none;
}

.eau-media-upload-panel.active {
    display: block;
}

/* URL Input */
.eau-media-upload-input-group {
    display: flex !important;
    gap: 0.5rem !important;
}

.eau-media-upload-url-input {
    flex: 1 !important;
}

/* Dropzone */
.eau-media-upload-dropzone {
    border: 2px dashed #d1d5db !important;
    border-radius: 8px !important;
    padding: 2rem !important;
    text-align: center !important;
    background: #f9fafb !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.eau-media-upload-dropzone:hover {
    border-color: #2563eb !important;
    background: #eff6ff !important;
}

.eau-media-upload-dropzone-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.eau-media-upload-dropzone-content > i,
.eau-media-upload-dropzone-content > svg {
    width: 2.5rem !important;
    height: 2.5rem !important;
    color: #9ca3af !important;
}

.eau-media-upload-dropzone-text {
    font-size: 0.875rem !important;
    color: #6b7280 !important;
}

.eau-media-upload-browse-btn {
    background: none !important;
    border: none !important;
    color: #2563eb !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    text-decoration: underline !important;
    padding: 0 !important;
}

.eau-media-upload-browse-btn:hover {
    color: #1d4ed8 !important;
}

.eau-media-upload-dropzone-hint {
    font-size: 0.75rem !important;
    color: #9ca3af !important;
}

/* Preview */
.eau-media-upload-preview {
    margin-top: 0.75rem !important;
}

.eau-media-upload-preview-content {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    border-radius: 8px !important;
}

/* Thumbnail container - is a clickable link */
.eau-media-upload-preview-thumbnail {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    text-decoration: none !important;
    width: 48px !important;
    height: 48px !important;
    flex-shrink: 0 !important;
    background: #dcfce7 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

.eau-media-upload-preview-thumbnail .eau-media-upload-preview-icon {
    width: 1.5rem !important;
    height: 1.5rem !important;
    color: #16a34a !important;
}

.eau-media-upload-preview-thumbnail .eau-media-upload-preview-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.eau-media-upload-preview-thumbnail.has-image .eau-media-upload-preview-icon {
    display: none !important;
}

.eau-media-upload-preview-thumbnail.has-image .eau-media-upload-preview-image {
    display: block !important;
}

/* Preview info */
.eau-media-upload-preview-info {
    flex: 1 !important;
    min-width: 0 !important;
}

.eau-media-upload-preview-icon {
    width: 1.25rem !important;
    height: 1.25rem !important;
    color: #16a34a !important;
    flex-shrink: 0 !important;
}

.eau-media-upload-preview-name {
    display: block !important;
    font-size: 0.875rem !important;
    color: #374151 !important;
    font-weight: 500 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Preview actions */
.eau-media-upload-preview-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    flex-shrink: 0 !important;
}

.eau-media-upload-preview-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.375rem !important;
    color: #6b7280 !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
}

.eau-media-upload-preview-link:hover {
    color: #2563eb !important;
    background: rgba(37, 99, 235, 0.1) !important;
}

.eau-media-upload-preview-link i,
.eau-media-upload-preview-link svg {
    width: 1rem !important;
    height: 1rem !important;
}

.eau-media-upload-remove {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.375rem !important;
    background: none !important;
    border: none !important;
    color: #9ca3af !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.eau-media-upload-remove:hover {
    color: #dc2626 !important;
    background: rgba(220, 38, 38, 0.1) !important;
}

.eau-media-upload-remove i,
.eau-media-upload-remove svg {
    width: 1rem !important;
    height: 1rem !important;
}

/* Upload Progress */
.eau-media-upload-progress {
    margin-top: 1rem !important;
    padding: 1rem !important;
    background: #f3f4f6 !important;
    border-radius: 8px !important;
}

.eau-media-upload-progress-bar {
    height: 8px !important;
    background: #e5e7eb !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    margin-bottom: 0.5rem !important;
}

.eau-media-upload-progress-fill {
    height: 100% !important;
    width: 0% !important;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
    border-radius: 4px !important;
    transition: width 0.3s ease !important;
}

.eau-media-upload-progress-text {
    font-size: 0.75rem !important;
    color: #6b7280 !important;
    text-align: center !important;
    display: block !important;
}

/* Dropzone Drag Active State */
.eau-media-upload-dropzone.drag-active {
    border-color: #2563eb !important;
    background: #eff6ff !important;
    transform: scale(1.01) !important;
}

.eau-media-upload-dropzone.drag-active .eau-media-upload-dropzone-content > i,
.eau-media-upload-dropzone.drag-active .eau-media-upload-dropzone-content > svg {
    color: #2563eb !important;
}

/* My Files Panel - Hidden by default, shown only when tab is active */
.eau-media-upload-myfiles-panel {
    max-height: 300px !important;
    overflow: hidden !important;
    display: none !important;
    flex-direction: column !important;
}

.eau-media-upload-myfiles-panel.active {
    display: flex !important;
}

.eau-media-upload-myfiles-header {
    padding-bottom: 0.75rem !important;
    border-bottom: 1px solid #e5e7eb !important;
    margin-bottom: 0.75rem !important;
}

.eau-media-upload-myfiles-search {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem 0.75rem !important;
    background: #f9fafb !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
}

.eau-media-upload-myfiles-search i,
.eau-media-upload-myfiles-search svg {
    width: 1rem !important;
    height: 1rem !important;
    color: #9ca3af !important;
    flex-shrink: 0 !important;
}

.eau-media-upload-myfiles-search-input {
    flex: 1 !important;
    border: none !important;
    background: transparent !important;
    font-size: 0.875rem !important;
    color: #374151 !important;
    outline: none !important;
    padding: 0 !important;
}

.eau-media-upload-myfiles-search-input::placeholder {
    color: #9ca3af !important;
}

.eau-media-upload-myfiles-list {
    flex: 1 !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.eau-media-upload-myfiles-loading {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 2rem !important;
    color: #6b7280 !important;
    font-size: 0.875rem !important;
}

.eau-media-upload-myfiles-loading i,
.eau-media-upload-myfiles-loading svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
}

.eau-media-upload-myfiles-empty {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 2rem !important;
    color: #9ca3af !important;
    font-size: 0.875rem !important;
    text-align: center !important;
}

.eau-media-upload-myfiles-empty i,
.eau-media-upload-myfiles-empty svg {
    width: 2rem !important;
    height: 2rem !important;
}

/* File Item */
.eau-media-upload-file-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.625rem 0.75rem !important;
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.eau-media-upload-file-item:hover {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
}

.eau-media-upload-file-item.selected {
    background: #eff6ff !important;
    border-color: #2563eb !important;
}

.eau-media-upload-file-item-icon {
    width: 2rem !important;
    height: 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 4px !important;
    flex-shrink: 0 !important;
}

.eau-media-upload-file-item-icon i,
.eau-media-upload-file-item-icon svg {
    width: 1rem !important;
    height: 1rem !important;
    color: #6b7280 !important;
}

.eau-media-upload-file-item-icon.is-image {
    padding: 0 !important;
    overflow: hidden !important;
}

.eau-media-upload-file-item-icon.is-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.eau-media-upload-file-item-info {
    flex: 1 !important;
    min-width: 0 !important;
}

.eau-media-upload-file-item-name {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: block !important;
}

.eau-media-upload-file-item-meta {
    font-size: 0.75rem !important;
    color: #9ca3af !important;
}

.eau-media-upload-file-item-select {
    width: 1.25rem !important;
    height: 1.25rem !important;
    border: 2px solid #d1d5db !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.eau-media-upload-file-item.selected .eau-media-upload-file-item-select {
    background: #2563eb !important;
    border-color: #2563eb !important;
}

.eau-media-upload-file-item.selected .eau-media-upload-file-item-select::after {
    content: '' !important;
    width: 6px !important;
    height: 6px !important;
    background: #fff !important;
    border-radius: 50% !important;
}

/* ==========================================================================
   DATEPICKER COMPONENT (Flatpickr)
   ========================================================================== */

.eau-datepicker-wrapper {
    position: relative !important;
    width: 100% !important;
}

.eau-datepicker-input {
    width: 100% !important;
    padding-right: 2.5rem !important;
}

.eau-datepicker-icon {
    position: absolute !important;
    right: 0.75rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
    color: #9ca3af !important;
}

.eau-datepicker-icon i,
.eau-datepicker-icon svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
}

/* Flatpickr customization */
.flatpickr-calendar {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
}

.flatpickr-day:hover {
    background: #eff6ff !important;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: #2563eb !important;
}

/* ==========================================================================
   PHONE INPUT WITH INTL-TEL-INPUT (DDI SELECTOR)
   ========================================================================== */

.eau-phone-input-wrapper {
    position: relative !important;
    width: 100% !important;
}

.eau-phone-input-wrapper .iti {
    width: 100% !important;
}

.eau-phone-input-wrapper .iti__flag-container {
    padding: 0 !important;
}

.eau-phone-input-wrapper .iti__selected-flag {
    padding: 0 0.75rem !important;
    background: #f9fafb !important;
    border-right: 1px solid #d1d5db !important;
    border-radius: 8px 0 0 8px !important;
}

.eau-phone-input-wrapper .iti__selected-flag:hover,
.eau-phone-input-wrapper .iti__selected-flag:focus {
    background: #f3f4f6 !important;
}

.eau-phone-input-wrapper .iti--separate-dial-code .iti__selected-dial-code {
    font-size: 0.875rem !important;
    color: #374151 !important;
    margin-left: 0.5rem !important;
}

.eau-phone-input-wrapper .iti__country-list {
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1) !important;
    max-height: 250px !important;
    z-index: 100001 !important;
}

.eau-phone-input-wrapper .iti__country {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.875rem !important;
}

.eau-phone-input-wrapper .iti__country:hover,
.eau-phone-input-wrapper .iti__country--highlight {
    background: #f3f4f6 !important;
}

.eau-phone-input-wrapper .iti__dial-code {
    color: #6b7280 !important;
}

/* Adjust input padding for DDI selector */
.eau-phone-input-wrapper input.eau-phone-input {
    padding-left: 90px !important;
}
