:host {
  --modal-width: 500px;
  --modal-max-height: 80vh;
  --primary-color: #007bff;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --surface: #fff;
  --background: #f8f9fa;
  --divider: #dee2e6;
  --overlay-bg: rgba(0, 0, 0, 0.5);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--overlay-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1050;
  animation: fadeIn 0.3s ease;
}

.modal-container {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  width: var(--modal-width);
  max-width: 90vw;
  max-height: var(--modal-max-height);
  display: flex;
  flex-direction: column;
  animation: slideInUp 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--divider);
  flex-shrink: 0;

  .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex-grow: 1;
    text-align: center;
  }

  .back-button,
  .close-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 50%;
    line-height: 1;
    transition: background-color 0.2s ease;

    &:hover {
      background-color: rgba(0, 0, 0, 0.05);
    }
  }
}

.modal-body {
  padding: 24px;
  overflow-y: auto;

  .selection-info {
    margin-bottom: 24px;
    
    .selection-count {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      color: var(--text-primary);
      font-weight: 500;
      margin-bottom: 8px;
      
      i {
        color: var(--primary-color);
      }
    }
    
    .selection-hint {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      color: var(--text-secondary);
      font-size: 0.85rem;
      
      i {
        color: #17a2b8; // info color
      }
    }
  }

  .actions-list {
    display: grid;
    gap: 16px;
  }

  .action-card {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px;
    border: 1px solid var(--divider);
    border-radius: 8px;
    background-color: var(--surface);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 1rem;

    &:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
      border-color: var(--primary-color);
    }

    .action-icon {
      position: relative;
      font-size: 1.5rem;
      color: var(--primary-color);
      margin-right: 16px;
      width: 32px;
      text-align: center;
      
      .action-badge {
        position: absolute;
        top: -4px;
        right: -4px;
        background: #28a745; // success color
        color: white;
        border-radius: 50%;
        width: 16px;
        height: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.6rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
      }
    }

    .action-content {
      flex-grow: 1;
      
      .action-label {
        font-weight: 500;
        color: var(--text-primary);
        margin-bottom: 4px;
      }
      
      .action-status {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.8rem;
        color: var(--text-secondary);
        
        i {
          font-size: 0.75rem;
        }
        
        &.available {
          color: #28a745; // success color
        }
      }
    }
    
    .action-indicator {
      font-size: 1rem;
      color: var(--text-secondary);
      transition: transform 0.2s ease;
    }

    &:hover .action-indicator {
      transform: translateX(3px);
    }
    
    // ✨ NOVO: Estados visuais das ações
    &.disabled {
      opacity: 0.6;
      cursor: not-allowed;
      background-color: #f8f9fa;
      
      &:hover {
        transform: none;
        box-shadow: none;
        border-color: var(--divider);
      }
      
      .action-icon {
        color: var(--text-secondary);
      }
      
      .action-content .action-label {
        color: var(--text-secondary);
      }
    }
    
    &.available {
      border-color: rgba(40, 167, 69, 0.3);
      background-color: rgba(40, 167, 69, 0.02);
    }
    
    &.no-selection-required {
      border-left: 4px solid #28a745;
      
      &:hover {
        border-left-color: #28a745;
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
      }
    }
    
    &.requires-selection.disabled {
      border-left: 4px solid #dc3545;
      
      .action-status i {
        color: #dc3545;
      }
    }
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInUp {
  from { transform: translateY(30px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
} 